FFmpeg
Macros | Functions
vp9dsp_init_loongarch.c File Reference
#include "libavutil/loongarch/cpu.h"
#include "libavutil/attributes.h"
#include "libavcodec/vp9dsp.h"
#include "vp9dsp_loongarch.h"

Go to the source code of this file.

Macros

#define init_subpel1(idx1, idx2, idxh, idxv, sz, dir, type)
 
#define init_subpel2(idx, idxh, idxv, dir, type)
 
#define init_subpel3(idx, type)
 
#define init_fpel(idx1, idx2, sz, type)
 
#define init_copy(idx, sz)
 
#define init_intra_pred1_lsx(tx, sz)
 
#define init_intra_pred2_lsx(tx, sz)
 
#define init_idct(tx, nm)
 
#define init_itxfm(tx, sz)   dsp->itxfm_add[tx][DCT_DCT] = ff_idct_idct_##sz##_add_lsx;
 

Functions

av_cold void ff_vp9dsp_init_loongarch (VP9DSPContext *dsp, int bpp)
 

Macro Definition Documentation

◆ init_subpel1

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

Definition at line 27 of file vp9dsp_init_loongarch.c.

◆ init_subpel2

#define init_subpel2 (   idx,
  idxh,
  idxv,
  dir,
  type 
)
Value:
init_subpel1(0, idx, idxh, idxv, 64, dir, type); \
init_subpel1(1, idx, idxh, idxv, 32, dir, type); \
init_subpel1(2, idx, idxh, idxv, 16, dir, type); \
init_subpel1(3, idx, idxh, idxv, 8, dir, type); \
init_subpel1(4, idx, idxh, idxv, 4, dir, type);

Definition at line 35 of file vp9dsp_init_loongarch.c.

◆ init_subpel3

#define init_subpel3 (   idx,
  type 
)
Value:
init_subpel2(idx, 1, 0, h, type); \
init_subpel2(idx, 0, 1, v, type); \
init_subpel2(idx, 1, 1, hv, type);

Definition at line 42 of file vp9dsp_init_loongarch.c.

◆ init_fpel

#define init_fpel (   idx1,
  idx2,
  sz,
  type 
)
Value:
dsp->mc[idx1][FILTER_8TAP_SMOOTH ][idx2][0][0] = ff_##type##sz##_lsx; \
dsp->mc[idx1][FILTER_8TAP_REGULAR][idx2][0][0] = ff_##type##sz##_lsx; \
dsp->mc[idx1][FILTER_8TAP_SHARP ][idx2][0][0] = ff_##type##sz##_lsx; \
dsp->mc[idx1][FILTER_BILINEAR ][idx2][0][0] = ff_##type##sz##_lsx;

Definition at line 47 of file vp9dsp_init_loongarch.c.

◆ init_copy

#define init_copy (   idx,
  sz 
)
Value:
init_fpel(idx, 0, sz, copy); \
init_fpel(idx, 1, sz, avg);

Definition at line 53 of file vp9dsp_init_loongarch.c.

◆ init_intra_pred1_lsx

#define init_intra_pred1_lsx (   tx,
  sz 
)
Value:
dsp->intra_pred[tx][VERT_PRED] = ff_vert_##sz##_lsx; \
dsp->intra_pred[tx][HOR_PRED] = ff_hor_##sz##_lsx; \
dsp->intra_pred[tx][DC_PRED] = ff_dc_##sz##_lsx; \
dsp->intra_pred[tx][LEFT_DC_PRED] = ff_dc_left_##sz##_lsx; \
dsp->intra_pred[tx][TOP_DC_PRED] = ff_dc_top_##sz##_lsx; \
dsp->intra_pred[tx][DC_128_PRED] = ff_dc_128_##sz##_lsx; \
dsp->intra_pred[tx][DC_127_PRED] = ff_dc_127_##sz##_lsx; \
dsp->intra_pred[tx][DC_129_PRED] = ff_dc_129_##sz##_lsx; \
dsp->intra_pred[tx][TM_VP8_PRED] = ff_tm_##sz##_lsx; \

