FFmpeg
Loading...
Searching...
No Matches
vp9dsp_init.h File Reference

Go to the source code of this file.

Macros

#define cat(a, bpp, b)
 
#define decl_fpel_func(avg, sz, bpp, opt)
 
#define decl_mc_func(avg, sz, dir, opt, type, f_sz, bpp)
 
#define decl_mc_funcs(sz, opt, type, fsz, bpp)
 
#define decl_ipred_fn(type, sz, bpp, opt)
 
#define decl_ipred_fns(type, bpp, opt4, opt8_16_32)
 
#define decl_itxfm_func(typea, typeb, size, bpp, opt)
 
#define decl_itxfm_funcs(size, bpp, opt)
 
#define mc_rep_func(avg, sz, hsz, hszb, dir, opt, type, f_sz, bpp)
 
#define mc_rep_funcs(sz, hsz, hszb, opt, type, fsz, bpp)
 
#define filter_8tap_1d_fn(op, sz, f, f_opt, fname, dir, dvar, bpp, opt)
 
#define filters_8tap_1d_fn(op, sz, dir, dvar, bpp, opt, f_opt)
 
#define filters_8tap_1d_fn2(op, sz, bpp, opt, f_opt)
 
#define filters_8tap_1d_fn3(op, bpp, opt8, f_opt)
 
#define filters_8tap_1d_fn4(op, bpp, opt, f_opt)
 
#define filter_8tap_2d_fn(op, sz, f, f_opt, fname, align, bpp, bytes, opt)
 
#define filters_8tap_2d_fn(op, sz, align, bpp, bytes, opt, f_opt)
 
#define filters_8tap_2d_fn2(op, align, bpp, bytes, opt8, f_opt)
 
#define filters_8tap_2d_fn3(op, align, bpp, bytes, opt, f_opt)
 
#define init_fpel_func(idx1, idx2, sz, type, bpp, opt)
 
#define init_subpel1(idx1, idx2, idxh, idxv, sz, dir, type, bpp, opt)
 
#define init_subpel2(idx1, idx2, sz, type, bpp, opt)
 
#define init_subpel3_32_64(idx, type, bpp, opt)
 
#define init_subpel3_8to64(idx, type, bpp, opt)
 
#define init_subpel3(idx, type, bpp, opt)
 
#define decl_subpel_asm_fn(type)
 
#define decl_subpel_asm_dir(type)
 
#define decl_subpel_asm(sz, bpp, opt)
 
#define init_subpel_asm_dir(idx1, idx2, idx3, type)
 
#define init_subpel_asm(idx, sz, bpp, opt)
 
#define init_ipred_func(type, enum, sz, bpp, opt)
 
#define init_8_16_32_ipred_funcs(type, enum, bpp, opt)
 
#define init_ipred_funcs(type, enum, bpp, opt)
 

Functions

void ff_vp9dsp_init_10bpp_x86 (VP9DSPContext *dsp, int bitexact)
 
void ff_vp9dsp_init_12bpp_x86 (VP9DSPContext *dsp, int bitexact)
 
void ff_vp9dsp_init_16bpp_x86 (VP9DSPContext *dsp)
 

Macro Definition Documentation

◆ cat

◆ decl_fpel_func

#define decl_fpel_func ( avg,
sz,
bpp,
opt )
Value:
void ff_vp9_##avg##sz##bpp##_##opt(uint8_t *dst, ptrdiff_t dst_stride, \
const uint8_t *src, ptrdiff_t src_stride, \
int h, int mx, int my)
uint8_t ptrdiff_t const uint8_t ptrdiff_t int intptr_t intptr_t my
Definition dsp.h:57
uint8_t ptrdiff_t const uint8_t ptrdiff_t int intptr_t mx
Definition dsp.h:57
uint8_t ptrdiff_t const uint8_t ptrdiff_t int intptr_t intptr_t int int16_t * dst
Definition dsp.h:87
#define _
#define avg(a, b, c, d)
#define src
Definition vp8dsp.c:248

