PrimoBurner(tm) for C++  4.6
CD, DVD and Blu-ray Software Development Kit
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Pages
primo::burner::BlockSize Namespace Reference

Defines constants for media block sizes. More...

Variables

static const int32_t BD = 2048
 The size of a Blu-ray Disc (BD) block.
 
static const int32_t CDDA = 2352
 The size of an audio block. More...
 
static const int32_t CDRaw = BlockSize::CDDA + BlockSize::PWChannelSize
 The size of a raw audio block. More...
 
static const int32_t CDRom = 2048
 The size of a data block. More...
 
static const int32_t CDRomMode0 = 2336
 The size of a CD-ROM Mode 0 data block.
 
static const int32_t CDRomMode2Form1 = 2336
 The size of a CD-ROM Mode 2 Form1 data block. More...
 
static const int32_t CDRomMode2Form1XA = 2048
 CD-ROM XA Block Size. More...
 
static const int32_t CDRomMode2Form1XARaw = 2056
 CD-ROM RAW XA Block Size. More...
 
static const int32_t CDRomMode2Form2 = 2336
 The size of a CD-ROM Mode 2 Form2 data block. More...
 
static const int32_t CDRomMode2Formless = 2336
 The size of a CD-ROM Mode 2 Formless data block.
 
static const int32_t CDRomMode2Mixed = 2336
 Same as BlockSize::CDRomMode2Form1 and BlockSize::CDRomMode2Form2. More...
 
static const int32_t DVD = 2048
 The size of a DVD block.
 
static const int32_t PQChannelSize = 16
 P-Q Channel Data Size.
 
static const int32_t PWChannelSize = 96
 P-W Channel Data Size.
 

Detailed Description

Defines constants for media block sizes.

Variable Documentation

const int32_t CDDA = 2352
static

The size of an audio block.

Read, write and layout functions work with blocks instead of bytes. The size of the block is different for audio and data CDs

This also known as CDDA MODE 1 block size.

See Also
BlockSize::CDRom
const int32_t CDRaw = BlockSize::CDDA + BlockSize::PWChannelSize
static

The size of a raw audio block.

See Also
BlockSize::CDRom
BlockSize::CDDA
const int32_t CDRom = 2048
static

The size of a data block.

Read, write and layout functions generally work with blocks instead of bytes. The size of the block is different for audio and data CDs

This is also known as CDROM MODE 1 block size.

See Also
BlockSize::CDDA
const int32_t CDRomMode2Form1 = 2336
static

The size of a CD-ROM Mode 2 Form1 data block.

The structure of a Mode 2 Form1 data block is:

4 bytes Mode 2 Formed Sector Sub-header structure first copy.
4 bytes Mode 2 Formed Sector Sub-header structure second copy.
2048 bytes User data.
280 bytes EDC/ECC checksums. The EDC/ECC bytes should be allocated and set to zero from the application. The device and the engine calculate and fill in the EDC/ECC data during the burning process.
See Also
Mode2FormedSubheader
const int32_t CDRomMode2Form1XA = 2048
static

CD-ROM XA Block Size.

The size of the user data for CD-ROM XA Mode 2 Form1 – 2048 bytes of user data only.

The structure of a Mode 2 Form1 data block is:

4 bytes Mode 2 Formed Sector Sub-header structure first copy. This data is generated by the engine.
4 bytes Mode 2 Formed Sector Sub-header structure second copy. This data is generated by the engine.
2048 bytes User data. Must be supplied by the user.
280 bytes EDC/ECC checksums. The EDC/ECC bytes should be allocated and set to zero from the application. The device and the engine calculate and fill in the EDC/ECC data during the burning process.

When BlockSize::CDRomMode2Form1XA is used the sub-header information and the EDC/ECC checksums are generated automatically by the engine and/or the device during the disc recording. This block type is used mainly when a Mode 2 Form1 data tracks need to be burned on a CD-ROM XA disc.

See Also
Mode2FormedSubheader
const int32_t CDRomMode2Form1XARaw = 2056
static

CD-ROM RAW XA Block Size.

The size of the user data in CD-ROM Mode 2 Form1 – 2048 bytes of user data + 8 bytes sub-header information.

The structure of a Mode 2 Form1 data block is:

4 bytes Mode 2 Formed Sector Sub-header structure first copy. Must be supplied by the user.
4 bytes Mode 2 Formed Sector Sub-header structure second copy. Must be supplied by the user.
2048 bytes User data. Must be supplied by the user.
280 bytes EDC/ECC checksums. The EDC/ECC bytes should be allocated and set to zero from the application. The device and the engine calculate and fill in the EDC/ECC data during the burning process.

When BlockSize::CDRomMode2Form1XARaw is used the EDC/ECC checksums are generated automatically by the engine and/or the device during the disc recording. The sub-header information (first 8 bytes) must be set by the user.

See Also
Mode2FormedSubheader
const int32_t CDRomMode2Form2 = 2336
static

The size of a CD-ROM Mode 2 Form2 data block.

The structure of a Mode 2 Form2 data block is:

4 bytes Mode 2 Formed Sector Sub-header structure first copy.
4 bytes Mode 2 Formed Sector Sub-header structure second copy.
2324 bytes User data.
4 bytes CRC. The CRC bytes should be allocated and set to zero from the application. The device and the engine calculate and fill in the correct CRC bytes during the burning process.
See Also
Mode2FormedSubheader
const int32_t CDRomMode2Mixed = 2336
static

Same as BlockSize::CDRomMode2Form1 and BlockSize::CDRomMode2Form2.

BlockSize::CDRomMode2Mixed is defined for clarity only and is used for mixed mode CD tracks.

See Also
BlockSize::CDRomMode2Form1
BlockSize::CDRomMode2Form2