33 #ifndef AVCODEC_MJPEGENC_H 34 #define AVCODEC_MJPEGENC_H 62 uint16_t huff_code_dc_luminance[12];
64 uint16_t huff_code_dc_chrominance[12];
67 uint16_t huff_code_ac_luminance[256];
69 uint16_t huff_code_ac_chrominance[256];
74 uint8_t uni_chroma_ac_vlc_len[64 * 64 * 2];
void ff_mjpeg_encode_mb(MpegEncContext *s, int16_t block[12][64])
Holds JPEG frame data and Huffman table data.
static void put_bits(Jpeg2000EncoderContext *s, int val, int n)
put n times val bit
MJPEG encoder and decoder.
Use the default Huffman tables.
uint8_t table_id
The Huffman table id associated with the data.
uint16_t mant
The mantissa.
static void put_marker(PutBitContext *p, enum JpegMarker code)
void ff_mjpeg_encode_close(MpegEncContext *s)
int ff_mjpeg_encode_init(MpegEncContext *s)
Compute and use optimal Huffman tables.
Buffer of JPEG frame data.
HuffmanTableOption
Enum for the Huffman encoding strategy.
uint8_t code
The exponent.
size_t huff_ncode
Number of current entries in the buffer.
MJpegHuffmanCode * huff_buffer
Buffer for Huffman code values.