FFmpeg
Loading...
Searching...
No Matches
h264qpel.c File Reference
#include "libavutil/attributes.h"
#include "libavutil/common.h"
#include "h264qpel.h"
#include "h264qpel_template.c"

Go to the source code of this file.

Macros

#define pixeltmp   int16_t
 
#define BIT_DEPTH   8
 
#define BIT_DEPTH   9
 
#define BIT_DEPTH   10
 
#define pixeltmp   int32_t
 
#define BIT_DEPTH   12
 
#define BIT_DEPTH   14
 
#define FUNCC(f, depth)
 
#define dspfunc2(PFX, IDX, NUM, depth)
 
#define SET_QPEL(M, depth)
 
#define FPEL(PFX, IDX, NUM, depth)
 

Functions

av_cold void ff_h264qpel_init (H264QpelContext *c, int bit_depth)
 

Macro Definition Documentation

◆ pixeltmp [1/2]

#define pixeltmp   int16_t

Definition at line 26 of file h264qpel.c.

Referenced by put_snow_qpel2_hv_lowpass_8().

◆ BIT_DEPTH [1/5]

#define BIT_DEPTH   8

Definition at line 27 of file h264qpel.c.

◆ BIT_DEPTH [2/5]

#define BIT_DEPTH   9

Definition at line 27 of file h264qpel.c.

◆ BIT_DEPTH [3/5]

#define BIT_DEPTH   10

Definition at line 27 of file h264qpel.c.

◆ pixeltmp [2/2]

#define pixeltmp   int32_t

Definition at line 26 of file h264qpel.c.

◆ BIT_DEPTH [4/5]

#define BIT_DEPTH   12

Definition at line 27 of file h264qpel.c.

◆ BIT_DEPTH [5/5]

#define BIT_DEPTH   14

Definition at line 27 of file h264qpel.c.

◆ FUNCC

#define FUNCC ( f,
depth )
Value:
f ## _ ## depth ## _c
#define _
#define f(width, name)
Definition cbs_vp8.c:236

◆ dspfunc2

#define dspfunc2 ( PFX,
IDX,
NUM,
depth )
Value:
c->PFX ## _pixels_tab[IDX][ 1] = FUNCC(PFX ## NUM ## _mc10, depth); \
c->PFX ## _pixels_tab[IDX][ 2] = FUNCC(PFX ## NUM ## _mc20, depth); \
c->PFX ## _pixels_tab[IDX][ 3] = FUNCC(PFX ## NUM ## _mc30, depth); \
c->PFX ## _pixels_tab[IDX][ 4] = FUNCC(PFX ## NUM ## _mc01, depth); \
c->PFX ## _pixels_tab[IDX][ 5] = FUNCC(PFX ## NUM ## _mc11, depth); \
c->PFX ## _pixels_tab[IDX][ 6] = FUNCC(PFX ## NUM ## _mc21, depth); \
c->PFX ## _pixels_tab[IDX][ 7] = FUNCC(PFX ## NUM ## _mc31, depth); \
c->PFX ## _pixels_tab[IDX][ 8] = FUNCC(PFX ## NUM ## _mc02, depth); \
c->PFX ## _pixels_tab[IDX][ 9] = FUNCC(PFX ## NUM ## _mc12, depth); \
c->PFX ## _pixels_tab[IDX][10] = FUNCC(PFX ## NUM ## _mc22, depth); \
c->PFX ## _pixels_tab[IDX][11] = FUNCC(PFX ## NUM ## _mc32, depth); \
c->PFX ## _pixels_tab[IDX][12] = FUNCC(PFX ## NUM ## _mc03, depth); \
c->PFX ## _pixels_tab[IDX][13] = FUNCC(PFX ## NUM ## _mc13, depth); \
c->PFX ## _pixels_tab[IDX][14] = FUNCC(PFX ## NUM ## _mc23, depth); \
c->PFX ## _pixels_tab[IDX][15] = FUNCC(PFX ## NUM ## _mc33, depth)
#define FUNCC(a)
static double c[64]

Referenced by ff_h264qpel_init().

◆ SET_QPEL

#define SET_QPEL ( M,
depth )
Value:
M(put_h264_qpel, 0, 16, depth); \
M(put_h264_qpel, 1, 8, depth); \
M(put_h264_qpel, 2, 4, depth); \
M(avg_h264_qpel, 0, 16, depth); \
M(avg_h264_qpel, 1, 8, depth); \
M(avg_h264_qpel, 2, 4, depth)
#define M(chr)
Definition exr.c:177

Referenced by ff_h264qpel_init().

◆ FPEL

#define FPEL ( PFX,
IDX,
NUM,
depth )
Value:
c->PFX ## _pixels_tab[IDX][0] = FUNCC(PFX ## NUM ## _mc00, depth);

Referenced by ff_h264qpel_init().

Function Documentation

◆ ff_h264qpel_init()

av_cold void ff_h264qpel_init ( H264QpelContext * c,
int bit_depth )