FFmpeg
vp8dsp_loongarch.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2021 Loongson Technology Corporation Limited
3  * Contributed by Hecai Yuan <yuanhecai@loongson.cn>
4  *
5  * This file is part of FFmpeg.
6  *
7  * FFmpeg is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public
9  * License as published by the Free Software Foundation; either
10  * version 2.1 of the License, or (at your option) any later version.
11  *
12  * FFmpeg is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with FFmpeg; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20  */
21 
22 #ifndef AVCODEC_LOONGARCH_VP8DSP_LOONGARCH_H
23 #define AVCODEC_LOONGARCH_VP8DSP_LOONGARCH_H
24 
25 #include "libavcodec/vp8dsp.h"
26 
27 void ff_put_vp8_pixels8_lsx(uint8_t *dst, ptrdiff_t dst_stride,
28  uint8_t *src, ptrdiff_t src_stride,
29  int h, int x, int y);
30 void ff_put_vp8_pixels16_lsx(uint8_t *dst, ptrdiff_t dst_stride,
31  uint8_t *src, ptrdiff_t src_stride,
32  int h, int x, int y);
33 
34 void ff_put_vp8_epel16_h6_lsx(uint8_t *dst, ptrdiff_t dst_stride,
35  uint8_t *src, ptrdiff_t src_stride,
36  int h, int mx, int my);
37 void ff_put_vp8_epel16_v4_lsx(uint8_t *dst, ptrdiff_t dst_stride,
38  uint8_t *src, ptrdiff_t src_stride,
39  int h, int mx, int my);
40 void ff_put_vp8_epel16_v6_lsx(uint8_t *dst, ptrdiff_t dst_stride,
41  uint8_t *src, ptrdiff_t src_stride,
42  int h, int mx, int my);
43 void ff_put_vp8_epel16_h6v4_lsx(uint8_t *dst, ptrdiff_t dst_stride,
44  uint8_t *src, ptrdiff_t src_stride,
45  int h, int mx, int my);
46 void ff_put_vp8_epel16_h4v6_lsx(uint8_t *dst, ptrdiff_t dst_stride,
47  uint8_t *src, ptrdiff_t src_stride,
48  int h, int mx, int my);
49 void ff_put_vp8_epel16_h6v6_lsx(uint8_t *dst, ptrdiff_t dst_stride,
50  uint8_t *src, ptrdiff_t src_stride,
51  int h, int mx, int my);
52 
53 void ff_put_vp8_epel8_v4_lsx(uint8_t *dst, ptrdiff_t dst_stride,
54  uint8_t *src, ptrdiff_t src_stride,
55  int h, int mx, int my);
56 void ff_put_vp8_epel8_v6_lsx(uint8_t *dst, ptrdiff_t dst_stride,
57  uint8_t *src, ptrdiff_t src_stride,
58  int h, int mx, int my);
59 void ff_put_vp8_epel8_h6v4_lsx(uint8_t *dst, ptrdiff_t dst_stride,
60  uint8_t *src, ptrdiff_t src_stride,
61  int h, int mx, int my);
62 void ff_put_vp8_epel8_h4v6_lsx(uint8_t *dst, ptrdiff_t dst_stride,
63  uint8_t *src, ptrdiff_t src_stride,
64  int h, int mx, int my);
65 void ff_put_vp8_epel8_h6v6_lsx(uint8_t *dst, ptrdiff_t dst_stride,
66  uint8_t *src, ptrdiff_t src_stride,
67  int h, int mx, int my);
68 
69 void ff_put_vp8_epel8_h6_lsx(uint8_t *dst, ptrdiff_t dst_stride,
70  uint8_t *src, ptrdiff_t src_stride,
71  int h, int mx, int my);
72 
73 /* loop filter */
74 void ff_vp8_v_loop_filter16_inner_lsx(uint8_t *dst, ptrdiff_t stride,
75  int32_t e, int32_t i, int32_t h);
76 void ff_vp8_h_loop_filter16_inner_lsx(uint8_t *src, ptrdiff_t stride,
77  int32_t e, int32_t i, int32_t h);
78 
79 void ff_vp8_v_loop_filter16_lsx(uint8_t *dst, ptrdiff_t stride,
80  int flim_e, int flim_i, int hev_thresh);
81 void ff_vp8_h_loop_filter16_lsx(uint8_t *dst, ptrdiff_t stride,
82  int flim_e, int flim_i, int hev_thresh);
83 void ff_vp8_h_loop_filter8uv_lsx(uint8_t *dst_u, uint8_t *dst_v,
84  ptrdiff_t stride,
85  int flim_e, int flim_i, int hev_thresh);
86 void ff_vp8_v_loop_filter8uv_lsx(uint8_t *dst_u, uint8_t *dst_v,
87  ptrdiff_t stride,
88  int flim_e, int flim_i, int hev_thresh);
89 
90 #endif // #ifndef AVCODEC_LOONGARCH_VP8DSP_LOONGARCH_H
stride
int stride
Definition: mace.c:144
ff_put_vp8_epel8_v4_lsx
void ff_put_vp8_epel8_v4_lsx(uint8_t *dst, ptrdiff_t dst_stride, uint8_t *src, ptrdiff_t src_stride, int h, int mx, int my)
Definition: vp8_mc_lsx.c:506
ff_put_vp8_epel8_v6_lsx
void ff_put_vp8_epel8_v6_lsx(uint8_t *dst, ptrdiff_t dst_stride, uint8_t *src, ptrdiff_t src_stride, int h, int mx, int my)
Definition: vp8_mc_lsx.c:243
ff_put_vp8_epel16_v4_lsx
void ff_put_vp8_epel16_v4_lsx(uint8_t *dst, ptrdiff_t dst_stride, uint8_t *src, ptrdiff_t src_stride, int h, int mx, int my)
Definition: vp8_mc_lsx.c:563
ff_vp8_h_loop_filter16_lsx
void ff_vp8_h_loop_filter16_lsx(uint8_t *dst, ptrdiff_t stride, int flim_e, int flim_i, int hev_thresh)
Definition: vp8_lpf_lsx.c:329
ff_vp8_v_loop_filter8uv_lsx
void ff_vp8_v_loop_filter8uv_lsx(uint8_t *dst_u, uint8_t *dst_v, ptrdiff_t stride, int flim_e, int flim_i, int hev_thresh)
Definition: vp8_lpf_lsx.c:278
ff_vp8_v_loop_filter16_inner_lsx
void ff_vp8_v_loop_filter16_inner_lsx(uint8_t *dst, ptrdiff_t stride, int32_t e, int32_t i, int32_t h)
Definition: vp8_lpf_lsx.c:505
vp8dsp.h
ff_put_vp8_epel8_h6v4_lsx
void ff_put_vp8_epel8_h6v4_lsx(uint8_t *dst, ptrdiff_t dst_stride, uint8_t *src, ptrdiff_t src_stride, int h, int mx, int my)
Definition: vp8_mc_lsx.c:633
ff_put_vp8_epel16_h6v4_lsx
void ff_put_vp8_epel16_h6v4_lsx(uint8_t *dst, ptrdiff_t dst_stride, uint8_t *src, ptrdiff_t src_stride, int h, int mx, int my)
Definition: vp8_mc_lsx.c:716
src
#define src
Definition: vp8dsp.c:255
ff_vp8_h_loop_filter16_inner_lsx
void ff_vp8_h_loop_filter16_inner_lsx(uint8_t *src, ptrdiff_t stride, int32_t e, int32_t i, int32_t h)
Definition: vp8_lpf_lsx.c:537
ff_put_vp8_epel16_v6_lsx
void ff_put_vp8_epel16_v6_lsx(uint8_t *dst, ptrdiff_t dst_stride, uint8_t *src, ptrdiff_t src_stride, int h, int mx, int my)
Definition: vp8_mc_lsx.c:310
ff_vp8_v_loop_filter16_lsx
void ff_vp8_v_loop_filter16_lsx(uint8_t *dst, ptrdiff_t stride, int flim_e, int flim_i, int hev_thresh)
Definition: vp8_lpf_lsx.c:246
ff_put_vp8_epel16_h6v6_lsx
void ff_put_vp8_epel16_h6v6_lsx(uint8_t *dst, ptrdiff_t dst_stride, uint8_t *src, ptrdiff_t src_stride, int h, int mx, int my)
Definition: vp8_mc_lsx.c:493
i
#define i(width, name, range_min, range_max)
Definition: cbs_h2645.c:271
ff_put_vp8_epel8_h6_lsx
void ff_put_vp8_epel8_h6_lsx(uint8_t *dst, ptrdiff_t dst_stride, uint8_t *src, ptrdiff_t src_stride, int h, int mx, int my)
Definition: vp8_mc_lsx.c:124
ff_put_vp8_epel16_h4v6_lsx
void ff_put_vp8_epel16_h4v6_lsx(uint8_t *dst, ptrdiff_t dst_stride, uint8_t *src, ptrdiff_t src_stride, int h, int mx, int my)
Definition: vp8_mc_lsx.c:820
ff_put_vp8_pixels16_lsx
void ff_put_vp8_pixels16_lsx(uint8_t *dst, ptrdiff_t dst_stride, uint8_t *src, ptrdiff_t src_stride, int h, int x, int y)
Definition: vp8_mc_lsx.c:891
ff_put_vp8_epel8_h4v6_lsx
void ff_put_vp8_epel8_h4v6_lsx(uint8_t *dst, ptrdiff_t dst_stride, uint8_t *src, ptrdiff_t src_stride, int h, int mx, int my)
Definition: vp8_mc_lsx.c:730
ff_put_vp8_epel16_h6_lsx
void ff_put_vp8_epel16_h6_lsx(uint8_t *dst, ptrdiff_t dst_stride, uint8_t *src, ptrdiff_t src_stride, int h, int mx, int my)
Definition: vp8_mc_lsx.c:189
ff_put_vp8_epel8_h6v6_lsx
void ff_put_vp8_epel8_h6v6_lsx(uint8_t *dst, ptrdiff_t dst_stride, uint8_t *src, ptrdiff_t src_stride, int h, int mx, int my)
Definition: vp8_mc_lsx.c:391
ff_vp8_h_loop_filter8uv_lsx
void ff_vp8_h_loop_filter8uv_lsx(uint8_t *dst_u, uint8_t *dst_v, ptrdiff_t stride, int flim_e, int flim_i, int hev_thresh)
Definition: vp8_lpf_lsx.c:415
int32_t
int32_t
Definition: audioconvert.c:56
h
h
Definition: vp9dsp_template.c:2038
ff_put_vp8_pixels8_lsx
void ff_put_vp8_pixels8_lsx(uint8_t *dst, ptrdiff_t dst_stride, uint8_t *src, ptrdiff_t src_stride, int h, int x, int y)
Definition: vp8_mc_lsx.c:834