Definition at line 57 of file vp9dsp_init_loongarch.c.

◆ init_intra_pred2_lsx

#define init_intra_pred2_lsx (   tx,
  sz 
)
Value:
dsp->intra_pred[tx][DC_PRED] = ff_dc_##sz##_lsx; \
dsp->intra_pred[tx][LEFT_DC_PRED] = ff_dc_left_##sz##_lsx; \
dsp->intra_pred[tx][TOP_DC_PRED] = ff_dc_top_##sz##_lsx; \
dsp->intra_pred[tx][TM_VP8_PRED] = ff_tm_##sz##_lsx; \

Definition at line 68 of file vp9dsp_init_loongarch.c.

◆ init_idct

#define init_idct (   tx,
  nm 
)
Value:
dsp->itxfm_add[tx][DCT_DCT] = \
dsp->itxfm_add[tx][ADST_DCT] = \
dsp->itxfm_add[tx][DCT_ADST] = \
dsp->itxfm_add[tx][ADST_ADST] = nm##_add_lsx;

Definition at line 74 of file vp9dsp_init_loongarch.c.

◆ init_itxfm

#define init_itxfm (   tx,
  sz 
)    dsp->itxfm_add[tx][DCT_DCT] = ff_idct_idct_##sz##_add_lsx;

Definition at line 80 of file vp9dsp_init_loongarch.c.

Function Documentation

◆ ff_vp9dsp_init_loongarch()

av_cold void ff_vp9dsp_init_loongarch ( VP9DSPContext dsp,
int  bpp 
)

Definition at line 83 of file vp9dsp_init_loongarch.c.

Referenced by ff_vp9dsp_init().

DC_128_PRED
@ DC_128_PRED
Definition: vp9.h:58
TM_VP8_PRED
@ TM_VP8_PRED
Definition: vp9.h:55
DC_PRED
@ DC_PRED
Definition: vp9.h:48
DC_127_PRED
@ DC_127_PRED
Definition: vp9.h:59
VERT_PRED
@ VERT_PRED
Definition: vp9.h:46
type
it s the only field you need to keep assuming you have a context There is some magic you don t need to care about around this just let it vf type
Definition: writing_filters.txt:86
FILTER_8TAP_SHARP
@ FILTER_8TAP_SHARP
Definition: vp9.h:67
HOR_PRED
@ HOR_PRED
Definition: vp9.h:47
LEFT_DC_PRED
@ LEFT_DC_PRED
Definition: vp9.h:56
DCT_ADST
@ DCT_ADST
Definition: vp9.h:39
FILTER_BILINEAR
@ FILTER_BILINEAR
Definition: vp9.h:68
DCT_DCT
@ DCT_DCT
Definition: vp9.h:38
copy
static void copy(const float *p1, float *p2, const int length)
Definition: vf_vaguedenoiser.c:186
FILTER_8TAP_REGULAR
@ FILTER_8TAP_REGULAR
Definition: vp9.h:66
avg
#define avg(a, b, c, d)
Definition: colorspacedsp_template.c:28
DC_129_PRED
@ DC_129_PRED
Definition: vp9.h:60
ADST_ADST
@ ADST_ADST
Definition: vp9.h:41
FILTER_8TAP_SMOOTH
@ FILTER_8TAP_SMOOTH
Definition: vp9.h:65
init_subpel1
#define init_subpel1(idx1, idx2, idxh, idxv, sz, dir, type)
Definition: vp9dsp_init_loongarch.c:27
TOP_DC_PRED
@ TOP_DC_PRED
Definition: vp9.h:57
ADST_DCT
@ ADST_DCT
Definition: vp9.h:40
h
h
Definition: vp9dsp_template.c:2038
init_fpel
#define init_fpel(idx1, idx2, sz, type)
Definition: vp9dsp_init_loongarch.c:47
init_subpel2
#define init_subpel2(idx, idxh, idxv, dir, type)
Definition: vp9dsp_init_loongarch.c:35