libavcodec/rv40dsp.c File Reference

RV40 decoder motion compensation functions. More...

#include "avcodec.h"
#include "dsputil.h"

Go to the source code of this file.

Defines

#define RV40_LOWPASS(OPNAME, OP)
#define RV40_MC(OPNAME, SIZE)
#define op_avg(a, b)   a = (((a)+cm[b]+1)>>1)
#define op_put(a, b)   a = cm[b]
#define RV40_CHROMA_MC(OPNAME, OP)
#define op_avg(a, b)   a = (((a)+((b)>>6)+1)>>1)
#define op_put(a, b)   a = ((b)>>6)

Functions

void ff_rv40dsp_init (DSPContext *c, AVCodecContext *avctx)

Variables

static const int rv40_bias [4][4]


Detailed Description

RV40 decoder motion compensation functions.

Definition in file rv40dsp.c.


Define Documentation

#define op_avg ( a,
 )     a = (((a)+((b)>>6)+1)>>1)

Definition at line 281 of file rv40dsp.c.

#define op_avg ( a,
 )     a = (((a)+cm[b]+1)>>1)

Definition at line 281 of file rv40dsp.c.

#define op_put ( a,
 )     a = ((b)>>6)

Definition at line 282 of file rv40dsp.c.

#define op_put ( a,
 )     a = cm[b]

Definition at line 282 of file rv40dsp.c.

#define RV40_CHROMA_MC ( OPNAME,
OP   ) 

Definition at line 206 of file rv40dsp.c.

#define RV40_LOWPASS ( OPNAME,
OP   ) 

Definition at line 30 of file rv40dsp.c.

#define RV40_MC ( OPNAME,
SIZE   ) 

Definition at line 103 of file rv40dsp.c.


Function Documentation

void ff_rv40dsp_init ( DSPContext c,
AVCodecContext avctx 
)

Definition at line 287 of file rv40dsp.c.

Referenced by dsputil_init().


Variable Documentation

const int rv40_bias[4][4] [static]

Initial value:

 {
    {  0, 16, 32, 16 },
    { 32, 28, 32, 28 },
    {  0, 32, 16, 32 },
    { 32, 28, 32, 28 }
}

Definition at line 199 of file rv40dsp.c.


Generated on Fri Oct 26 02:35:44 2012 for FFmpeg by  doxygen 1.5.8