Talk:CDXL

Latest comment: 16 years ago by Hennis2 in topic Untitled

Untitled edit

AFAIK CDXL is a not a subtype of the Interchange File Format (IFF). Here's the (only) CDXL format description I found so far. It' is from a file "CDXL.guide" (Does someone knows a better one by the way?). I can't see any relation and that's why I'll remove this IFF reference from the article.

CDXL-Format
    BYTE   8 Bit unsigned integer
    WORD  16 Bit unsigned integer, `Motorola`-Byte-Sex
    LONG  32 Bit unsigned integer, `Motorola`-Byte-Sex

CDXL-Format description [CHUNK]

#01 BYTE: $00 {0}        [CUSTOM CDXL]
 or BYTE: $01 {1}        [STANDARD CDXL]
 or BYTE: $02 {2}        [SPECIAL CDXL]

The CDXL-Info-Byte emerge by addition of the three description goups:

   #02 BYTE: $00 {0}        [RGB]        ...VIDEO ENCODING
    or BYTE: $01 {1}        [HAM]
    or BYTE: $02 {2}        [YUV]
    or BYTE: $03 {3}        [AVM & DCTV]
plus

   #02 BYTE: $00 {0}        [BIT PLANAR] ...PIXEL ORIENTATION
    or BYTE: $20 {32}       [BYTE PLANAR]
    or BYTE: $40 {64}       [CHUNKY]
    or BYTE: $80 {128}      [BIT LINE]
    or BYTE: $C0 {192}      [BYTE LINE]
plus

   #02 BYTE: $00 {0}        [MONO]       ...AUDIO VALUES
    or BYTE: $10 {16}       [STEREO]

#03 LONG: $0000295C {10588}    [CURRENT CHUNKSIZE]
#07 LONG: $0000295C {10588}    [PREVIOUS CHUNKSIZE]
#11 LONG: $00000001 {1}        [CURRENT FRAMENUMBER]
#15 WORD: $00CB {203}          [BITMAPWIDTH]
#17 WORD: $005E {94}           [BITMAPHEIGHT]
#19 BYTE: $00   {0}            [RESERVED]
#20 BYTE: $04   {4}            [NUMBEROFBITPLANES]
#21 WORD: $0020 {32}           [COLORMAPSIZE]
#23 WORD: $02EC {748}          [RAWSOUNDSIZE]
#25 BYTE: $00   {0}            [RESERVED]
#26 BYTE: $00   {0}            [RESERVED]
#27 BYTE: $00   {0}            [RESERVED]
#28 BYTE: $00   {0}            [RESERVED]
#29 BYTE: $00   {0}            [RESERVED]
#30 BYTE: $00   {0}            [RESERVED]
#31 BYTE: $00   {0}            [RESERVED]
#32 BYTE: $00   {0}            [RESERVED]

BYTE #33 - #64 [COLORMAP] ; The pens are always WORD-coded with preceding 0s
                            i.e. each color entry has 12 Bit (4096 different colors).

z.B. 0FFF    oder  0E9A
      |||_15        |||_10          ; RGB_blue_component (0-15)
      ||__15        ||__09          ; RGB_green_component (0-15)
      |___15        |___14          ; RGB_red_component (0-15)

All of the following data ordered:@{ub}

  BITMAPDATA      [UNCOMPRESSED BODY]
  SOUNDDATA       [UNCOMPRESSED BODY]

  HEADER
  COLORMAPDATA
  BITMAPDATA
  SOUNDDATA

etc. ordered

Hennis2 (talk) 11:22, 21 April 2008 (UTC)Reply