Definition at line 34 of file vp9dsp_init.h.

◆ decl_mc_func

#define decl_mc_func ( avg,
sz,
dir,
opt,
type,
f_sz,
bpp )
Value:
void ff_vp9_##avg##_8tap_1d_##dir##_##sz##_##bpp##_##opt(uint8_t *dst, ptrdiff_t dst_stride, \
const uint8_t *src, ptrdiff_t src_stride, \
int h, const type (*filter)[f_sz])
cl_device_type type
void(* filter)(uint8_t *src, ptrdiff_t stride, int qscale)
Definition h263dsp.c:29

Definition at line 39 of file vp9dsp_init.h.

◆ decl_mc_funcs

#define decl_mc_funcs ( sz,
opt,
type,
fsz,
bpp )
Value:
decl_mc_func(put, sz, h, opt, type, fsz, bpp); \
decl_mc_func(avg, sz, h, opt, type, fsz, bpp); \
decl_mc_func(put, sz, v, opt, type, fsz, bpp); \
decl_mc_func(avg, sz, v, opt, type, fsz, bpp)
#define decl_mc_func(op, filter, dir, sz, bpp)

Definition at line 44 of file vp9dsp_init.h.

◆ decl_ipred_fn

#define decl_ipred_fn ( type,
sz,
bpp,
opt )
Value:
void ff_vp9_ipred_##type##_##sz##x##sz##_##bpp##_##opt(uint8_t *dst, \
ptrdiff_t stride, \
const uint8_t *l, \
const uint8_t *a)
#define stride

Definition at line 50 of file vp9dsp_init.h.

◆ decl_ipred_fns

#define decl_ipred_fns ( type,
bpp,
opt4,
opt8_16_32 )
Value:
decl_ipred_fn(type, 4, bpp, opt4); \
decl_ipred_fn(type, 8, bpp, opt8_16_32); \
decl_ipred_fn(type, 16, bpp, opt8_16_32); \
decl_ipred_fn(type, 32, bpp, opt8_16_32)
#define decl_ipred_fn(type, sz, bpp, opt)
Definition vp9dsp_init.h:50

Definition at line 56 of file vp9dsp_init.h.

◆ decl_itxfm_func

#define decl_itxfm_func ( typea,
typeb,
size,
bpp,
opt )
Value:
void cat(ff_vp9_##typea##_##typeb##_##size##x##size##_add_, bpp, _##opt)(uint8_t *dst, \
ptrdiff_t stride, \
int16_t *block, \
int eob)
static int16_t block[64]
Definition dct.c:125
int size
#define cat(a, bpp, b)
Definition vp9dsp_init.h:32

Definition at line 62 of file vp9dsp_init.h.

◆ decl_itxfm_funcs

#define decl_itxfm_funcs ( size,
bpp,
opt )
Value:
decl_itxfm_func(idct, idct, size, bpp, opt); \
decl_itxfm_func(iadst, idct, size, bpp, opt); \
decl_itxfm_func(idct, iadst, size, bpp, opt); \
decl_itxfm_func(iadst, iadst, size, bpp, opt)
static void idct(int16_t block[64])
Definition 4xm.c:167
#define decl_itxfm_func(typea, typeb, size, bpp, opt)
Definition vp9dsp_init.h:62

Definition at line 68 of file vp9dsp_init.h.

◆ mc_rep_func

#define mc_rep_func ( avg,
sz,
hsz,
hszb,
dir,
opt,
type,
f_sz,
bpp )
Value:
static av_always_inline void \
ff_vp9_##avg##_8tap_1d_##dir##_##sz##_##bpp##_##opt(uint8_t *dst, ptrdiff_t dst_stride, \
const uint8_t *src, ptrdiff_t src_stride, \
int h, const type (*filter)[f_sz]) \
{ \
ff_vp9_##avg##_8tap_1d_##dir##_##hsz##_##bpp##_##opt(dst, dst_stride, src, \
src_stride, h, filter); \
ff_vp9_##avg##_8tap_1d_##dir##_##hsz##_##bpp##_##opt(dst + hszb, dst_stride, src + hszb, \
src_stride, h, filter); \
}
#define av_always_inline
Definition attributes.h:72

