FFmpeg
Classes | Typedefs | Enumerations | Functions
mjpegenc.h File Reference

MJPEG encoder. More...

#include <stdint.h>
#include "mjpeg.h"
#include "mpegvideo.h"
#include "put_bits.h"

Go to the source code of this file.

Classes

struct  MJpegHuffmanCode
 Buffer of JPEG frame data. More...
 
struct  MJpegContext
 Holds JPEG frame data and Huffman table data. More...
 

Typedefs

typedef struct MJpegHuffmanCode MJpegHuffmanCode
 Buffer of JPEG frame data. More...
 
typedef struct MJpegContext MJpegContext
 Holds JPEG frame data and Huffman table data.
 

Enumerations

enum  HuffmanTableOption { HUFFMAN_TABLE_DEFAULT = 0, HUFFMAN_TABLE_OPTIMAL = 1, NB_HUFFMAN_TABLE_OPTION = 2 }
 Enum for the Huffman encoding strategy. More...
 

Functions

int ff_mjpeg_encode_init (MpegEncContext *s)
 
void ff_mjpeg_encode_close (MpegEncContext *s)
 
void ff_mjpeg_encode_mb (MpegEncContext *s, int16_t block[12][64])
 

Detailed Description

MJPEG encoder.

Typedef Documentation

§ MJpegHuffmanCode

Buffer of JPEG frame data.

Optimal Huffman table generation requires the frame data to be loaded into a buffer so that the tables can be computed. There are at most mb_width*mb_height*12*64 of these per frame.

Enumeration Type Documentation

§ HuffmanTableOption

Enum for the Huffman encoding strategy.

Enumerator
HUFFMAN_TABLE_DEFAULT 

Use the default Huffman tables.

HUFFMAN_TABLE_OPTIMAL 

Compute and use optimal Huffman tables.