FLICKFILE(9.5) FLICKFILE(9.5) NAME movies - graphics movie file formats DESCRIPTION Movie files are generated by preflicks and used by fflicks; see flicks(9.1). The format of a movie files is: struct Header { unsigned char version; short header_length; short nr_frames; unsigned char nr_tables; struct LOOKUP_TABLE { short number_of_entries; struct { short count; unsigned char value; } table[256]; } Table[nr_tables]; }; struct Frame { short width, height; short compacted_length; unsigned char which_table; unsigned char data[compacted_length]; } Frame[nr_frames]; Each short in the above structure is present as a two- byte number in the file, most significant byte first. Each unsigned char is a single byte. version software version number, to ensure compatibility between producer and consumer of the file. header_length total length in bytes of the lookup table(s) used to encode the file plus three bytes (the next three that follow). nr_frames total number of movie frames in the file. nr_tables number of lookup tables. nr_entries number of entries in the lookup table (maximum 256). count value pixel value and a count of how many times that value is to be repeated. Immediately following the lookup tables begin the frames encoded in an indirect run-length code. Each frame is described by width, height, and the compacted_length of the FLICKFILE(9.5) FLICKFILE(9.5) frame in bytes. The frame is coded in raster-scan order as a sequence of indexes into the table numbered which_table (counting from 0). FILES _movie SEE ALSO flicks(9.1), pico(1), rebecca(9.1)