Definition at line 74 of file vp9dsp_init.h.

◆ mc_rep_funcs

#define mc_rep_funcs ( sz,
hsz,
hszb,
opt,
type,
fsz,
bpp )
Value:
mc_rep_func(put, sz, hsz, hszb, h, opt, type, fsz, bpp) \
mc_rep_func(avg, sz, hsz, hszb, h, opt, type, fsz, bpp) \
mc_rep_func(put, sz, hsz, hszb, v, opt, type, fsz, bpp) \
mc_rep_func(avg, sz, hsz, hszb, v, opt, type, fsz, bpp)
#define mc_rep_func(name, bitd, step, W, opt)
Definition h2656dsp.c:28

Definition at line 86 of file vp9dsp_init.h.

◆ filter_8tap_1d_fn

#define filter_8tap_1d_fn ( op,
sz,
f,
f_opt,
fname,
dir,
dvar,
bpp,
opt )
Value:
static void op##_8tap_##fname##_##sz##dir##_##bpp##_##opt(uint8_t *dst, ptrdiff_t dst_stride, \
const uint8_t *src, ptrdiff_t src_stride, \
int h, int mx, int my) \
{ \
ff_vp9_##op##_8tap_1d_##dir##_##sz##_##bpp##_##opt(dst, dst_stride, src, src_stride, \
h, ff_filters_##f_opt[f][dvar - 1]); \
}
#define f(width, name)
Definition cbs_vp8.c:236
static int op(uint8_t **dst, const uint8_t *dst_end, GetByteContext *gb, int pixel, int count, int *x, int width, int linesize)
Perform decode operation.
Definition anm.c:76

Definition at line 92 of file vp9dsp_init.h.

◆ filters_8tap_1d_fn

#define filters_8tap_1d_fn ( op,
sz,
dir,
dvar,
bpp,
opt,
f_opt )
Value:
filter_8tap_1d_fn(op, sz, FILTER_8TAP_REGULAR, f_opt, regular, dir, dvar, bpp, opt) \
filter_8tap_1d_fn(op, sz, FILTER_8TAP_SHARP, f_opt, sharp, dir, dvar, bpp, opt) \
filter_8tap_1d_fn(op, sz, FILTER_8TAP_SMOOTH, f_opt, smooth, dir, dvar, bpp, opt)
static float smooth(DeshakeOpenCLContext *deshake_ctx, float *gauss_kernel, int length, float max_val, AVFifo *values)
@ FILTER_8TAP_REGULAR
Definition vp9.h:66
@ FILTER_8TAP_SHARP
Definition vp9.h:67
@ FILTER_8TAP_SMOOTH
Definition vp9.h:65
#define filter_8tap_1d_fn(opn, opa, dir, ds)

Definition at line 101 of file vp9dsp_init.h.

◆ filters_8tap_1d_fn2

#define filters_8tap_1d_fn2 ( op,
sz,
bpp,
opt,
f_opt )
Value:
filters_8tap_1d_fn(op, sz, h, mx, bpp, opt, f_opt) \
filters_8tap_1d_fn(op, sz, v, my, bpp, opt, f_opt)
#define filters_8tap_1d_fn(op, sz, dir, dvar, bpp, opt, f_opt)

Definition at line 106 of file vp9dsp_init.h.

◆ filters_8tap_1d_fn3

#define filters_8tap_1d_fn3 ( op,
bpp,
opt8,
f_opt )
Value:
filters_8tap_1d_fn2(op, 64, bpp, opt8, f_opt) \
filters_8tap_1d_fn2(op, 32, bpp, opt8, f_opt) \
filters_8tap_1d_fn2(op, 16, bpp, opt8, f_opt) \
filters_8tap_1d_fn2(op, 8, bpp, opt8, f_opt) \
#define filters_8tap_1d_fn2(op, sz, bpp, opt, f_opt)

