mjpegdec.c File Reference


Detailed Description

MJPEG decoder.

Definition in file mjpegdec.c.

Go to the source code of this file.

Functions

static int build_vlc (VLC *vlc, const uint8_t *bits_table, const uint8_t *val_table, int nb_codes, int use_static, int is_ac)
static void build_basic_mjpeg_vlc (MJpegDecodeContext *s)
int ff_mjpeg_decode_init (AVCodecContext *avctx)
int ff_mjpeg_decode_dqt (MJpegDecodeContext *s)
int ff_mjpeg_decode_dht (MJpegDecodeContext *s)
int ff_mjpeg_decode_sof (MJpegDecodeContext *s)
static int mjpeg_decode_dc (MJpegDecodeContext *s, int dc_index)
static int decode_block (MJpegDecodeContext *s, DCTELEM *block, int component, int dc_index, int ac_index, int16_t *quant_matrix)
static int decode_block_progressive (MJpegDecodeContext *s, DCTELEM *block, int component, int dc_index, int ac_index, int16_t *quant_matrix, int ss, int se, int Ah, int Al, int *EOBRUN)
static int ljpeg_decode_rgb_scan (MJpegDecodeContext *s, int predictor, int point_transform)
static int ljpeg_decode_yuv_scan (MJpegDecodeContext *s, int predictor, int point_transform)
static int mjpeg_decode_scan (MJpegDecodeContext *s, int nb_components, int ss, int se, int Ah, int Al)
int ff_mjpeg_decode_sos (MJpegDecodeContext *s)
static int mjpeg_decode_dri (MJpegDecodeContext *s)
static int mjpeg_decode_app (MJpegDecodeContext *s)
static int mjpeg_decode_com (MJpegDecodeContext *s)

Variables

static int valid_marker_list []
AVCodec thp_decoder


Function Documentation

static int build_vlc ( VLC vlc,
const uint8_t *  bits_table,
const uint8_t *  val_table,
int  nb_codes,
int  use_static,
int  is_ac 
) [static]

Definition at line 43 of file mjpegdec.c.

Referenced by build_basic_mjpeg_vlc(), and ff_mjpeg_decode_dht().

static void build_basic_mjpeg_vlc ( MJpegDecodeContext s  )  [static]

Definition at line 65 of file mjpegdec.c.

Referenced by ff_mjpeg_decode_init().

int ff_mjpeg_decode_init ( AVCodecContext avctx  ) 

Definition at line 76 of file mjpegdec.c.

int ff_mjpeg_decode_dqt ( MJpegDecodeContext s  ) 

Definition at line 113 of file mjpegdec.c.

Referenced by mjpegb_decode_frame().

int ff_mjpeg_decode_dht ( MJpegDecodeContext s  ) 

Definition at line 148 of file mjpegdec.c.

Referenced by ff_mjpeg_decode_init(), and mjpegb_decode_frame().

int ff_mjpeg_decode_sof ( MJpegDecodeContext s  ) 

Definition at line 194 of file mjpegdec.c.

Referenced by mjpegb_decode_frame().

static int mjpeg_decode_dc ( MJpegDecodeContext s,
int  dc_index 
) [inline, static]

static int decode_block ( MJpegDecodeContext s,
DCTELEM block,
int  component,
int  dc_index,
int  ac_index,
int16_t quant_matrix 
) [static]

Definition at line 376 of file mjpegdec.c.

Referenced by mjpeg_decode_scan(), and ra288_decode_frame().

static int decode_block_progressive ( MJpegDecodeContext s,
DCTELEM block,
int  component,
int  dc_index,
int  ac_index,
int16_t quant_matrix,
int  ss,
int  se,
int  Ah,
int  Al,
int *  EOBRUN 
) [static]

Definition at line 433 of file mjpegdec.c.

Referenced by mjpeg_decode_scan().

static int ljpeg_decode_rgb_scan ( MJpegDecodeContext s,
int  predictor,
int  point_transform 
) [static]

Definition at line 509 of file mjpegdec.c.

Referenced by ff_mjpeg_decode_sos().

static int ljpeg_decode_yuv_scan ( MJpegDecodeContext s,
int  predictor,
int  point_transform 
) [static]

Definition at line 577 of file mjpegdec.c.

Referenced by ff_mjpeg_decode_sos().

static int mjpeg_decode_scan ( MJpegDecodeContext s,
int  nb_components,
int  ss,
int  se,
int  Ah,
int  Al 
) [static]

Definition at line 660 of file mjpegdec.c.

Referenced by ff_mjpeg_decode_sos(), and sp5x_decode_frame().

int ff_mjpeg_decode_sos ( MJpegDecodeContext s  ) 

Definition at line 738 of file mjpegdec.c.

Referenced by mjpegb_decode_frame().

static int mjpeg_decode_dri ( MJpegDecodeContext s  )  [static]

Definition at line 858 of file mjpegdec.c.

static int mjpeg_decode_app ( MJpegDecodeContext s  )  [static]

Definition at line 869 of file mjpegdec.c.

static int mjpeg_decode_com ( MJpegDecodeContext s  )  [static]

Definition at line 1016 of file mjpegdec.c.


Variable Documentation

int valid_marker_list[] [static]

Definition at line 1052 of file mjpegdec.c.

Initial value:

Definition at line 1369 of file mjpegdec.c.


Generated on Sat Dec 18 05:15:53 2010 for MythTV by  doxygen 1.5.5