FFmpeg
Macros | Functions | Variables
vp9dsp_init_16bpp_template.c File Reference
#include "libavutil/attributes.h"
#include "libavutil/cpu.h"
#include "libavutil/x86/cpu.h"
#include "libavcodec/vp9dsp.h"
#include "libavcodec/x86/vp9dsp_init.h"

Go to the source code of this file.

Macros

#define decl_lpf_func(dir, wd, bpp, opt)
 
#define decl_lpf_funcs(dir, wd, bpp)
 
#define decl_lpf_funcs_wd(dir)
 
#define lpf_16_wrapper(dir, off, bpp, opt)
 
#define lpf_16_wrappers(bpp, opt)
 
#define lpf_mix2_wrapper(dir, off, wd1, wd2, bpp, opt)
 
#define lpf_mix2_wrappers(wd1, wd2, bpp, opt)
 
#define lpf_mix2_wrappers_set(bpp, opt)
 
#define init_lpf_8_func(idx1, idx2, dir, wd, bpp, opt)   dsp->loop_filter_8[idx1][idx2] = ff_vp9_loop_filter_##dir##_##wd##_##bpp##_##opt
 
#define init_lpf_16_func(idx, dir, bpp, opt)   dsp->loop_filter_16[idx] = loop_filter_##dir##_16_##bpp##_##opt
 
#define init_lpf_mix2_func(idx1, idx2, idx3, dir, wd1, wd2, bpp, opt)   dsp->loop_filter_mix2[idx1][idx2][idx3] = loop_filter_##dir##_##wd1##wd2##_##bpp##_##opt
 
#define init_lpf_funcs(bpp, opt)
 
#define init_itx_func(idxa, idxb, typea, typeb, size, bpp, opt)
 
#define init_itx_func_one(idx, typea, typeb, size, bpp, opt)
 
#define init_itx_funcs(idx, size, bpp, opt)
 

Functions

 decl_mc_funcs (4, sse2, int16_t, 16, BPC)
 
 decl_mc_funcs (8, sse2, int16_t, 16, BPC)
 
 decl_mc_funcs (16, avx2, int16_t, 16, BPC)
 
 mc_rep_funcs (mc_rep_funcs(16, decl_itxfm_funcs(8, mc_rep_funcs(16, mc_rep_funcs(sse2, mc_rep_funcs(int16_t, mc_rep_funcs(16, mc_rep_funcs(BPC)
 

Variables

const int16_t ff_filters_16bpp [3][15][4][16]
 

Macro Definition Documentation

◆ decl_lpf_func

#define decl_lpf_func (   dir,
  wd,
  bpp,
  opt 
)
Value:
void ff_vp9_loop_filter_##dir##_##wd##_##bpp##_##opt(uint8_t *dst, ptrdiff_t stride, \
int E, int I, int H)

◆ decl_lpf_funcs

#define decl_lpf_funcs (   dir,
  wd,
  bpp 
)
Value:
decl_lpf_func(dir, wd, bpp, sse2); \
decl_lpf_func(dir, wd, bpp, ssse3); \
decl_lpf_func(dir, wd, bpp, avx)

◆ decl_lpf_funcs_wd

#define decl_lpf_funcs_wd (   dir)
Value:
decl_lpf_funcs(dir, 4, BPC); \
decl_lpf_funcs(dir, 8, BPC); \
decl_lpf_funcs(dir, 16, BPC)

◆ lpf_16_wrapper

#define lpf_16_wrapper (   dir,
  off,
  bpp,
  opt 
)
Value:
static void loop_filter_##dir##_16_##bpp##_##opt(uint8_t *dst, ptrdiff_t stride, \
int E, int I, int H) \
{ \
ff_vp9_loop_filter_##dir##_16_##bpp##_##opt(dst, stride, E, I, H); \
ff_vp9_loop_filter_##dir##_16_##bpp##_##opt(dst + off, stride, E, I, H); \
}

◆ lpf_16_wrappers

#define lpf_16_wrappers (   bpp,
  opt 
)
Value:
lpf_16_wrapper(h, 8 * stride, bpp, opt) \
lpf_16_wrapper(v, 16, bpp, opt)

◆ lpf_mix2_wrapper

#define lpf_mix2_wrapper (   dir,
  off,
  wd1,
  wd2,
  bpp,
  opt 
)
Value:
static void loop_filter_##dir##_##wd1##wd2##_##bpp##_##opt(uint8_t *dst, ptrdiff_t stride, \
int E, int I, int H) \
{ \
ff_vp9_loop_filter_##dir##_##wd1##_##bpp##_##opt(dst, stride, \
E & 0xff, I & 0xff, H & 0xff); \
ff_vp9_loop_filter_##dir##_##wd2##_##bpp##_##opt(dst + off, stride, \
E >> 8, I >> 8, H >> 8); \
}

