27 #ifndef AVCODEC_MJPEGENC_HUFFMAN_H 28 #define AVCODEC_MJPEGENC_HUFFMAN_H 44 uint8_t bits[17], uint8_t val[],
75 int size,
int max_length);
struct HuffTable HuffTable
Used to store optimal huffman encoding results.
int prob
number of occurences of this value in input
Definition: mjpegenc_huffman.h:53
void ff_mjpegenc_huffman_compute_bits(PTable *prob_table, HuffTable *distincts, int size, int max_length)
Computes the length of the Huffman encoding for each distinct input value.
Definition: mjpegenc_huffman.c:80
int length
length of the encoding
Definition: mjpegenc_huffman.h:71
int code
code is the input value
Definition: mjpegenc_huffman.h:70
Used to store intermediate lists in the package merge algorithm.
Definition: magicyuvenc.c:261
struct PTable PTable
Used to assign a occurrence count or "probability" to an input value.
Used to store optimal huffman encoding results.
Definition: mjpegenc_huffman.h:69
void ff_mjpeg_encode_huffman_close(MJpegEncHuffmanContext *s, uint8_t bits[17], uint8_t val[], int max_nval)
Produces a Huffman encoding with a given input.
Definition: mjpegenc_huffman.c:161
Used to assign a occurrence count or "probability" to an input value.
Definition: magicyuvenc.c:48
Definition: mjpegenc_huffman.h:32
struct PackageMergerList PackageMergerList
Used to store intermediate lists in the package merge algorithm.