Definition at line 110 of file vp9dsp_init.h.

◆ filters_8tap_1d_fn4

#define filters_8tap_1d_fn4 ( op,
bpp,
opt,
f_opt )
Value:
filters_8tap_1d_fn3(op, bpp, opt, f_opt) \
filters_8tap_1d_fn2(op, 4, bpp, opt, f_opt) \
#define filters_8tap_1d_fn3(op, bpp, opt8, f_opt)

Definition at line 116 of file vp9dsp_init.h.

◆ filter_8tap_2d_fn

#define filter_8tap_2d_fn ( op,
sz,
f,
f_opt,
fname,
align,
bpp,
bytes,
opt )
Value:
static void op##_8tap_##fname##_##sz##hv_##bpp##_##opt(uint8_t *dst, ptrdiff_t dst_stride, \
const uint8_t *src, ptrdiff_t src_stride, \
int h, int mx, int my) \
{ \
LOCAL_ALIGNED_##align(uint8_t, temp, [71 * 64 * bytes]); \
ff_vp9_put_8tap_1d_h_##sz##_##bpp##_##opt(temp, 64 * bytes, src - 3 * src_stride, \
src_stride, h + 7, \
ff_filters_##f_opt[f][mx - 1]); \
ff_vp9_##op##_8tap_1d_v_##sz##_##bpp##_##opt(dst, dst_stride, temp + 3 * bytes * 64, \
64 * bytes, h, \
ff_filters_##f_opt[f][my - 1]); \
}
static const uint8_t *BS_FUNC align(BSCTX *bc)
Skip bits to a byte boundary.
else temp
Definition vf_mcdeint.c:275

Definition at line 120 of file vp9dsp_init.h.

◆ filters_8tap_2d_fn

#define filters_8tap_2d_fn ( op,
sz,
align,
bpp,
bytes,
opt,
f_opt )
Value:
filter_8tap_2d_fn(op, sz, FILTER_8TAP_REGULAR, f_opt, regular, align, bpp, bytes, opt) \
filter_8tap_2d_fn(op, sz, FILTER_8TAP_SHARP, f_opt, sharp, align, bpp, bytes, opt) \
filter_8tap_2d_fn(op, sz, FILTER_8TAP_SMOOTH, f_opt, smooth, align, bpp, bytes, opt)
#define filter_8tap_2d_fn(opn, opa)

Definition at line 134 of file vp9dsp_init.h.

◆ filters_8tap_2d_fn2

#define filters_8tap_2d_fn2 ( op,
align,
bpp,
bytes,
opt8,
f_opt )
Value:
filters_8tap_2d_fn(op, 64, align, bpp, bytes, opt8, f_opt) \
filters_8tap_2d_fn(op, 32, align, bpp, bytes, opt8, f_opt) \
filters_8tap_2d_fn(op, 16, align, bpp, bytes, opt8, f_opt) \
filters_8tap_2d_fn(op, 8, align, bpp, bytes, opt8, f_opt) \
#define filters_8tap_2d_fn(op, sz, align, bpp, bytes, opt, f_opt)

Definition at line 139 of file vp9dsp_init.h.

◆ filters_8tap_2d_fn3

#define filters_8tap_2d_fn3 ( op,
align,
bpp,
bytes,
opt,
f_opt )
Value:
filters_8tap_2d_fn2(op, align, bpp, bytes, opt, f_opt) \
filters_8tap_2d_fn(op, 4, align, bpp, bytes, opt, f_opt)
#define filters_8tap_2d_fn2(op, align, bpp, bytes, opt8, f_opt)

Definition at line 145 of file vp9dsp_init.h.

◆ init_fpel_func