◆ lpf_mix2_wrappers

#define lpf_mix2_wrappers (   wd1,
  wd2,
  bpp,
  opt 
)
Value:
lpf_mix2_wrapper(h, 8 * stride, wd1, wd2, bpp, opt) \
lpf_mix2_wrapper(v, 16, wd1, wd2, bpp, opt)

◆ lpf_mix2_wrappers_set

#define lpf_mix2_wrappers_set (   bpp,
  opt 
)
Value:
lpf_mix2_wrappers(4, 4, bpp, opt) \
lpf_mix2_wrappers(4, 8, bpp, opt) \
lpf_mix2_wrappers(8, 4, bpp, opt) \
lpf_mix2_wrappers(8, 8, bpp, opt) \

◆ init_lpf_8_func

#define init_lpf_8_func (   idx1,
  idx2,
  dir,
  wd,
  bpp,
  opt 
)    dsp->loop_filter_8[idx1][idx2] = ff_vp9_loop_filter_##dir##_##wd##_##bpp##_##opt

◆ init_lpf_16_func

#define init_lpf_16_func (   idx,
  dir,
  bpp,
  opt 
)    dsp->loop_filter_16[idx] = loop_filter_##dir##_16_##bpp##_##opt

◆ init_lpf_mix2_func

#define init_lpf_mix2_func (   idx1,
  idx2,
  idx3,
  dir,
  wd1,
  wd2,
  bpp,
  opt 
)    dsp->loop_filter_mix2[idx1][idx2][idx3] = loop_filter_##dir##_##wd1##wd2##_##bpp##_##opt

◆ init_lpf_funcs

#define init_lpf_funcs (   bpp,
  opt 
)
Value:
init_lpf_8_func(0, 0, h, 4, bpp, opt); \
init_lpf_8_func(0, 1, v, 4, bpp, opt); \
init_lpf_8_func(1, 0, h, 8, bpp, opt); \
init_lpf_8_func(1, 1, v, 8, bpp, opt); \
init_lpf_8_func(2, 0, h, 16, bpp, opt); \
init_lpf_8_func(2, 1, v, 16, bpp, opt); \
init_lpf_16_func(0, h, bpp, opt); \
init_lpf_16_func(1, v, bpp, opt); \
init_lpf_mix2_func(0, 0, 0, h, 4, 4, bpp, opt); \
init_lpf_mix2_func(0, 1, 0, h, 4, 8, bpp, opt); \
init_lpf_mix2_func(1, 0, 0, h, 8, 4, bpp, opt); \
init_lpf_mix2_func(1, 1, 0, h, 8, 8, bpp, opt); \
init_lpf_mix2_func(0, 0, 1, v, 4, 4, bpp, opt); \
init_lpf_mix2_func(0, 1, 1, v, 4, 8, bpp, opt); \
init_lpf_mix2_func(1, 0, 1, v, 8, 4, bpp, opt); \
init_lpf_mix2_func(1, 1, 1, v, 8, 8, bpp, opt)

