FFmpeg
Loading...
Searching...
No Matches
vp9dsp_init_loongarch.c File Reference

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)
 

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;
cl_device_type type
@ FILTER_8TAP_REGULAR
Definition vp9.h:66
@ FILTER_8TAP_SHARP
Definition vp9.h:67
@ FILTER_8TAP_SMOOTH
Definition vp9.h:65

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);
#define init_subpel1(idx1, idx2, idxh, idxv, sz, 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);
#define init_subpel2(idx, idxh, idxv, dir, type)

Definition at line 42 of file vp9dsp_init_loongarch.c.

Referenced by ff_vp9dsp_init_loongarch().

◆ 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;
@ FILTER_BILINEAR
Definition vp9.h:68

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);
#define avg(a, b, c, d)
static void copy(const float *p1, float *p2, const int length)
#define init_fpel(idx1, idx2, sz, type, suffix)

Definition at line 53 of file vp9dsp_init_loongarch.c.

Referenced by ff_vp9dsp_init_loongarch().

◆ 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; \
#define TOP_DC_PRED
Definition h264pred.h:50
#define DC_129_PRED
Definition h264pred.h:66
#define DC_127_PRED
Definition h264pred.h:65
#define VERT_PRED
Prediction types.
Definition h264pred.h:38
#define DC_128_PRED
Definition h264pred.h:51
#define LEFT_DC_PRED
Definition h264pred.h:49
#define TM_VP8_PRED
"True Motion", used instead of plane
Definition h264pred.h:59
#define HOR_PRED
Definition h264pred.h:39
#define DC_PRED
Definition h264pred.h:40

Definition at line 57 of file vp9dsp_init_loongarch.c.

Referenced by ff_vp9dsp_init_loongarch().

◆ 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.

Referenced by ff_vp9dsp_init_loongarch().

◆ 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;
@ DCT_ADST
Definition vp9.h:39
@ DCT_DCT
Definition vp9.h:38
@ ADST_DCT
Definition vp9.h:40
@ ADST_ADST
Definition vp9.h:41

Definition at line 74 of file vp9dsp_init_loongarch.c.

Referenced by ff_vp9dsp_init_loongarch().

◆ init_itxfm

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

Definition at line 80 of file vp9dsp_init_loongarch.c.

Referenced by ff_vp9dsp_init_loongarch().

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().