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.
av_cold void ff_h264dspenc_init (DSPContext *c, AVCodecContext *avctx)


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 31 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 41 of file h264dspenc.c.

Referenced by h264_dct_c().


Function Documentation

av_cold void ff_h264dspenc_init ( DSPContext c,
AVCodecContext avctx 
)

Definition at line 74 of file h264dspenc.c.

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 59 of file h264dspenc.c.

Referenced by ff_h264dspenc_init().


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