◆ init_itx_func

#define init_itx_func (   idxa,
  idxb,
  typea,
  typeb,
  size,
  bpp,
  opt 
)
Value:
dsp->itxfm_add[idxa][idxb] = \
cat(ff_vp9_##typea##_##typeb##_##size##x##size##_add_, bpp, _##opt);

◆ init_itx_func_one

#define init_itx_func_one (   idx,
  typea,
  typeb,
  size,
  bpp,
  opt 
)
Value:
init_itx_func(idx, DCT_DCT, typea, typeb, size, bpp, opt); \
init_itx_func(idx, ADST_DCT, typea, typeb, size, bpp, opt); \
init_itx_func(idx, DCT_ADST, typea, typeb, size, bpp, opt); \
init_itx_func(idx, ADST_ADST, typea, typeb, size, bpp, opt)

◆ init_itx_funcs

#define init_itx_funcs (   idx,
  size,
  bpp,
  opt 
)
Value:
init_itx_func(idx, DCT_DCT, idct, idct, size, bpp, opt); \
init_itx_func(idx, ADST_DCT, idct, iadst, size, bpp, opt); \
init_itx_func(idx, DCT_ADST, iadst, idct, size, bpp, opt); \
init_itx_func(idx, ADST_ADST, iadst, iadst, size, bpp, opt); \

Function Documentation

◆ decl_mc_funcs() [1/3]

decl_mc_funcs ( ,
sse2  ,
int16_t  ,
16  ,
BPC   
)

◆ decl_mc_funcs() [2/3]

decl_mc_funcs ( ,
sse2  ,
int16_t  ,
16  ,
BPC   
)

◆ decl_mc_funcs() [3/3]

decl_mc_funcs ( 16  ,
avx2  ,
int16_t  ,
16  ,
BPC   
)

◆ mc_rep_funcs()

mc_rep_funcs ( mc_rep_funcs(  16,
decl_itxfm_funcs 8,
mc_rep_funcs(  16,
mc_rep_funcs(  sse2,
mc_rep_funcs(  int16_t,
mc_rep_funcs(  16,
mc_rep_funcs(  BPC 
)

Definition at line 35 of file vp9dsp_init_16bpp_template.c.

Variable Documentation

◆ ff_filters_16bpp

const int16_t ff_filters_16bpp[3][15][4][16]
init_lpf_8_func
#define init_lpf_8_func(idx1, idx2, dir, wd, bpp, opt)
decl_lpf_func
#define decl_lpf_func(dir, wd, bpp, opt)
lpf_16_wrapper
#define lpf_16_wrapper(dir, off, bpp, opt)
idct
static void idct(int16_t block[64])
Definition: 4xm.c:167
lpf_mix2_wrappers
#define lpf_mix2_wrappers(wd1, wd2, bpp, opt)
lpf_mix2_wrapper
#define lpf_mix2_wrapper(dir, off, wd1, wd2, bpp, opt)
E
#define E
Definition: avdct.c:34
DCT_ADST
@ DCT_ADST
Definition: vp9.h:39
decl_lpf_funcs
#define decl_lpf_funcs(dir, wd, bpp)
DCT_DCT
@ DCT_DCT
Definition: vp9.h:38
dst
uint8_t ptrdiff_t const uint8_t ptrdiff_t int intptr_t intptr_t int int16_t * dst
Definition: dsp.h:87
init_itx_func
#define init_itx_func(idxa, idxb, typea, typeb, size, bpp, opt)
size
int size
Definition: twinvq_data.h:10344
H
#define H
Definition: pixlet.c:39
ADST_ADST
@ ADST_ADST
Definition: vp9.h:41
_
#define _
ADST_DCT
@ ADST_DCT
Definition: vp9.h:40
BPC
#define BPC
Definition: vp9dsp_init_10bpp.c:23
h
h
Definition: vp9dsp_template.c:2070
stride
#define stride
Definition: h264pred_template.c:536