FFmpeg
Loading...
Searching...
No Matches
vp5dsp.c File Reference
#include <stdint.h>
#include "libavutil/attributes.h"
#include "vp56dsp.h"
#include "libavutil/common.h"

Go to the source code of this file.

Macros

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

Functions

static int vp5_adjust (int v, int t)
 
av_cold void ff_vp5dsp_init (VP5DSPContext *s)
 

Macro Definition Documentation

◆ VP56_EDGE_FILTER

#define VP56_EDGE_FILTER ( pfx,
suf,
pix_inc,
line_inc )
Value:
static void pfx ## _edge_filter_ ## suf(uint8_t *yuv, ptrdiff_t 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; \
} \
}
#define i(width, name, range_min, range_max)
Definition cbs_h264.c:63
#define av_clip_uint8
Definition common.h:106
#define stride

Definition at line 28 of file vp5dsp.c.

Function Documentation

◆ vp5_adjust()

static int vp5_adjust ( int v,
int t )
static

Definition at line 45 of file vp5dsp.c.

◆ ff_vp5dsp_init()

av_cold void ff_vp5dsp_init ( VP5DSPContext * s)

Definition at line 65 of file vp5dsp.c.

Referenced by ff_vp5dsp_init(), and vp5_decode_init().