Extended PAL Format

The extended PAL format includes the following:

For an RGB palette, the extended PAL format is represented as follows:

RIFF('PAL' plth( <palette-header> ) data( <LOGPALETTE-data> ))

For a YUV palette, the extended PAL format is represented as follows:

RIFF('PAL' plth( <palette-header> ) yuvp( <YUV-LOGPALETTE-data> ))

Both the <LOGPALETTE-data> and <YUV-LOGPALETTE-data> use the Windows 3.0 LOGPALETTE structure, described in "Simple PAL Format," earlier in this section. The <YUV-LOGPALETTE-data> contains YUV values instead of RGB valves.

The "plth" chunk is defined as follows:

<plth-ck>  PLT( struct {
           ULONG  ulMapType;
           USHORT usWhite;          /* Fields from this point on are     */
           USHORT usBlack;          /* optional. If they are included    */
           USHORT usBorder;         /* but not used, set them to 0xFFFF. */
           USHORT usRegisteredMap;
           USHORT usCustomBase;     /* If an application encounters a    */
           USHORT usCustomCnt;      /* 'PLT' chunk smaller than shown    */
           USHORT usRsvBase;        /* here, it should treat the missing */
           USHORT usRsvCount;       /* fields as unused.                 */
           USHORT usArtBase;
           USHORT usArtCnt;
           USHORT usNumIntense;
} )

The structure fields are described in the following:

Field

ulMapType