GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||
GeezerVison is showing dvd.sourceforge.net — Sub-Pictures Sub-PicturesThe typical arrangement of data in the 53220 byte buffer for sub-pictures is
SPUHSub-Picture Unit Header2 words (small endian - least significant byte last)
PXDtf and PXDbfPiXel DataThese are the rle compressed pixel data for the top field (lines 1, 3, 5, etc) and the bottom field (lines 2, 4, 6, etc) respectively Individual pixels may have one of four values, commonly referred to as background (0), pattern (1), emphasis 1 (2), and emphasis 2 (3) Each coded value indicates the number of pixels having the same code value, and can be in one of four forms, depending on the number of identical pixels
If, at the end of a line, the bit count is not a multiple of 8, four fill bits of 0 are added. SP_DCSQTSub-Picture Display Control SeQuence TableThis area contains blocks (SP_DCSQ) of commands to the decoder. Each SP_DCSQ begins with a 2 word header
CommandsThere are eight commands available for Sub-Pictures. The first SP_DCSQ should contain, as a minimum, SET_COLOR, SET_CONTR, SET_DAREA, and SET_DSPXA.FF - CMD_END - ends one SP_DCSQ 00 - FSTA_DSP - Forced Start Display, no arguments 01 - STA_DSP - Start Display, no arguments 02 - STP_DSP - Stop Display, no arguments 03 - SET_COLOR - provides four indices into the CLUT for the current PGC to associate with
the four pixel values. One nibble per pixel value for a total of 2 bytes.
04 - SET_CONTR - directly provides the four contrast (alpha blend) values to associate with
the four pixel values. One nibble per pixel value for a total of 2 bytes.
0x0 = transparent, 0xF = opaque
05 - SET_DAREA - defines the display area, each pair (X and Y) of values is 3 bytes wide, for
a total of 6 bytes, and has the form
06 - SET_DSPXA - defines the pixel data addresses. First a 2-byte offset to the top field data, followed by a 2-byte offset to the bottom field data, for a total of 4 bytes. 07 - CHG_COLCON - allows for changing the COLor and CONtrast within one or more areas of
the display. This command contains a series of parameters, arranged in a hierarchy.
LN_CTLI, 4 bytes, special value of 0f ff ff ff signifies the end of the parameter area (this termination code MUST be present as the last parameter)
PX_CTLI, 6 bytes, defines a starting column and new color and contrast values
Converting frames and time to SP_DCSQ_STM valuesThe direct method of converting time to delay values is to multiply time in seconds by 90000/1024 and truncate the value. Rounding up will cause the display to occur one frame late. Framesvalue for NTSC (30fps)value for PAL/SECAM (25fps) 123 257 3810 41114 51417 61721 72024 82328 92631 102935 113238 123542 133845 144149 154352 164656 174959 185263 195566 205870 216173 226477 236780 247084 2573(87) 2676(91) 2779(94) 2882(98) 2984(101) secondsvalue 187 2175 3263 4351 5439 6527 7615 8703 9791 10878 201757 302636 403515 504394 605273 DVD-Video home
| |||||||||||||||||||||||||||||||||||||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |