libavcodec/h264.h File Reference

H.264 / AVC / MPEG4 part10 codec. More...

#include "libavutil/intreadwrite.h"
#include "dsputil.h"
#include "cabac.h"
#include "mpegvideo.h"
#include "h264dsp.h"
#include "h264pred.h"
#include "rectangle.h"
#include "h264_mvpred.h"

Go to the source code of this file.

Data Structures

struct  SPS
 Sequence parameter set. More...
struct  PPS
 Picture parameter set. More...
struct  MMCO
 Memory management control operation. More...
struct  H264Context
 H264Context. More...

Defines

#define interlaced_dct   interlaced_dct_is_a_bad_name
#define mb_intra   mb_intra_is_not_initialized_see_mb_type
#define LUMA_DC_BLOCK_INDEX   25
#define CHROMA_DC_BLOCK_INDEX   26
#define CHROMA_DC_COEFF_TOKEN_VLC_BITS   8
#define COEFF_TOKEN_VLC_BITS   8
#define TOTAL_ZEROS_VLC_BITS   9
#define CHROMA_DC_TOTAL_ZEROS_VLC_BITS   3
#define RUN_VLC_BITS   3
#define RUN7_VLC_BITS   6
#define MAX_SPS_COUNT   32
#define MAX_PPS_COUNT   256
#define MAX_MMCO_COUNT   66
#define MAX_DELAYED_PIC_COUNT   16
#define ALLOW_INTERLACE
#define ALLOW_NOCHROMA
#define FMO   0
#define MAX_SLICES   16
 The maximum number of slices supported by the decoder.
#define MB_MBAFF   h->mb_mbaff
#define MB_FIELD   h->mb_field_decoding_flag
#define FRAME_MBAFF   h->mb_aff_frame
#define FIELD_PICTURE   (s->picture_structure != PICT_FRAME)
#define FIELD_OR_MBAFF_PICTURE   (FRAME_MBAFF || FIELD_PICTURE)
#define CHROMA   h->sps.chroma_format_idc
#define CABAC   h->pps.cabac
#define EXTENDED_SAR   255
#define MB_TYPE_REF0   MB_TYPE_ACPRED
#define MB_TYPE_8x8DCT   0x01000000
#define IS_REF0(a)   ((a) & MB_TYPE_REF0)
#define IS_8x8DCT(a)   ((a) & MB_TYPE_8x8DCT)
#define DELAYED_PIC_REF   4
 Value of Picture.reference when Picture is not a reference picture, but is held for delayed output.
#define LIST_NOT_USED   -1
#define PART_NOT_AVAILABLE   -2
#define MAP_MVS
#define MAP_F2F(idx, mb_type)
#define MAP_F2F(idx, mb_type)

Enumerations

enum  {
  NAL_SLICE = 1, NAL_DPA, NAL_DPB, NAL_DPC,
  NAL_IDR_SLICE, NAL_SEI, NAL_SPS, NAL_PPS,
  NAL_AUD, NAL_END_SEQUENCE, NAL_END_STREAM, NAL_FILLER_DATA,
  NAL_SPS_EXT, NAL_AUXILIARY_SLICE = 19
}
enum  SEI_Type { SEI_BUFFERING_PERIOD = 0, SEI_TYPE_PIC_TIMING = 1, SEI_TYPE_USER_DATA_UNREGISTERED = 5, SEI_TYPE_RECOVERY_POINT = 6 }
 SEI message types. More...
enum  SEI_PicStructType {
  SEI_PIC_STRUCT_FRAME = 0, SEI_PIC_STRUCT_TOP_FIELD = 1, SEI_PIC_STRUCT_BOTTOM_FIELD = 2, SEI_PIC_STRUCT_TOP_BOTTOM = 3,
  SEI_PIC_STRUCT_BOTTOM_TOP = 4, SEI_PIC_STRUCT_TOP_BOTTOM_TOP = 5, SEI_PIC_STRUCT_BOTTOM_TOP_BOTTOM = 6, SEI_PIC_STRUCT_FRAME_DOUBLING = 7,
  SEI_PIC_STRUCT_FRAME_TRIPLING = 8
}
 pic_struct in picture timing SEI message More...
enum  MMCOOpcode {
  MMCO_END = 0, MMCO_SHORT2UNUSED, MMCO_LONG2UNUSED, MMCO_SHORT2LONG,
  MMCO_SET_MAX_LONG, MMCO_RESET, MMCO_LONG
}
 Memory management control operation opcode. More...

Functions

void ff_svq3_luma_dc_dequant_idct_c (DCTELEM *block, int qp)
void ff_svq3_add_idct_c (uint8_t *dst, DCTELEM *block, int stride, int qp, int dc)
int ff_h264_decode_sei (H264Context *h)
 Decode SEI.
int ff_h264_decode_seq_parameter_set (H264Context *h)
 Decode SPS.
int ff_h264_decode_picture_parameter_set (H264Context *h, int bit_length)
 Decode PPS.
const uint8_t * ff_h264_decode_nal (H264Context *h, const uint8_t *src, int *dst_length, int *consumed, int length)
 Decodes a network abstraction layer unit.
int ff_h264_decode_rbsp_trailing (H264Context *h, const uint8_t *src)
 identifies the exact end of the bitstream
av_cold void ff_h264_free_context (H264Context *h)
 frees any data that may have been allocated in the H264 context like SPS, PPS etc.
int ff_h264_get_slice_type (const H264Context *h)
 reconstructs bitstream slice_type.
int ff_h264_alloc_tables (H264Context *h)
 allocates tables.
int ff_h264_fill_default_ref_list (H264Context *h)
 fills the default_ref_list.
int ff_h264_decode_ref_pic_list_reordering (H264Context *h)
void ff_h264_fill_mbaff_ref_list (H264Context *h)
void ff_h264_remove_all_refs (H264Context *h)
int ff_h264_execute_ref_pic_marking (H264Context *h, MMCO *mmco, int mmco_count)
 Executes the reference picture marking (memory management control operations).
int ff_h264_decode_ref_pic_marking (H264Context *h, GetBitContext *gb)
int ff_h264_check_intra4x4_pred_mode (H264Context *h)
 checks if the top & left blocks are available if needed & changes the dc mode so it only uses the available blocks.
int ff_h264_check_intra_pred_mode (H264Context *h, int mode)
 checks if the top & left blocks are available if needed & changes the dc mode so it only uses the available blocks.
void ff_h264_write_back_intra_pred_mode (H264Context *h)
void ff_h264_hl_decode_mb (H264Context *h)
int ff_h264_frame_start (H264Context *h)
av_cold int ff_h264_decode_init (AVCodecContext *avctx)
av_cold int ff_h264_decode_end (AVCodecContext *avctx)
av_cold void ff_h264_decode_init_vlc (void)
int ff_h264_decode_mb_cavlc (H264Context *h)
 decodes a macroblock
int ff_h264_decode_mb_cabac (H264Context *h)
 decodes a CABAC coded macroblock
void ff_h264_init_cabac_states (H264Context *h)
void ff_h264_direct_dist_scale_factor (H264Context *const h)
void ff_h264_direct_ref_list_init (H264Context *const h)
void ff_h264_pred_direct_motion (H264Context *const h, int *mb_type)
void ff_h264_filter_mb_fast (H264Context *h, int mb_x, int mb_y, uint8_t *img_y, uint8_t *img_cb, uint8_t *img_cr, unsigned int linesize, unsigned int uvlinesize)
void ff_h264_filter_mb (H264Context *h, int mb_x, int mb_y, uint8_t *img_y, uint8_t *img_cb, uint8_t *img_cr, unsigned int linesize, unsigned int uvlinesize)
void ff_h264_reset_sei (H264Context *h)
 Reset SEI values at the beginning of the frame.
static av_always_inline uint32_t pack16to32 (int a, int b)
static av_always_inline uint16_t pack8to16 (int a, int b)
static int get_chroma_qp (H264Context *h, int t, int qscale)
 gets the chroma qp.
static void pred_pskip_motion (H264Context *const h, int *const mx, int *const my)
static void fill_decode_neighbors (H264Context *h, int mb_type)
static void fill_decode_caches (H264Context *h, int mb_type)
static int pred_intra_mode (H264Context *h, int n)
 gets the predicted intra4x4 prediction mode.
static void write_back_non_zero_count (H264Context *h)
static void write_back_motion (H264Context *h, int mb_type)
static int get_dct8x8_allowed (H264Context *h)
static void decode_mb_skip (H264Context *h)
 decodes a P_SKIP or B_SKIP macroblock

Variables

const uint8_t ff_h264_chroma_qp [52]
static const uint8_t scan8 [16+2 *4]


Detailed Description

H.264 / AVC / MPEG4 part10 codec.

Author:
Michael Niedermayer <michaelni@gmx.at>

Definition in file h264.h.


Define Documentation

#define ALLOW_INTERLACE

Definition at line 61 of file h264.h.

#define ALLOW_NOCHROMA

Definition at line 63 of file h264.h.

#define CABAC   h->pps.cabac

Definition at line 95 of file h264.h.

Referenced by fill_decode_caches(), fill_filter_caches(), filter_mb_dir(), and write_back_motion().

#define CHROMA   h->sps.chroma_format_idc

Definition at line 89 of file h264.h.

Referenced by ff_h264_decode_mb_cabac(), ff_h264_decode_mb_cavlc(), and pred_weight_table().

#define CHROMA_DC_BLOCK_INDEX   26

Definition at line 43 of file h264.h.

Referenced by decode_residual(), and ff_h264_decode_mb_cavlc().

#define CHROMA_DC_COEFF_TOKEN_VLC_BITS   8

Definition at line 45 of file h264.h.

Referenced by decode_residual(), and ff_h264_decode_init_vlc().

#define CHROMA_DC_TOTAL_ZEROS_VLC_BITS   3

Definition at line 48 of file h264.h.

Referenced by decode_residual(), and ff_h264_decode_init_vlc().

#define COEFF_TOKEN_VLC_BITS   8

Definition at line 46 of file h264.h.

Referenced by decode_residual(), and ff_h264_decode_init_vlc().

#define DELAYED_PIC_REF   4

Value of Picture.reference when Picture is not a reference picture, but is held for delayed output.

Definition at line 109 of file h264.h.

Referenced by decode_frame(), decode_slice_header(), and unreference_pic().

#define EXTENDED_SAR   255

Definition at line 98 of file h264.h.

Referenced by decode_vui_parameters().

#define FIELD_OR_MBAFF_PICTURE   (FRAME_MBAFF || FIELD_PICTURE)

Definition at line 86 of file h264.h.

Referenced by decode_frame(), decode_slice(), decode_slice_header(), and fill_slice_long().

#define FIELD_PICTURE   (s->picture_structure != PICT_FRAME)

#define FMO   0

Definition at line 65 of file h264.h.

Referenced by ff_h264_alloc_tables(), fill_decode_neighbors(), and write_back_motion().

#define FRAME_MBAFF   h->mb_aff_frame

#define interlaced_dct   interlaced_dct_is_a_bad_name

Definition at line 39 of file h264.h.

#define IS_8x8DCT (  )     ((a) & MB_TYPE_8x8DCT)

#define IS_REF0 (  )     ((a) & MB_TYPE_REF0)

Definition at line 102 of file h264.h.

Referenced by ff_h264_decode_mb_cavlc().

#define LIST_NOT_USED   -1

#define LUMA_DC_BLOCK_INDEX   25

Definition at line 42 of file h264.h.

Referenced by decode_residual(), and ff_h264_decode_mb_cavlc().

#define MAP_F2F ( idx,
mb_type   ) 

Value:

if(IS_INTERLACED(mb_type) && h->ref_cache[list][idx] >= 0){\
                        h->ref_cache[list][idx] >>= 1;\
                        h->mv_cache[list][idx][1] <<= 1;\
                        h->mvd_cache[list][idx][1] <<= 1;\
                    }

#define MAP_F2F ( idx,
mb_type   ) 

Value:

if(!IS_INTERLACED(mb_type) && h->ref_cache[list][idx] >= 0){\
                        h->ref_cache[list][idx] <<= 1;\
                        h->mv_cache[list][idx][1] /= 2;\
                        h->mvd_cache[list][idx][1] >>=1;\
                    }

#define MAP_MVS

Value:

MAP_F2F(scan8[0] - 1 - 1*8, topleft_type)\
                    MAP_F2F(scan8[0] + 0 - 1*8, top_type)\
                    MAP_F2F(scan8[0] + 1 - 1*8, top_type)\
                    MAP_F2F(scan8[0] + 2 - 1*8, top_type)\
                    MAP_F2F(scan8[0] + 3 - 1*8, top_type)\
                    MAP_F2F(scan8[0] + 4 - 1*8, topright_type)\
                    MAP_F2F(scan8[0] - 1 + 0*8, left_type[0])\
                    MAP_F2F(scan8[0] - 1 + 1*8, left_type[0])\
                    MAP_F2F(scan8[0] - 1 + 2*8, left_type[1])\
                    MAP_F2F(scan8[0] - 1 + 3*8, left_type[1])

Referenced by fill_decode_caches().

#define MAX_DELAYED_PIC_COUNT   16

Definition at line 57 of file h264.h.

Referenced by decode_frame(), and flush_dpb().

#define MAX_MMCO_COUNT   66

Definition at line 55 of file h264.h.

Referenced by ff_h264_decode_ref_pic_marking().

#define MAX_PPS_COUNT   256

#define MAX_SLICES   16

The maximum number of slices supported by the decoder.

must be a power of 2

Definition at line 71 of file h264.h.

Referenced by decode_slice(), decode_slice_header(), and fill_filter_caches().

#define MAX_SPS_COUNT   32

#define MB_FIELD   h->mb_field_decoding_flag

#define mb_intra   mb_intra_is_not_initialized_see_mb_type

Definition at line 40 of file h264.h.

#define MB_MBAFF   h->mb_mbaff

#define MB_TYPE_8x8DCT   0x01000000

Definition at line 101 of file h264.h.

Referenced by ff_h264_decode_mb_cabac(), and ff_h264_decode_mb_cavlc().

#define MB_TYPE_REF0   MB_TYPE_ACPRED

Definition at line 100 of file h264.h.

#define PART_NOT_AVAILABLE   -2

#define RUN7_VLC_BITS   6

Definition at line 50 of file h264.h.

Referenced by decode_residual(), and ff_h264_decode_init_vlc().

#define RUN_VLC_BITS   3

Definition at line 49 of file h264.h.

Referenced by decode_residual(), and ff_h264_decode_init_vlc().

#define TOTAL_ZEROS_VLC_BITS   9

Definition at line 47 of file h264.h.

Referenced by decode_residual(), and ff_h264_decode_init_vlc().


Enumeration Type Documentation

anonymous enum

Enumerator:
NAL_SLICE 
NAL_DPA 
NAL_DPB 
NAL_DPC 
NAL_IDR_SLICE 
NAL_SEI 
NAL_SPS 
NAL_PPS 
NAL_AUD 
NAL_END_SEQUENCE 
NAL_END_STREAM 
NAL_FILLER_DATA 
NAL_SPS_EXT 
NAL_AUXILIARY_SLICE 

Definition at line 113 of file h264.h.

enum MMCOOpcode

Memory management control operation opcode.

Enumerator:
MMCO_END 
MMCO_SHORT2UNUSED 
MMCO_LONG2UNUSED 
MMCO_SHORT2LONG 
MMCO_SET_MAX_LONG 
MMCO_RESET 
MMCO_LONG 

