#ifndef _VIDFILE_H_b7f81f7e_ #define _VIDFILE_H_b7f81f7e_ /* * A file is defined as an octet sequence. It contains a header * followed by frames. All multi-octet values are given in network * byte order (ie, MSB first). The header consists of: * * - 16 octets of magic number. These identify the file as * instance of this format. They are, in hex, * 56 39 02 59 7d 7d 00 98 88 16 a2 bb 3c 74 5a 6e * * - Two octets, holding a value one less than the width (so that * file values 0..65535 correspond to frame sizes 1..65536). * * - Two octets, holding a value one less than the height (so that * file values 0..65535 correspond to frame sizes 1..65536). * * - One octet of length L, then L octets holding an octet string * identifying the video data format (see below). * * - Zero or more feature blocks, each of which consists of * - One octet of length L, then L bytes holding an octet * string identifying the feature. * - Two octets of hint. These can be ignored by programs * that understand this feature; the rest of this * description is addressed to programs that don't. * The first octet contains two flag bits: * 0x01 Essential. If this bit is set, it's * not worth even trying to make sense * of the data; such attempts are * probably doomed to failure. * 0x02 Skip. If this bit is set, take the * second octet's value, N, and compute * 1<