/* To do: * verify Cb,Y,Cr,Y ordering * swap the ordering(?) * add backchannel support for samples as well? */ /*************************************************************************** avcomp.c Audio/video compression and decompression helpers. Copyright (c) 1996-2007, Nicola Salmoria and the MAME Team. Visit http://mamedev.org for licensing and usage restrictions. **************************************************************************** Each frame is compressed as a unit. The raw data is of the form: (all multibyte values are stored in big-endian format) 'chav' (4 bytes) - fixed header data to identify the format metasize (1 byte) - size of metadata in bytes (max=255 bytes) channels (1 byte) - number of audio channels samples (2 bytes) - number of samples per audio stream width (2 bytes) - width of video data height (2 bytes) - height of video data (high bit set means interlaced) - as raw bytes