// license:BSD-3-Clause // copyright-holders:Aaron Giles /*************************************************************************** avhuff.c Audio/video compression and decompression helpers. **************************************************************************** Each frame is compressed as a unit. The raw data is of the form: (all multibyte values are stored in big-endian format) +00 = 'chav' (4 bytes) - fixed header data to identify the format +04 = metasize (1 byte) - size of metadata in bytes (max=255 bytes) +05 = channels (1 byte) - number of audio channels +06 = samples (2 bytes) - number of samples per audio stream +08 = width (2 bytes) - width of video data +0A = height (2 bytes) - height of video data +0C = - as raw bytes