libavcodec/vp56dsp.c File Reference

#include <stdint.h>
#include "avcodec.h"
#include "vp56dsp.h"

Go to the source code of this file.

Defines

#define VP56_EDGE_FILTER(pfx, suf, pix_inc, line_inc)

Functions

static int vp5_adjust (int v, int t)
static int vp6_adjust (int v, int t)
void ff_vp56dsp_init (VP56DSPContext *s, enum CodecID codec)


Define Documentation

#define VP56_EDGE_FILTER ( pfx,
suf,
pix_inc,
line_inc   ) 

Value:

static void pfx##_edge_filter_##suf(uint8_t *yuv, int stride, int t)    \
{                                                                       \
    int pix2_inc = 2 * pix_inc;                                         \
    int i, v;                                                           \
                                                                        \
    for (i=0; i<12; i++) {                                              \
        v = (yuv[-pix2_inc] + 3*(yuv[0]-yuv[-pix_inc]) - yuv[pix_inc] + 4)>>3;\
        v = pfx##_adjust(v, t);                                         \
        yuv[-pix_inc] = av_clip_uint8(yuv[-pix_inc] + v);               \
        yuv[0] = av_clip_uint8(yuv[0] - v);                             \
        yuv += line_inc;                                                \
    }                                                                   \
}

Definition at line 57 of file vp56dsp.c.


Function Documentation

void ff_vp56dsp_init ( VP56DSPContext s,
enum CodecID  codec 
)

Definition at line 77 of file vp56dsp.c.

Referenced by vp56_init().

static int vp5_adjust ( int  v,
int  t 
) [static]

Definition at line 27 of file vp56dsp.c.

static int vp6_adjust ( int  v,
int  t 
) [static]

Definition at line 43 of file vp56dsp.c.


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