Enums

Details

class Mirage.DebugMask(value)

Bases: GLib.Enum

Debug message types and debug masks used to control verbosity of various parts of libMirage.

All masks except Mirage.DebugMask.ERROR and Mirage.DebugMask.WARNING can be combined together to control verbosity of libMirage.

ERROR = -1

error message

WARNING = -2

warning message

PARSER = 1

message belonging to image parser and file stream parser

STREAM = 128

messages belonging to file and filter stream I/O operations

SECTOR = 16

message belonging to sector

DISC = 2

message belonging to disc

IMAGE_ID = 256

messages belonging to image identification part of image parsers

FRAGMENT = 32

message belonging to fragment

SESSION = 4

message belonging to session

WRITER = 512

messages belonging to image writer

CDTEXT = 64

message belonging to CD-TEXT encoder/decoder

TRACK = 8

message belonging to track

class Mirage.Error(value)

Bases: GObject.GEnum

classmethod quark()
Returns:

The error quark used for libMirage errors.

Return type:

int

Registers an error quark for libMirage if necessary.

LIBRARYERROR = 0
PARSERERROR = 1
DATAFILEERROR = 10
CANNOTHANDLE = 11
ENCRYPTEDIMAGE = 12
WRITERERROR = 13
FRAGMENTERROR = 2
DISCERROR = 3
LANGUAGEERROR = 4
SECTORERROR = 5
SESSIONERROR = 6
TRACKERROR = 7
STREAMERROR = 8
IMAGEFILEERROR = 9
class Mirage.ErrorCode(value)

Bases: GLib.Enum

Error codes for libMirage library.

LIBRARY_ERROR = 0

error in core libMirage code

PARSER_ERROR = 1

error in parser code

DATA_FILE_ERROR = 10

error related to data file

CANNOT_HANDLE = 11

parser/writer/filter stream cannot handle given file

ENCRYPTED_IMAGE = 12

image is encrypted and password needs to be provided

WRITER_ERROR = 13

error in image writer code

FRAGMENT_ERROR = 2

error in fragment code

DISC_ERROR = 3

error in disc code

LANGUAGE_ERROR = 4

error in language/CD-TEXT code

SECTOR_ERROR = 5

error in sector code

SESSION_ERROR = 6

error in session code

TRACK_ERROR = 7

error in track code

STREAM_ERROR = 8

error in stream code

IMAGE_FILE_ERROR = 9

error related to image file

class Mirage.FragmentRole(value)

Bases: GLib.Enum

Fragment roles.

PREGAP = 0

pregap fragment

DATA = 1

data fragment

class Mirage.LanguagePackType(value)

Bases: GLib.Enum

CD-TEXT pack types.

TITLE = 128

Album name and Track titles

PERFORMER = 129

Singer/player/conductor/orchestra

SONGWRITER = 130

Name of the songwriter

COMPOSER = 131

Name of the composer

ARRANGER = 132

Name of the arranger

MESSAGE = 133

Message from content provider or artist

DISC_ID = 134

Disc identification information

GENRE = 135

Genre identification / information

TOC = 136

TOC information

TOC2 = 137

Second TOC

RES_8A = 138

Reserved 8A

RES_8B = 139

Reserved 8B

RES_8C = 140

Reserved 8C

CLOSED_INFO = 141

For internal use by content provider

UPC_ISRC = 142

UPC/EAN code of album and ISRC for tracks

SIZE = 143

Size information of the block

class Mirage.MainDataFormat(value)

Bases: GLib.Enum

Track file data formats.

DATA = 1

binary data

AUDIO = 2

audio data

AUDIO_SWAP = 4

audio data that needs to be swapped

class Mirage.MediumType(value)

Bases: GLib.Enum

Medium types.

CD = 1

CD disc

DVD = 2

DVD disc

BD = 3

BD (Blue-Ray) disc

HD = 4

HD-DVD disc

HDD = 5

Hard-disk

class Mirage.SectorSubchannelFormat(value)

Bases: GLib.Enum

Subchannel selection flags.

NONE = 0

no subchannel

PW = 1

PW subchannel; 96 bytes, interleaved P-W

Q = 2

Q subchannel; 16 bytes, Q subchannel

RW = 3

RW subchannel; 96 bytes, cooked R-W

class Mirage.SectorType(value)

Bases: GLib.Enum

Sector type. Also implies track mode.

MODE0 = 0

Mode 0 sector

AUDIO = 1

Audio sector

MODE1 = 2

Mode 1 sector

MODE2 = 3

Mode 2 Formless sector

MODE2_FORM1 = 4

Mode 2 Form 1 sector

MODE2_FORM2 = 5

Mode 2 Form 2 sector

MODE2_MIXED = 6

Mode 2 Mixed sector

RAW = 7

raw sector (automatic sector type detection)

RAW_SCRAMBLED = 8

scrambled raw sector (automatic sector type detection)

class Mirage.SectorValidData(value)

Bases: GLib.Enum

Sector data validity flags.

SYNC = 1

sync pattern valid

EDC_ECC = 16

EDC/ECC data valid

HEADER = 2

header valid

SUBCHAN = 32

subchannel valid

SUBHEADER = 4

subheader valid

DATA = 8

user data valid

class Mirage.SessionType(value)

Bases: GLib.Enum

Session type.

CDDA = 0

CD AUDIO

CDROM = 1

CD-ROM

CDI = 2

CD-I

CDROM_XA = 3

CD-ROM XA

class Mirage.SubChannel(value)

Bases: GLib.Enum

Subchannel type for interleaving/deinterleaving.

W = 0

W subchannel data

V = 1

V subchannel data

U = 2

U subchannel data

T = 3

T subchannel data

S = 4

S subchannel data

R = 5

R subchannel data

Q = 6

Q subchannel data

P = 7

P subchannel data

class Mirage.SubchannelDataFormat(value)

Bases: GLib.Enum

Subchannel file data formats.

INTERNAL = 1

internal subchannel (i.e. included in track file)

Q16 = 128

Q subchannel, 16 bytes

PW96_INTERLEAVED = 16

P-W subchannel, 96 bytes, interleaved

EXTERNAL = 2

external subchannel (i.e. provided by separate file)

PW96_LINEAR = 32

P-W subchannel, 96 bytes, linear

RW96 = 64

R-W subchannel, 96 bytes, cooked

class Mirage.TrackConstant(value)

Bases: GLib.Enum

Track constants.

LEADIN = 0

Lead-in track

LEADOUT = 170

Lead-out track

class Mirage.TrackFlag(value)

Bases: GLib.Enum

Track flags.

FOURCHANNEL = 1

four channel audio

COPYPERMITTED = 2

copy permitted

PREEMPHASIS = 4

pre-emphasis