libavcodec/h264enc.c File Reference

#include "libavutil/common.h"
#include "get_bits.h"
#include "mpegvideo.h"
#include "h264data.h"

Go to the source code of this file.

Defines

#define QUANT_SHIFT   22

Functions

static uint8_t * h264_write_nal_unit (int nal_ref_idc, int nal_unit_type, uint8_t *dest, int *destsize, PutBitContext *b2)
 Write out the provided data into a NAL unit.
static int quantize_c (DCTELEM *block, uint8_t *scantable, int qscale, int intra, int separate_dc)

Variables

static const uint8_t pict_type_to_golomb [7] = {-1, 2, 0, 1, -1, 4, 3}
static const uint8_t intra4x4_cbp_to_golomb [48]
static const uint8_t inter_cbp_to_golomb [48]
static const int quant_coeff [52][16]


Define Documentation

#define QUANT_SHIFT   22

Definition at line 124 of file h264enc.c.

Referenced by quantize_c().


Function Documentation

static uint8_t* h264_write_nal_unit ( int  nal_ref_idc,
int  nal_unit_type,
uint8_t *  dest,
int *  destsize,
PutBitContext b2 
) [static]

Write out the provided data into a NAL unit.

Parameters:
nal_ref_idc NAL reference IDC
nal_unit_type NAL unit payload type
dest the target buffer, dst+1 == src is allowed as a special case
destsize the length of the dst array
b2 the data which should be escaped
Returns:
pointer to current position in the output buffer or NULL if an error occurred

Definition at line 36 of file h264enc.c.

static int quantize_c ( DCTELEM block,
uint8_t *  scantable,
int  qscale,
int  intra,
int  separate_dc 
) [inline, static]

Definition at line 183 of file h264enc.c.


Variable Documentation

const uint8_t inter_cbp_to_golomb[48] [static]

Initial value:

 {
    0,  2,  3,  7,  4,  8, 17, 13,  5, 18,  9, 14, 10, 15, 16, 11,
    1, 32, 33, 36, 34, 37, 44, 40, 35, 45, 38, 41, 39, 42, 43, 19,
    6, 24, 25, 20, 26, 21, 46, 28, 27, 47, 22, 29, 23, 30, 31, 12
}

Definition at line 118 of file h264enc.c.

const uint8_t intra4x4_cbp_to_golomb[48] [static]

Initial value:

 {
    3, 29, 30, 17, 31, 18, 37,  8, 32, 38, 19,  9, 20, 10, 11,  2,
   16, 33, 34, 21, 35, 22, 39,  4, 36, 40, 23,  5, 24,  6,  7,  1,
   41, 42, 43, 25, 44, 26, 46, 12, 45, 47, 27, 13, 28, 14, 15,  0
}

Definition at line 112 of file h264enc.c.

const uint8_t pict_type_to_golomb[7] = {-1, 2, 0, 1, -1, 4, 3} [static]

Definition at line 110 of file h264enc.c.

const int quant_coeff[52][16] [static]

Definition at line 126 of file h264enc.c.

Referenced by quantize_c().


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