FFmpeg
Data Structures | Macros | Functions
mjpegdec.h File Reference
#include "libavutil/log.h"
#include "libavutil/mem_internal.h"
#include "libavutil/pixdesc.h"
#include "libavutil/stereo3d.h"
#include "avcodec.h"
#include "blockdsp.h"
#include "get_bits.h"
#include "hpeldsp.h"
#include "idctdsp.h"

Go to the source code of this file.

Data Structures

struct  ICCEntry
 
struct  MJpegDecodeContext
 

Macros

#define MAX_COMPONENTS   4
 

Functions

int ff_mjpeg_build_vlc (VLC *vlc, const uint8_t *bits_table, const uint8_t *val_table, int is_ac, void *logctx)
 
int ff_mjpeg_decode_init (AVCodecContext *avctx)
 
int ff_mjpeg_decode_end (AVCodecContext *avctx)
 
int ff_mjpeg_receive_frame (AVCodecContext *avctx, AVFrame *frame)
 
int ff_mjpeg_decode_dqt (MJpegDecodeContext *s)
 
int ff_mjpeg_decode_dht (MJpegDecodeContext *s)
 
int ff_mjpeg_decode_sof (MJpegDecodeContext *s)
 
int ff_mjpeg_decode_sos (MJpegDecodeContext *s, const uint8_t *mb_bitmask, int mb_bitmask_size, const AVFrame *reference)
 
int ff_mjpeg_find_marker (MJpegDecodeContext *s, const uint8_t **buf_ptr, const uint8_t *buf_end, const uint8_t **unescaped_buf_ptr, int *unescaped_buf_size)
 
int ff_sp5x_process_packet (AVCodecContext *avctx, AVPacket *avpkt)
 

Detailed Description

MJPEG decoder.

Definition in file mjpegdec.h.

Macro Definition Documentation

◆ MAX_COMPONENTS

#define MAX_COMPONENTS   4

Definition at line 45 of file mjpegdec.h.

Function Documentation

◆ ff_mjpeg_build_vlc()

int ff_mjpeg_build_vlc ( VLC vlc,
const uint8_t *  bits_table,
const uint8_t *  val_table,
int  is_ac,
void *  logctx 
)

Definition at line 41 of file mjpegdec_common.c.

Referenced by ff_mjpeg_decode_dht(), init_default_huffman_tables(), and jpg_init().

◆ ff_mjpeg_decode_init()

int ff_mjpeg_decode_init ( AVCodecContext avctx)

Definition at line 118 of file mjpegdec.c.

Referenced by mxpeg_decode_init().

◆ ff_mjpeg_decode_end()

int ff_mjpeg_decode_end ( AVCodecContext avctx)

Definition at line 2946 of file mjpegdec.c.

Referenced by mxpeg_decode_end().

◆ ff_mjpeg_receive_frame()

int ff_mjpeg_receive_frame ( AVCodecContext avctx,
AVFrame frame 
)

Definition at line 2397 of file mjpegdec.c.

◆ ff_mjpeg_decode_dqt()

int ff_mjpeg_decode_dqt ( MJpegDecodeContext s)

Definition at line 194 of file mjpegdec.c.

Referenced by ff_mjpeg_receive_frame(), mjpegb_decode_frame(), and mxpeg_decode_frame().

◆ ff_mjpeg_decode_dht()

int ff_mjpeg_decode_dht ( MJpegDecodeContext s)

◆ ff_mjpeg_decode_sof()

int ff_mjpeg_decode_sof ( MJpegDecodeContext s)

Definition at line 298 of file mjpegdec.c.

Referenced by ff_mjpeg_receive_frame(), mjpegb_decode_frame(), and mxpeg_decode_frame().

◆ ff_mjpeg_decode_sos()

int ff_mjpeg_decode_sos ( MJpegDecodeContext s,
const uint8_t *  mb_bitmask,
int  mb_bitmask_size,
const AVFrame reference 
)

Definition at line 1633 of file mjpegdec.c.

Referenced by ff_mjpeg_receive_frame(), mjpegb_decode_frame(), and mxpeg_decode_frame().

◆ ff_mjpeg_find_marker()

int ff_mjpeg_find_marker ( MJpegDecodeContext s,
const uint8_t **  buf_ptr,
const uint8_t *  buf_end,
const uint8_t **  unescaped_buf_ptr,
int unescaped_buf_size 
)

Definition at line 2203 of file mjpegdec.c.

Referenced by ff_mjpeg_receive_frame(), and mxpeg_decode_frame().

◆ ff_sp5x_process_packet()

int ff_sp5x_process_packet ( AVCodecContext avctx,
AVPacket avpkt 
)

Definition at line 33 of file sp5xdec.c.

Referenced by mjpeg_get_packet().