#define init_fpel_func ( idx1,
idx2,
sz,
type,
bpp,
opt )
Value:
dsp->mc[idx1][FILTER_8TAP_SMOOTH ][idx2][0][0] = \
dsp->mc[idx1][FILTER_8TAP_REGULAR][idx2][0][0] = \
dsp->mc[idx1][FILTER_8TAP_SHARP ][idx2][0][0] = \
dsp->mc[idx1][FILTER_BILINEAR ][idx2][0][0] = ff_vp9_##type##sz##bpp##_##opt
@ FILTER_BILINEAR
Definition vp9.h:68

Definition at line 149 of file vp9dsp_init.h.

Referenced by ff_vp9dsp_init_16bpp_x86().

◆ init_subpel1

#define init_subpel1 ( idx1,
idx2,
idxh,
idxv,
sz,
dir,
type,
bpp,
opt )
Value:
dsp->mc[idx1][FILTER_8TAP_SMOOTH ][idx2][idxh][idxv] = \
type##_8tap_smooth_##sz##dir##_##bpp##_##opt; \
dsp->mc[idx1][FILTER_8TAP_REGULAR][idx2][idxh][idxv] = \
type##_8tap_regular_##sz##dir##_##bpp##_##opt; \
dsp->mc[idx1][FILTER_8TAP_SHARP ][idx2][idxh][idxv] = \
type##_8tap_sharp_##sz##dir##_##bpp##_##opt

Definition at line 155 of file vp9dsp_init.h.

◆ init_subpel2

#define init_subpel2 ( idx1,
idx2,
sz,
type,
bpp,
opt )
Value:
init_subpel1(idx1, idx2, 1, 1, sz, hv, type, bpp, opt); \
init_subpel1(idx1, idx2, 0, 1, sz, v, type, bpp, opt); \
init_subpel1(idx1, idx2, 1, 0, sz, h, type, bpp, opt)
#define init_subpel1(idx1, idx2, idxh, idxv, sz, dir, type)

Definition at line 163 of file vp9dsp_init.h.

◆ init_subpel3_32_64

#define init_subpel3_32_64 ( idx,
type,
bpp,
opt )
Value:
init_subpel2(0, idx, 64, type, bpp, opt); \
init_subpel2(1, idx, 32, type, bpp, opt)
#define init_subpel2(idx, idxh, idxv, dir, type)

Definition at line 168 of file vp9dsp_init.h.

◆ init_subpel3_8to64

#define init_subpel3_8to64 ( idx,
type,
bpp,
opt )
Value:
init_subpel3_32_64(idx, type, bpp, opt); \
init_subpel2(2, idx, 16, type, bpp, opt); \
init_subpel2(3, idx, 8, type, bpp, opt)
#define init_subpel3_32_64(idx, type, bpp, opt)

Definition at line 172 of file vp9dsp_init.h.

◆ init_subpel3

#define init_subpel3 ( idx,
type,
bpp,
opt )
Value:
init_subpel3_8to64(idx, type, bpp, opt); \
init_subpel2(4, idx, 4, type, bpp, opt)
#define init_subpel3_8to64(idx, type, bpp, opt)

Definition at line 177 of file vp9dsp_init.h.

◆ decl_subpel_asm_fn

#define decl_subpel_asm_fn ( type)
Value:
void ff_vp9_put_8tap_##type(uint8_t *dst, ptrdiff_t dst_stride, \
const uint8_t *src, ptrdiff_t src_stride, \
int h, int mx, int my); \
void ff_vp9_avg_8tap_##type(uint8_t *dst, ptrdiff_t dst_stride, \
const uint8_t *src, ptrdiff_t src_stride, \
int h, int mx, int my)

Definition at line 181 of file vp9dsp_init.h.

◆ decl_subpel_asm_dir

