h261dec.c File Reference


Detailed Description

H.261 decoder.

Definition in file h261dec.c.

Go to the source code of this file.

Functions

static int h261_decode_block (H261Context *h, DCTELEM *block, int n, int coded)
 decodes a macroblock
static void h261_decode_init_vlc (H261Context *h)
static int h261_decode_init (AVCodecContext *avctx)
static int h261_decode_gob_header (H261Context *h)
 decodes the group of blocks header or slice header.
static int ff_h261_resync (H261Context *h)
 decodes the group of blocks / video packet header.
static int h261_decode_mb_skipped (H261Context *h, int mba1, int mba2)
 decodes skipped macroblocks
static int decode_mv_component (GetBitContext *gb, int v)
static int h261_decode_mb (H261Context *h)
static int h261_decode_picture_header (H261Context *h)
 decodes the H261 picture header.
static int h261_decode_gob (H261Context *h)
static int get_consumed_bytes (MpegEncContext *s, int buf_size)
 returns the number of bytes consumed for building the current frame
static int h261_decode_frame (AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size)
static int h261_decode_end (AVCodecContext *avctx)

Variables

uint8_t ff_h261_rl_table_store [2][2 *MAX_RUN+MAX_LEVEL+3]
static VLC h261_mba_vlc
static VLC h261_mtype_vlc
static VLC h261_mv_vlc
static VLC h261_cbp_vlc
AVCodec h261_decoder


Function Documentation

static int h261_decode_block ( H261Context h,
DCTELEM block,
int  n,
int  coded 
) [static]

decodes a macroblock

Returns:
<0 if an error occured

Definition at line 357 of file h261dec.c.

Referenced by h261_decode_mb().

static void h261_decode_init_vlc ( H261Context h  )  [static]

Definition at line 51 of file h261dec.c.

Referenced by h261_decode_init().

static int h261_decode_init ( AVCodecContext avctx  )  [static]

Definition at line 73 of file h261dec.c.

static int h261_decode_gob_header ( H261Context h  )  [static]

decodes the group of blocks header or slice header.

Returns:
<0 if an error occured

Definition at line 102 of file h261dec.c.

Referenced by ff_h261_resync().

static int ff_h261_resync ( H261Context h  )  [static]

decodes the group of blocks / video packet header.

Returns:
<0 if no resync found

Definition at line 152 of file h261dec.c.

Referenced by h261_decode_frame().

static int h261_decode_mb_skipped ( H261Context h,
int  mba1,
int  mba2 
) [static]

decodes skipped macroblocks

Returns:
0

Definition at line 193 of file h261dec.c.

Referenced by h261_decode_gob().

static int decode_mv_component ( GetBitContext gb,
int  v 
) [static]

Definition at line 226 of file h261dec.c.

Referenced by h261_decode_mb().

static int h261_decode_mb ( H261Context h  )  [static]

Definition at line 245 of file h261dec.c.

Referenced by h261_decode_gob().

static int h261_decode_picture_header ( H261Context h  )  [static]

decodes the H261 picture header.

Returns:
<0 if no startcode found

Definition at line 439 of file h261dec.c.

Referenced by h261_decode_frame().

static int h261_decode_gob ( H261Context h  )  [static]

Definition at line 504 of file h261dec.c.

Referenced by h261_decode_frame().

static int get_consumed_bytes ( MpegEncContext s,
int  buf_size 
) [static]

returns the number of bytes consumed for building the current frame

Definition at line 533 of file h261dec.c.

Referenced by decode_frame(), ff_h263_decode_frame(), and h261_decode_frame().

static int h261_decode_frame ( AVCodecContext avctx,
void *  data,
int *  data_size,
uint8_t *  buf,
int  buf_size 
) [static]

Definition at line 541 of file h261dec.c.

static int h261_decode_end ( AVCodecContext avctx  )  [static]

Definition at line 631 of file h261dec.c.


Variable Documentation

uint8_t ff_h261_rl_table_store[2][2 *MAX_RUN+MAX_LEVEL+3]

Definition at line 34 of file h261.c.

VLC h261_mba_vlc [static]

Definition at line 44 of file h261dec.c.

VLC h261_mtype_vlc [static]

Definition at line 45 of file h261dec.c.

VLC h261_mv_vlc [static]

Definition at line 46 of file h261dec.c.

VLC h261_cbp_vlc [static]

Definition at line 47 of file h261dec.c.

Initial value:

Definition at line 640 of file h261dec.c.


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