FFmpeg
Loading...
Searching...
No Matches
h263dec.h File Reference
#include "get_bits.h"
#include "mpegvideo.h"
#include "vlc.h"
#include "libavutil/mem_internal.h"

Go to the source code of this file.

Data Structures

struct  H263DecContext
 

Macros

#define H263_MV_VLC_BITS   9
 
#define INTRA_MCBPC_VLC_BITS   6
 
#define INTER_MCBPC_VLC_BITS   7
 
#define CBPY_VLC_BITS   6
 
#define TEX_VLC_BITS   9
 
#define FRAME_SKIPPED   100
 Frame is not coded.
 
#define SLICE_OK   0
 
#define SLICE_ERROR   -1
 
#define SLICE_END   -2
 end marker found
 
#define SLICE_NOEND   -3
 no end marker or error found but mb count exceeded
 

Functions

int ff_h263_decode_motion (H263DecContext *const h, int pred, int f_code)
 
int ff_h263_decode_init (AVCodecContext *avctx)
 
int ff_h263_decode_frame (AVCodecContext *avctx, AVFrame *frame, int *got_frame, AVPacket *avpkt)
 
void ff_h263_decode_init_vlc (void)
 
int ff_h263_decode_picture_header (H263DecContext *const h)
 
int ff_h263_decode_gob_header (H263DecContext *const h)
 
int ff_h263_decode_mba (H263DecContext *const h)
 
void ff_h263_show_pict_info (H263DecContext *const h, int h263_plus)
 Print picture info if FF_DEBUG_PICT_INFO is set.
 
int ff_intel_h263_decode_picture_header (H263DecContext *const h)
 
int ff_h263_decode_mb (H263DecContext *const h)
 
int ff_h263_resync (H263DecContext *const h)
 Decode the group of blocks / video packet header / slice header (MPEG-4 Studio).
 

Variables

VLCElem ff_h263_intra_MCBPC_vlc []
 
VLCElem ff_h263_inter_MCBPC_vlc []
 
VLCElem ff_h263_cbpy_vlc []
 
VLCElem ff_h263_mv_vlc []
 

Macro Definition Documentation

◆ H263_MV_VLC_BITS

#define H263_MV_VLC_BITS   9

Definition at line 32 of file h263dec.h.

Referenced by ff_h263_decode_motion(), h263_decode_init_vlc(), and msmpeg4v2_decode_motion().

◆ INTRA_MCBPC_VLC_BITS

#define INTRA_MCBPC_VLC_BITS   6

◆ INTER_MCBPC_VLC_BITS

#define INTER_MCBPC_VLC_BITS   7

◆ CBPY_VLC_BITS

#define CBPY_VLC_BITS   6

◆ TEX_VLC_BITS

#define TEX_VLC_BITS   9

Definition at line 36 of file h263dec.h.

◆ FRAME_SKIPPED

#define FRAME_SKIPPED   100

◆ SLICE_OK

#define SLICE_OK   0

Definition at line 93 of file h263dec.h.

◆ SLICE_ERROR

#define SLICE_ERROR   -1

Definition at line 94 of file h263dec.h.

◆ SLICE_END

#define SLICE_END   -2

end marker found

Definition at line 95 of file h263dec.h.

◆ SLICE_NOEND

#define SLICE_NOEND   -3

no end marker or error found but mb count exceeded

Definition at line 96 of file h263dec.h.

Referenced by decode_slice(), and mpeg4_decode_partitioned_mb().

Function Documentation

◆ ff_h263_decode_motion()

int ff_h263_decode_motion ( H263DecContext *const h,
int pred,
int f_code )

◆ ff_h263_decode_init()

int ff_h263_decode_init ( AVCodecContext * avctx)

Definition at line 94 of file h263dec.c.

Referenced by ff_msmpeg4_decode_init(), and rv10_decode_init().

◆ ff_h263_decode_frame()

int ff_h263_decode_frame ( AVCodecContext * avctx,
AVFrame * frame,
int * got_frame,
AVPacket * avpkt )

Definition at line 443 of file h263dec.c.

◆ ff_h263_decode_init_vlc()

void ff_h263_decode_init_vlc ( void )

Definition at line 136 of file ituh263dec.c.

Referenced by ff_h263_decode_init().

◆ ff_h263_decode_picture_header()

int ff_h263_decode_picture_header ( H263DecContext *const h)

Definition at line 1092 of file ituh263dec.c.

Referenced by ff_h263_decode_init().

◆ ff_h263_decode_gob_header()

int ff_h263_decode_gob_header ( H263DecContext *const h)

◆ ff_h263_decode_mba()

int ff_h263_decode_mba ( H263DecContext *const h)

◆ ff_h263_show_pict_info()

void ff_h263_show_pict_info ( H263DecContext *const h,
int h263_plus )

Print picture info if FF_DEBUG_PICT_INFO is set.

Definition at line 80 of file ituh263dec.c.

Referenced by ff_h263_decode_picture_header(), and ff_intel_h263_decode_picture_header().

◆ ff_intel_h263_decode_picture_header()

int ff_intel_h263_decode_picture_header ( H263DecContext *const h)

Definition at line 29 of file intelh263dec.c.

Referenced by ff_h263_decode_init().

◆ ff_h263_decode_mb()

int ff_h263_decode_mb ( H263DecContext *const h)

Definition at line 784 of file ituh263dec.c.

Referenced by ff_h263_decode_init(), and rv10_decode_packet().

◆ ff_h263_resync()

int ff_h263_resync ( H263DecContext *const h)

Decode the group of blocks / video packet header / slice header (MPEG-4 Studio).

Returns
bit position of the resync_marker, or <0 if none was found

Definition at line 217 of file ituh263dec.c.

Referenced by ff_h263_decode_frame().

Variable Documentation

◆ ff_h263_intra_MCBPC_vlc

VLCElem ff_h263_intra_MCBPC_vlc[]
extern

◆ ff_h263_inter_MCBPC_vlc

VLCElem ff_h263_inter_MCBPC_vlc[]
extern

◆ ff_h263_cbpy_vlc

◆ ff_h263_mv_vlc

VLCElem ff_h263_mv_vlc[]
extern