Definition at line 242 of file h264.h.

pic_struct in picture timing SEI message

Enumerator:
SEI_PIC_STRUCT_FRAME  0: frame
SEI_PIC_STRUCT_TOP_FIELD  1: top field
SEI_PIC_STRUCT_BOTTOM_FIELD  2: bottom field
SEI_PIC_STRUCT_TOP_BOTTOM  3: top field, bottom field, in that order
SEI_PIC_STRUCT_BOTTOM_TOP  4: bottom field, top field, in that order
SEI_PIC_STRUCT_TOP_BOTTOM_TOP  5: top field, bottom field, top field repeated, in that order
SEI_PIC_STRUCT_BOTTOM_TOP_BOTTOM  6: bottom field, top field, bottom field repeated, in that order
SEI_PIC_STRUCT_FRAME_DOUBLING  7: frame doubling
SEI_PIC_STRUCT_FRAME_TRIPLING  8: frame tripling

Definition at line 143 of file h264.h.

enum SEI_Type

SEI message types.

Enumerator:
SEI_BUFFERING_PERIOD  buffering period (H.264, D.1.1)
SEI_TYPE_PIC_TIMING  picture timing
SEI_TYPE_USER_DATA_UNREGISTERED  unregistered user data
SEI_TYPE_RECOVERY_POINT  recovery point (frame # to decoder sync)

Definition at line 133 of file h264.h.


Function Documentation

static void decode_mb_skip ( H264Context h  )  [static]

decodes a P_SKIP or B_SKIP macroblock

Definition at line 1256 of file h264.h.

Referenced by ff_h264_decode_mb_cabac(), and ff_h264_decode_mb_cavlc().

int ff_h264_alloc_tables ( H264Context h  ) 

allocates tables.

needs width/height

Definition at line 744 of file h264.c.

Referenced by decode_slice_header(), and svq3_decode_init().

int ff_h264_check_intra4x4_pred_mode ( H264Context h  ) 

checks if the top & left blocks are available if needed & changes the dc mode so it only uses the available blocks.

Definition at line 66 of file h264.c.

Referenced by ff_h264_decode_mb_cabac(), ff_h264_decode_mb_cavlc(), and svq3_decode_mb().

int ff_h264_check_intra_pred_mode ( H264Context h,
int  mode 
)

checks if the top & left blocks are available if needed & changes the dc mode so it only uses the available blocks.

Definition at line 105 of file h264.c.

Referenced by ff_h264_decode_mb_cabac(), ff_h264_decode_mb_cavlc(), and svq3_decode_mb().

av_cold int ff_h264_decode_end ( AVCodecContext avctx  ) 

Definition at line 3358 of file h264.c.

av_cold int ff_h264_decode_init ( AVCodecContext avctx  ) 

Definition at line 847 of file h264.c.

Referenced by svq3_decode_init().

av_cold void ff_h264_decode_init_vlc ( void   ) 

Definition at line 265 of file h264_cavlc.c.

Referenced by ff_h264_decode_init().

int ff_h264_decode_mb_cabac ( H264Context h  ) 

decodes a CABAC coded macroblock

Returns:
0 if OK, AC_ERROR / DC_ERROR / MV_ERROR if an error is noticed
decodes a CABAC coded macroblock

Returns:
0 if OK, AC_ERROR / DC_ERROR / MV_ERROR if an error is noticed

Definition at line 1186 of file h264_cabac.c.

Referenced by decode_slice().

int ff_h264_decode_mb_cavlc ( H264Context h  ) 

decodes a macroblock

Returns:
0 if OK, AC_ERROR / DC_ERROR / MV_ERROR if an error is noticed

Definition at line 535 of file h264_cavlc.c.

Referenced by decode_slice().

const uint8_t* ff_h264_decode_nal ( H264Context h,
const uint8_t *  src,
int *  dst_length,
int *  consumed,
int  length 
)

Decodes a network abstraction layer unit.

Parameters:
consumed is the number of bytes used as input
length is the length of the array
dst_length is the number of decoded bytes FIXME here or a decode rbsp tailing?
Returns:
decoded bytes, might be src+1 if no escapes

Definition at line 137 of file h264.c.

Referenced by decode_nal_units(), and parse_nal_units().

int ff_h264_decode_picture_parameter_set ( H264Context h,
int  bit_length 
)

Decode PPS.

Definition at line 427 of file h264_ps.c.

Referenced by decode_nal_units(), and parse_nal_units().

int ff_h264_decode_rbsp_trailing ( H264Context h,
const uint8_t *  src 
)

identifies the exact end of the bitstream

Returns:
the length of the trailing, or 0 if damaged

Definition at line 227 of file h264.c.

Referenced by decode_nal_units().

int ff_h264_decode_ref_pic_list_reordering ( H264Context h  ) 

Definition at line 187 of file h264_refs.c.

Referenced by decode_slice_header().

int ff_h264_decode_ref_pic_marking ( H264Context h,
GetBitContext gb 
)

Definition at line 633 of file h264_refs.c.

Referenced by decode_slice_header().

int ff_h264_decode_sei ( H264Context h  ) 

Decode SEI.

Definition at line 164 of file h264_sei.c.

Referenced by decode_nal_units(), and parse_nal_units().

int ff_h264_decode_seq_parameter_set ( H264Context h  ) 

Decode SPS.

Definition at line 267 of file h264_ps.c.

Referenced by decode_nal_units(), and parse_nal_units().

void ff_h264_direct_dist_scale_factor ( H264Context *const   h  ) 

Definition at line 51 of file h264_direct.c.

Referenced by decode_slice_header().

void ff_h264_direct_ref_list_init ( H264Context *const   h  ) 

Definition at line 101 of file h264_direct.c.

Referenced by decode_slice_header().

int ff_h264_execute_ref_pic_marking ( H264Context h,
MMCO mmco,
int  mmco_count 
)

Executes the reference picture marking (memory management control operations).

Definition at line 477 of file h264_refs.c.

Referenced by decode_slice_header(), and field_end().

int ff_h264_fill_default_ref_list ( H264Context h  ) 

fills the default_ref_list.

Definition at line 108 of file h264_refs.c.

Referenced by decode_slice_header().

void ff_h264_fill_mbaff_ref_list ( H264Context h  ) 

Definition at line 301 of file h264_refs.c.

Referenced by decode_slice_header().

void ff_h264_filter_mb ( H264Context h,
int  mb_x,
int  mb_y,
uint8_t *  img_y,
uint8_t *  img_cb,
uint8_t *  img_cr,
unsigned int  linesize,
unsigned int  uvlinesize 
)

Definition at line 656 of file h264_loopfilter.c.

Referenced by ff_h264_filter_mb_fast(), and loop_filter().

void ff_h264_filter_mb_fast ( H264Context h,
int  mb_x,
int  mb_y,
uint8_t *  img_y,
uint8_t *  img_cb,
uint8_t *  img_cr,
unsigned int  linesize,
unsigned int  uvlinesize 
)

Definition at line 309 of file h264_loopfilter.c.

Referenced by loop_filter().

int ff_h264_frame_start ( H264Context h  ) 

Definition at line 930 of file h264.c.

Referenced by decode_slice_header(), and svq3_decode_frame().

av_cold void ff_h264_free_context ( H264Context h  ) 

frees any data that may have been allocated in the H264 context like SPS, PPS etc.

Definition at line 3345 of file h264.c.

Referenced by close(), and ff_h264_decode_end().

int ff_h264_get_slice_type ( const H264Context h  ) 

reconstructs bitstream slice_type.

Definition at line 2210 of file h264.c.

Referenced by decode_slice(), and fill_slice_long().

void ff_h264_hl_decode_mb ( H264Context h  ) 

Definition at line 1340 of file h264.c.

Referenced by decode_mb(), decode_slice(), and svq3_decode_frame().

void ff_h264_init_cabac_states ( H264Context h  ) 

Definition at line 688 of file h264_cabac.c.

Referenced by decode_slice().

void ff_h264_pred_direct_motion ( H264Context *const   h,
int *  mb_type 
)

Definition at line 584 of file h264_direct.c.

Referenced by decode_mb_skip(), ff_h264_decode_mb_cabac(), and ff_h264_decode_mb_cavlc().

void ff_h264_remove_all_refs ( H264Context h  ) 

Definition at line 432 of file h264_refs.c.

Referenced by idr().

void ff_h264_reset_sei ( H264Context h  ) 

Reset SEI values at the beginning of the frame.

Parameters:
h H.264 context.

Definition at line 40 of file h264_sei.c.

Referenced by decode_nal_units(), ff_h264_decode_init(), and flush_dpb().

void ff_h264_write_back_intra_pred_mode ( H264Context h  ) 

Definition at line 54 of file h264.c.

Referenced by ff_h264_decode_mb_cabac(), ff_h264_decode_mb_cavlc(), and svq3_decode_mb().

void ff_svq3_add_idct_c ( uint8_t *  dst,
DCTELEM block,
int  stride,
int  qp,
int  dc 
)

Definition at line 166 of file svq3.c.

Referenced by hl_decode_mb_internal().

void ff_svq3_luma_dc_dequant_idct_c ( DCTELEM block,
int  qp 
)

Definition at line 129 of file svq3.c.

Referenced by hl_decode_mb_internal().

static void fill_decode_caches ( H264Context h,
int  mb_type 
) [static]

Definition at line 843 of file h264.h.

Referenced by decode_mb_skip(), ff_h264_decode_mb_cabac(), and ff_h264_decode_mb_cavlc().

static void fill_decode_neighbors ( H264Context h,
int  mb_type 
) [static]

Definition at line 761 of file h264.h.

Referenced by decode_mb_skip(), ff_h264_decode_mb_cabac(), and ff_h264_decode_mb_cavlc().

static int get_chroma_qp ( H264Context h,
int  t,
int  qscale 
) [inline, static]

static int get_dct8x8_allowed ( H264Context h  )  [inline, static]

Definition at line 1246 of file h264.h.

Referenced by ff_h264_decode_mb_cabac(), and ff_h264_decode_mb_cavlc().

static av_always_inline uint32_t pack16to32 ( int  a,
int  b 
) [static]

static av_always_inline uint16_t pack8to16 ( int  a,
int  b 
) [static]

Definition at line 744 of file h264.h.

Referenced by ff_h264_decode_mb_cabac().

static int pred_intra_mode ( H264Context h,
int  n 
) [inline, static]

gets the predicted intra4x4 prediction mode.

Definition at line 1169 of file h264.h.

Referenced by ff_h264_decode_mb_cabac(), and ff_h264_decode_mb_cavlc().

static void pred_pskip_motion ( H264Context *const   h,
int *const   mx,
int *const   my 
) [inline, static]

Referenced by decode_mb_skip().

static void write_back_motion ( H264Context h,
int  mb_type 
) [inline, static]

Definition at line 1191 of file h264.h.

Referenced by decode_mb_skip(), ff_h264_decode_mb_cabac(), and ff_h264_decode_mb_cavlc().

static void write_back_non_zero_count ( H264Context h  )  [inline, static]

Definition at line 1181 of file h264.h.

Referenced by ff_h264_decode_mb_cabac(), and ff_h264_decode_mb_cavlc().


Variable Documentation

const uint8_t ff_h264_chroma_qp[52]

Definition at line 59 of file h264_ps.c.

Referenced by build_qp_table(), and hl_decode_mb_internal().

const uint8_t scan8[16+2 *4] [static]


Generated on Fri Oct 26 02:36:52 2012 for FFmpeg by  doxygen 1.5.8