#define decl_subpel_asm_dir ( type)
Value:
decl_subpel_asm_fn(regular_##type); \
decl_subpel_asm_fn(smooth_##type); \
decl_subpel_asm_fn(sharp_##type)
#define decl_subpel_asm_fn(type)

Definition at line 189 of file vp9dsp_init.h.

◆ decl_subpel_asm

#define decl_subpel_asm ( sz,
bpp,
opt )
Value:
decl_subpel_asm_dir(sz##h_##bpp##_##opt); \
decl_subpel_asm_dir(sz##v_##bpp##_##opt); \
decl_subpel_asm_dir(sz##hv_##bpp##_##opt)
#define decl_subpel_asm_dir(type)

Definition at line 194 of file vp9dsp_init.h.

◆ init_subpel_asm_dir

#define init_subpel_asm_dir ( idx1,
idx2,
idx3,
type )
Value:
dsp->mc[idx1][FILTER_8TAP_REGULAR][0][idx2][idx3] = ff_vp9_put_8tap_regular_##type; \
dsp->mc[idx1][FILTER_8TAP_SHARP ][0][idx2][idx3] = ff_vp9_put_8tap_sharp_##type; \
dsp->mc[idx1][FILTER_8TAP_SMOOTH ][0][idx2][idx3] = ff_vp9_put_8tap_smooth_##type; \
dsp->mc[idx1][FILTER_8TAP_REGULAR][1][idx2][idx3] = ff_vp9_avg_8tap_regular_##type; \
dsp->mc[idx1][FILTER_8TAP_SHARP ][1][idx2][idx3] = ff_vp9_avg_8tap_sharp_##type; \
dsp->mc[idx1][FILTER_8TAP_SMOOTH ][1][idx2][idx3] = ff_vp9_avg_8tap_smooth_##type

Definition at line 199 of file vp9dsp_init.h.

◆ init_subpel_asm

#define init_subpel_asm ( idx,
sz,
bpp,
opt )
Value:
init_subpel_asm_dir(idx, 1, 0, sz##h_##bpp##_##opt); \
init_subpel_asm_dir(idx, 0, 1, sz##v_##bpp##_##opt); \
init_subpel_asm_dir(idx, 1, 1, sz##hv_##bpp##_##opt)
#define init_subpel_asm_dir(idx1, idx2, idx3, type)

Definition at line 207 of file vp9dsp_init.h.

◆ init_ipred_func

#define init_ipred_func ( type,
enum,
sz,
bpp,
opt )
Value:
dsp->intra_pred[TX_##sz##X##sz][enum##_PRED] = \
cat(ff_vp9_ipred_##type##_##sz##x##sz##_, bpp, _##opt)
#define X
Definition f_ebur128.c:157

Definition at line 212 of file vp9dsp_init.h.

Referenced by ff_vp9dsp_init_16bpp_x86().

◆ init_8_16_32_ipred_funcs

#define init_8_16_32_ipred_funcs ( type,
enum,
bpp,
opt )
Value:
init_ipred_func(type, enum, 8, bpp, opt); \
init_ipred_func(type, enum, 16, bpp, opt); \
init_ipred_func(type, enum, 32, bpp, opt)
#define init_ipred_func(type, enum, sz, bpp, opt)

Definition at line 216 of file vp9dsp_init.h.

Referenced by ff_vp9dsp_init_16bpp_x86().

◆ init_ipred_funcs

#define init_ipred_funcs ( type,
enum,
bpp,
opt )
Value:
init_ipred_func(type, enum, 4, bpp, opt); \
init_8_16_32_ipred_funcs(type, enum, bpp, opt)

Definition at line 221 of file vp9dsp_init.h.

Referenced by ff_vp9dsp_init_16bpp_x86().

Function Documentation

◆ ff_vp9dsp_init_10bpp_x86()

void ff_vp9dsp_init_10bpp_x86 ( VP9DSPContext * dsp,
int bitexact )

◆ ff_vp9dsp_init_12bpp_x86()

void ff_vp9dsp_init_12bpp_x86 ( VP9DSPContext * dsp,
int bitexact )

◆ ff_vp9dsp_init_16bpp_x86()

void ff_vp9dsp_init_16bpp_x86 ( VP9DSPContext * dsp)

Definition at line 70 of file vp9dsp_init_16bpp.c.