

               IFND      YUVN_I
YUVN_I         SET       1
;---------------------------------------------------------------------------
             IFND        EXEC_TYPES_I
               INCLUDE   "exec/types.i"
             ENDC
;---------------------------------------------------------------------------
;---- ID's used in FORM YUVN

ID_YUVN:       equ       'YUVN'             ;the FORM-ID
ID_VLAB:       equ       'VLAB'             ;private, do NOT use
ID_YCHD:       equ       'YCHD'             ;the header-chunk-ID
ID_DATY:       equ       'DATY'             ;the Y-data-chunk-ID
ID_DATU:       equ       'DATU'             ;the U-data-chunk-ID
ID_DATV:       equ       'DATV'             ;the V-data-chunk-ID

;---- values for ychd_AspectX and ychd_AspectY

;---- values for ychd_Compress

COMPRESS_NONE  equ       0                  ;no comression

;---- values for ychd_Flags

YCHDB_LACE     equ       0                  ;if set the data-chunks contain
YCHDF_LACE     equ       1                  ;a full-frame (interlaced) picture

;---- values for ychd_Mode

YCHD_MODE_BW      equ    0       ;OBSOLETE, use YCHD_MODE_400 instead
YCHD_MODE_400     equ    0       ;a black-and-white picture (no DATU and DATV)
YCHD_MODE_411     equ    1       ;a YUV-411 picture
YCHD_MODE_422     equ    2       ;a YUV-422 picture
YCHD_MODE_444     equ    3       ;a YUV-444 picture

YCHD_MODE_200     equ    8       ;a lores black-and-white picture
YCHD_MODE_211     equ    9       ;a lores color picture (422, but lores)
YCHD_MODE_222     equ    10      ;a lores color picture (444, but lores)

YCHD_MODEB_LORES  equ    3       ;test this bit to check for lores/hires
YCHD_MODEF_LORES  equ    8

;---- values for ychd_Norm

YCHD_NORM_UNKNOWN equ    0       ;unknown, try to avoid this
YCHD_NORM_PAL     equ    1       ;PAL 4.433 MHz
YCHD_NORM_NTSC    equ    2       ;NTSC 3.579 MHz

;---- the FORM-YUVN DataHeader: 'YCHD'

 STRUCTURE __YCHD_Header,0

               UWORD     ychd_Width        ;picture width in Y-pixels
               UWORD     ychd_Height       ;picture height (rows)

               UWORD     ychd_PageWidth    ;source page width & height,
               UWORD     ychd_PageHeight   ;  currently same as Width and Height

               UWORD     ychd_LeftEdge     ;position within the source page,
               UWORD     ychd_TopEdge      ;  currently 0,0

               UBYTE     ychd_AspectX      ;pixel aspect (width : height)
               UBYTE     ychd_AspectY      ;
               UBYTE     ychd_Compress     ;(see above)
               UBYTE     ychd_Flags        ;(see above)

               UBYTE     ychd_Mode         ;(see above)
               UBYTE     ychd_Norm         ;(see above)

               WORD      ychd_reserved2    ;must be 0

               LONG      ychd_reserved3    ;must be 0

               LABEL     ychd_SIZEOF
;---------------------------------------------------------------------------
; Warning, the UBYTE fields are byte-packed, C-compilers should not add pad
; bytes!
;---------------------------------------------------------------------------

               ENDC      ; YUVN_I

