libavcodec/h264dspenc.c File Reference

H.264 encoder related DSP utils. More...

#include "dsputil.h"

Go to the source code of this file.

Defines

#define H264_DCT_PART1(X)
#define H264_DCT_PART2(X)

Functions

static void h264_dct_c (DCTELEM block[4][4])
 Transform the provided matrix using the H.264 modified DCT.
void ff_h264dspenc_init (DSPContext *c, AVCodecContext *avctx)

Variables

const uint8_t ff_div6 [52]
const uint8_t ff_rem6 [52]


Detailed Description

H.264 encoder related DSP utils.

Definition in file h264dspenc.c.


Define Documentation

#define H264_DCT_PART1 (  ) 

Value:

a = block[0][X]+block[3][X]; \
         c = block[0][X]-block[3][X]; \
         b = block[1][X]+block[2][X]; \
         d = block[1][X]-block[2][X]; \
         pieces[0][X] = a+b; \
         pieces[2][X] = a-b; \
         pieces[1][X] = (c<<1)+d; \
         pieces[3][X] = c-(d<<1);

Definition at line 34 of file h264dspenc.c.

Referenced by h264_dct_c().

#define H264_DCT_PART2 (  ) 

Value:

a = pieces[X][0]+pieces[X][3]; \
         c = pieces[X][0]-pieces[X][3]; \
         b = pieces[X][1]+pieces[X][2]; \
         d = pieces[X][1]-pieces[X][2]; \
         block[0][X] = a+b; \
         block[2][X] = a-b; \
         block[1][X] = (c<<1)+d; \
         block[3][X] = c-(d<<1);

Definition at line 44 of file h264dspenc.c.

Referenced by h264_dct_c().


Function Documentation

void ff_h264dspenc_init ( DSPContext c,
AVCodecContext avctx 
)

Definition at line 77 of file h264dspenc.c.

Referenced by dsputil_init().

static void h264_dct_c ( DCTELEM  block[4][4]  )  [static]

Transform the provided matrix using the H.264 modified DCT.

Note:
we'll always work with transposed input blocks, to avoid having to make a distinction between C and mmx implementations.
Parameters:
block transposed input block

Definition at line 62 of file h264dspenc.c.

Referenced by ff_h264dspenc_init().


Variable Documentation

const uint8_t ff_div6[52]

Definition at line 74 of file h264.c.

Referenced by init_dequant4_coeff_table(), and init_dequant8_coeff_table().

const uint8_t ff_rem6[52]

Definition at line 70 of file h264.c.

Referenced by init_dequant4_coeff_table(), and init_dequant8_coeff_table().


Generated on Fri Apr 23 15:11:58 2010 for ffmpeg by  doxygen 1.5.6