FFmpeg
Loading...
Searching...
No Matches
mjpegenc_huffman.h File Reference

Huffman table generation for MJPEG encoder. More...

#include <stdint.h>

Go to the source code of this file.

Data Structures

struct  MJpegEncHuffmanContext
 

Functions

void ff_mjpeg_encode_huffman_init (MJpegEncHuffmanContext *s)
 
static void ff_mjpeg_encode_huffman_increment (MJpegEncHuffmanContext *s, uint8_t val)
 
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.
 

Detailed Description

Huffman table generation for MJPEG encoder.

Definition in file mjpegenc_huffman.h.

Function Documentation

◆ ff_mjpeg_encode_huffman_init()

void ff_mjpeg_encode_huffman_init ( MJpegEncHuffmanContext * s)

Definition at line 146 of file mjpegenc_huffman.c.

◆ ff_mjpeg_encode_huffman_increment()

static void ff_mjpeg_encode_huffman_increment ( MJpegEncHuffmanContext * s,
uint8_t val )
inlinestatic

Definition at line 38 of file mjpegenc_huffman.h.

◆ ff_mjpeg_encode_huffman_close()

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.

Parameters
sinput to encode
bitsoutput array where the ith character represents how many input values have i length encoding
valoutput array of input values sorted by their encoded length
max_nvalmaximum number of distinct input values

Definition at line 159 of file mjpegenc_huffman.c.