FFmpeg
swscale_loongarch.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2022 Loongson Technology Corporation Limited
3  * Contributed by Hao Chen(chenhao@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 SWSCALE_LOONGARCH_SWSCALE_LOONGARCH_H
23 #define SWSCALE_LOONGARCH_SWSCALE_LOONGARCH_H
24 
25 #include "libswscale/swscale.h"
27 #include "config.h"
28 
29 void ff_hscale_8_to_15_lsx(SwsInternal *c, int16_t *dst, int dstW,
30  const uint8_t *src, const int16_t *filter,
31  const int32_t *filterPos, int filterSize);
32 
33 void ff_hscale_8_to_19_lsx(SwsInternal *c, int16_t *_dst, int dstW,
34  const uint8_t *src, const int16_t *filter,
35  const int32_t *filterPos, int filterSize);
36 
37 void ff_hscale_16_to_15_lsx(SwsInternal *c, int16_t *_dst, int dstW,
38  const uint8_t *_src, const int16_t *filter,
39  const int32_t *filterPos, int filterSize);
40 
41 void ff_hscale_16_to_15_sub_lsx(SwsInternal *c, int16_t *_dst, int dstW,
42  const uint8_t *_src, const int16_t *filter,
43  const int32_t *filterPos, int filterSize, int sh);
44 
45 void ff_hscale_16_to_19_lsx(SwsInternal *c, int16_t *_dst, int dstW,
46  const uint8_t *_src, const int16_t *filter,
47  const int32_t *filterPos, int filterSize);
48 
49 void ff_hscale_16_to_19_sub_lsx(SwsInternal *c, int16_t *_dst, int dstW,
50  const uint8_t *_src, const int16_t *filter,
51  const int32_t *filterPos, int filterSize, int sh);
52 
53 void lumRangeFromJpeg_lsx(int16_t *dst, int width);
54 void chrRangeFromJpeg_lsx(int16_t *dstU, int16_t *dstV, int width);
55 void lumRangeToJpeg_lsx(int16_t *dst, int width);
56 void chrRangeToJpeg_lsx(int16_t *dstU, int16_t *dstV, int width);
57 
58 void planar_rgb_to_uv_lsx(uint8_t *_dstU, uint8_t *_dstV, const uint8_t *src[4],
59  int width, int32_t *rgb2yuv, void *opq);
60 
61 void planar_rgb_to_y_lsx(uint8_t *_dst, const uint8_t *src[4], int width,
62  int32_t *rgb2yuv, void *opq);
63 
64 void yuv2planeX_8_lsx(const int16_t *filter, int filterSize,
65  const int16_t **src, uint8_t *dest, int dstW,
66  const uint8_t *dither, int offset);
67 
68 void yuv2plane1_8_lsx(const int16_t *src, uint8_t *dest, int dstW,
69  const uint8_t *dither, int offset);
70 
71 void yuy2ToUV_lsx(uint8_t *dstU, uint8_t *dstV, const uint8_t *unused0, const uint8_t *src1,
72  const uint8_t *src2, int width, uint32_t *unused, void *opq);
73 
74 void yvy2ToUV_lsx(uint8_t *dstU, uint8_t *dstV, const uint8_t *unused0, const uint8_t *src1,
75  const uint8_t *src2, int width, uint32_t *unused, void *opq);
76 
77 void uyvyToUV_lsx(uint8_t *dstU, uint8_t *dstV, const uint8_t *unused0, const uint8_t *src1,
78  const uint8_t *src2, int width, uint32_t *unused, void *opq);
79 
80 void nv12ToUV_lsx(uint8_t *dstU, uint8_t *dstV, const uint8_t *unused0, const uint8_t *src1,
81  const uint8_t *src2, int width, uint32_t *unused, void *opq);
82 
83 void nv21ToUV_lsx(uint8_t *dstU, uint8_t *dstV, const uint8_t *unused0, const uint8_t *src1,
84  const uint8_t *src2, int width, uint32_t *unused, void *opq);
85 
86 void abgrToA_lsx(uint8_t *_dst, const uint8_t *src, const uint8_t *unused1,
87  const uint8_t *unused2, int width, uint32_t *unused, void *opq);
88 
89 void rgbaToA_lsx(uint8_t *_dst, const uint8_t *src, const uint8_t *unused1,
90  const uint8_t *unused2, int width, uint32_t *unused, void *opq);
91 
93 
95  yuv2planar1_fn *yuv2plane1,
97  yuv2interleavedX_fn *yuv2nv12cX,
98  yuv2packed1_fn *yuv2packed1,
99  yuv2packed2_fn *yuv2packed2,
100  yuv2packedX_fn *yuv2packedX,
101  yuv2anyX_fn *yuv2anyX);
102 
103 int yuv420_rgb24_lsx(SwsInternal *c, const uint8_t *const src[], const int srcStride[],
104  int srcSliceY, int srcSliceH, uint8_t *const dst[], const int dstStride[]);
105 
106 int yuv420_bgr24_lsx(SwsInternal *c, const uint8_t *const src[], const int srcStride[],
107  int srcSliceY, int srcSliceH, uint8_t *const dst[], const int dstStride[]);
108 
109 int yuv420_rgba32_lsx(SwsInternal *c, const uint8_t *const src[], const int srcStride[],
110  int srcSliceY, int srcSliceH, uint8_t *const dst[], const int dstStride[]);
111 
112 int yuv420_bgra32_lsx(SwsInternal *c, const uint8_t *const src[], const int srcStride[],
113  int srcSliceY, int srcSliceH, uint8_t *const dst[], const int dstStride[]);
114 
115 int yuv420_argb32_lsx(SwsInternal *c, const uint8_t *const src[], const int srcStride[],
116  int srcSliceY, int srcSliceH, uint8_t *const dst[], const int dstStride[]);
117 
118 int yuv420_abgr32_lsx(SwsInternal *c, const uint8_t *const src[], const int srcStride[],
119  int srcSliceY, int srcSliceH, uint8_t *const dst[], const int dstStride[]);
120 
121 #if HAVE_LASX
122 void ff_hscale_8_to_15_lasx(SwsInternal *c, int16_t *dst, int dstW,
123  const uint8_t *src, const int16_t *filter,
124  const int32_t *filterPos, int filterSize);
125 
126 void ff_hscale_8_to_19_lasx(SwsInternal *c, int16_t *_dst, int dstW,
127  const uint8_t *src, const int16_t *filter,
128  const int32_t *filterPos, int filterSize);
129 
130 void ff_hscale_16_to_19_lasx(SwsInternal *c, int16_t *_dst, int dstW,
131  const uint8_t *_src, const int16_t *filter,
132  const int32_t *filterPos, int filterSize);
133 
134 void ff_hscale_16_to_15_lasx(SwsInternal *c, int16_t *dst, int dstW,
135  const uint8_t *_src, const int16_t *filter,
136  const int32_t *filterPos, int filterSize);
137 
138 void lumRangeFromJpeg_lasx(int16_t *dst, int width);
139 void chrRangeFromJpeg_lasx(int16_t *dstU, int16_t *dstV, int width);
140 void lumRangeToJpeg_lasx(int16_t *dst, int width);
141 void chrRangeToJpeg_lasx(int16_t *dstU, int16_t *dstV, int width);
142 
143 void planar_rgb_to_uv_lasx(uint8_t *_dstU, uint8_t *_dstV, const uint8_t *src[4],
144  int width, int32_t *rgb2yuv, void *opq);
145 
146 void planar_rgb_to_y_lasx(uint8_t *_dst, const uint8_t *src[4], int width,
147  int32_t *rgb2yuv, void *opq);
148 
149 int yuv420_rgb24_lasx(SwsInternal *c, const uint8_t *const src[], const int srcStride[],
150  int srcSliceY, int srcSliceH, uint8_t *const dst[], const int dstStride[]);
151 
152 int yuv420_bgr24_lasx(SwsInternal *c, const uint8_t *const src[], const int srcStride[],
153  int srcSliceY, int srcSliceH, uint8_t *const dst[], const int dstStride[]);
154 
155 int yuv420_rgba32_lasx(SwsInternal *c, const uint8_t *const src[], const int srcStride[],
156  int srcSliceY, int srcSliceH, uint8_t *const dst[], const int dstStride[]);
157 
158 int yuv420_bgra32_lasx(SwsInternal *c, const uint8_t *const src[], const int srcStride[],
159  int srcSliceY, int srcSliceH, uint8_t *const dst[], const int dstStride[]);
160 
161 int yuv420_argb32_lasx(SwsInternal *c, const uint8_t *const src[], const int srcStride[],
162  int srcSliceY, int srcSliceH, uint8_t *const dst[], const int dstStride[]);
163 
164 int yuv420_abgr32_lasx(SwsInternal *c, const uint8_t *const src[], const int srcStride[],
165  int srcSliceY, int srcSliceH, uint8_t *const dst[], const int dstStride[]);
166 
167 void ff_interleave_bytes_lasx(const uint8_t *src1, const uint8_t *src2,
168  uint8_t *dest, int width, int height,
169  int src1Stride, int src2Stride, int dstStride);
170 
171 void yuv2planeX_8_lasx(const int16_t *filter, int filterSize,
172  const int16_t **src, uint8_t *dest, int dstW,
173  const uint8_t *dither, int offset);
174 
175 void yuv2plane1_8_lasx(const int16_t *src, uint8_t *dest, int dstW,
176  const uint8_t *dither, int offset);
177 
178 void yuy2ToUV_lasx(uint8_t *dstU, uint8_t *dstV, const uint8_t *unused0, const uint8_t *src1,
179  const uint8_t *src2, int width, uint32_t *unused, void *opq);
180 
181 void yvy2ToUV_lasx(uint8_t *dstU, uint8_t *dstV, const uint8_t *unused0, const uint8_t *src1,
182  const uint8_t *src2, int width, uint32_t *unused, void *opq);
183 
184 void uyvyToUV_lasx(uint8_t *dstU, uint8_t *dstV, const uint8_t *unused0, const uint8_t *src1,
185  const uint8_t *src2, int width, uint32_t *unused, void *opq);
186 
187 void nv12ToUV_lasx(uint8_t *dstU, uint8_t *dstV, const uint8_t *unused0, const uint8_t *src1,
188  const uint8_t *src2, int width, uint32_t *unused, void *opq);
189 
190 void nv21ToUV_lasx(uint8_t *dstU, uint8_t *dstV, const uint8_t *unused0, const uint8_t *src1,
191  const uint8_t *src2, int width, uint32_t *unused, void *opq);
192 
193 void abgrToA_lasx(uint8_t *_dst, const uint8_t *src, const uint8_t *unused1,
194  const uint8_t *unused2, int width, uint32_t *unused, void *opq);
195 
196 void rgbaToA_lasx(uint8_t *_dst, const uint8_t *src, const uint8_t *unused1,
197  const uint8_t *unused2, int width, uint32_t *unused, void *opq);
198 
200 
202  yuv2planar1_fn *yuv2plane1,
204  yuv2interleavedX_fn *yuv2nv12cX,
205  yuv2packed1_fn *yuv2packed1,
206  yuv2packed2_fn *yuv2packed2,
207  yuv2packedX_fn *yuv2packedX,
208  yuv2anyX_fn *yuv2anyX);
209 #endif // #if HAVE_LASX
210 
211 #endif /* SWSCALE_LOONGARCH_SWSCALE_LOONGARCH_H */
_dst
uint8_t * _dst
Definition: dsp.h:52
yuv2planar1_fn
void(* yuv2planar1_fn)(const int16_t *src, uint8_t *dest, int dstW, const uint8_t *dither, int offset)
Write one line of horizontally scaled data to planar output without any additional vertical scaling (...
Definition: swscale_internal.h:108
planar_rgb_to_uv_lsx
void planar_rgb_to_uv_lsx(uint8_t *_dstU, uint8_t *_dstV, const uint8_t *src[4], int width, int32_t *rgb2yuv, void *opq)
nv12ToUV_lsx
void nv12ToUV_lsx(uint8_t *dstU, uint8_t *dstV, const uint8_t *unused0, const uint8_t *src1, const uint8_t *src2, int width, uint32_t *unused, void *opq)
ff_hscale_8_to_19_lasx
void ff_hscale_8_to_19_lasx(SwsInternal *c, int16_t *_dst, int dstW, const uint8_t *src, const int16_t *filter, const int32_t *filterPos, int filterSize)
Definition: swscale_lasx.c:474
src1
const pixel * src1
Definition: h264pred_template.c:421
ff_hscale_16_to_15_lsx
void ff_hscale_16_to_15_lsx(SwsInternal *c, int16_t *_dst, int dstW, const uint8_t *_src, const int16_t *filter, const int32_t *filterPos, int filterSize)
Definition: swscale_lsx.c:26
chrRangeFromJpeg_lsx
void chrRangeFromJpeg_lsx(int16_t *dstU, int16_t *dstV, int width)
yuv2planeX
static void FUNC() yuv2planeX(const int16_t *filter, int filterSize, const int16_t **src, uint8_t *dest, int dstW, const uint8_t *dither, int offset)
Definition: swscale_ppc_template.c:84
rgb2yuv
static const char rgb2yuv[]
Definition: vf_scale_vulkan.c:69
yuv420_argb32_lsx
int yuv420_argb32_lsx(SwsInternal *c, const uint8_t *const src[], const int srcStride[], int srcSliceY, int srcSliceH, uint8_t *const dst[], const int dstStride[])
filter
void(* filter)(uint8_t *src, int stride, int qscale)
Definition: h263dsp.c:29
_src
uint8_t ptrdiff_t const uint8_t * _src
Definition: dsp.h:52
planar_rgb_to_y_lsx
void planar_rgb_to_y_lsx(uint8_t *_dst, const uint8_t *src[4], int width, int32_t *rgb2yuv, void *opq)
ff_hscale_16_to_15_sub_lsx
void ff_hscale_16_to_15_sub_lsx(SwsInternal *c, int16_t *_dst, int dstW, const uint8_t *_src, const int16_t *filter, const int32_t *filterPos, int filterSize, int sh)
ff_hscale_8_to_19_lsx
void ff_hscale_8_to_19_lsx(SwsInternal *c, int16_t *_dst, int dstW, const uint8_t *src, const int16_t *filter, const int32_t *filterPos, int filterSize)
av_cold
#define av_cold
Definition: attributes.h:90
ff_hscale_8_to_15_lasx
void ff_hscale_8_to_15_lasx(SwsInternal *c, int16_t *dst, int dstW, const uint8_t *src, const int16_t *filter, const int32_t *filterPos, int filterSize)
Definition: swscale_lasx.c:314
yuv2packed2_fn
void(* yuv2packed2_fn)(SwsInternal *c, const int16_t *lumSrc[2], const int16_t *chrUSrc[2], const int16_t *chrVSrc[2], const int16_t *alpSrc[2], uint8_t *dest, int dstW, int yalpha, int uvalpha, int y)
Write one line of horizontally scaled Y/U/V/A to packed-pixel YUV/RGB output by doing bilinear scalin...
Definition: swscale_internal.h:214
lumRangeToJpeg_lsx
void lumRangeToJpeg_lsx(int16_t *dst, int width)
uyvyToUV_lsx
void uyvyToUV_lsx(uint8_t *dstU, uint8_t *dstV, const uint8_t *unused0, const uint8_t *src1, const uint8_t *src2, int width, uint32_t *unused, void *opq)
ff_sws_init_input_lasx
av_cold void ff_sws_init_input_lasx(SwsInternal *c)
Definition: input_lasx.c:204
yuv420_bgr24_lsx
int yuv420_bgr24_lsx(SwsInternal *c, const uint8_t *const src[], const int srcStride[], int srcSliceY, int srcSliceH, uint8_t *const dst[], const int dstStride[])
ff_hscale_16_to_15_lasx
void ff_hscale_16_to_15_lasx(SwsInternal *c, int16_t *dst, int dstW, const uint8_t *_src, const int16_t *filter, const int32_t *filterPos, int filterSize)
Definition: swscale_lasx.c:676
ff_hscale_16_to_19_sub_lsx
void ff_hscale_16_to_19_sub_lsx(SwsInternal *c, int16_t *_dst, int dstW, const uint8_t *_src, const int16_t *filter, const int32_t *filterPos, int filterSize, int sh)
yuv420_rgba32_lsx
int yuv420_rgba32_lsx(SwsInternal *c, const uint8_t *const src[], const int srcStride[], int srcSliceY, int srcSliceH, uint8_t *const dst[], const int dstStride[])
yuv2plane1_8_lsx
void yuv2plane1_8_lsx(const int16_t *src, uint8_t *dest, int dstW, const uint8_t *dither, int offset)
chrRangeToJpeg_lsx
void chrRangeToJpeg_lsx(int16_t *dstU, int16_t *dstV, int width)
c
Undefined Behavior In the C some operations are like signed integer dereferencing freed accessing outside allocated Undefined Behavior must not occur in a C it is not safe even if the output of undefined operations is unused The unsafety may seem nit picking but Optimizing compilers have in fact optimized code on the assumption that no undefined Behavior occurs Optimizing code based on wrong assumptions can and has in some cases lead to effects beyond the output of computations The signed integer overflow problem in speed critical code Code which is highly optimized and works with signed integers sometimes has the problem that often the output of the computation does not c
Definition: undefined.txt:32
yvy2ToUV_lsx
void yvy2ToUV_lsx(uint8_t *dstU, uint8_t *dstV, const uint8_t *unused0, const uint8_t *src1, const uint8_t *src2, int width, uint32_t *unused, void *opq)
yuv2packedX_fn
void(* yuv2packedX_fn)(SwsInternal *c, const int16_t *lumFilter, const int16_t **lumSrc, int lumFilterSize, const int16_t *chrFilter, const int16_t **chrUSrc, const int16_t **chrVSrc, int chrFilterSize, const int16_t **alpSrc, uint8_t *dest, int dstW, int y)
Write one line of horizontally scaled Y/U/V/A to packed-pixel YUV/RGB output by doing multi-point ver...
Definition: swscale_internal.h:246
ff_sws_init_input_lsx
av_cold void ff_sws_init_input_lsx(SwsInternal *c)
Definition: input_lsx.c:24
height
#define height
Definition: dsp.h:85
lumRangeFromJpeg_lsx
void lumRangeFromJpeg_lsx(int16_t *dst, int width)
dst
uint8_t ptrdiff_t const uint8_t ptrdiff_t int intptr_t intptr_t int int16_t * dst
Definition: dsp.h:83
ff_interleave_bytes_lasx
void ff_interleave_bytes_lasx(const uint8_t *src1, const uint8_t *src2, uint8_t *dest, int width, int height, int src1Stride, int src2Stride, int dstStride)
Definition: rgb2rgb_lasx.c:25
yuv2planeX_8_lsx
void yuv2planeX_8_lsx(const int16_t *filter, int filterSize, const int16_t **src, uint8_t *dest, int dstW, const uint8_t *dither, int offset)
offset
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 offset
Definition: writing_filters.txt:86
yuv2anyX_fn
void(* yuv2anyX_fn)(SwsInternal *c, const int16_t *lumFilter, const int16_t **lumSrc, int lumFilterSize, const int16_t *chrFilter, const int16_t **chrUSrc, const int16_t **chrVSrc, int chrFilterSize, const int16_t **alpSrc, uint8_t **dest, int dstW, int y)
Write one line of horizontally scaled Y/U/V/A to YUV/RGB output by doing multi-point vertical scaling...
Definition: swscale_internal.h:280
src2
const pixel * src2
Definition: h264pred_template.c:422
yuv420_bgra32_lsx
int yuv420_bgra32_lsx(SwsInternal *c, const uint8_t *const src[], const int srcStride[], int srcSliceY, int srcSliceH, uint8_t *const dst[], const int dstStride[])
swscale_internal.h
ff_sws_init_output_lasx
av_cold void ff_sws_init_output_lasx(SwsInternal *c, yuv2planar1_fn *yuv2plane1, yuv2planarX_fn *yuv2planeX, yuv2interleavedX_fn *yuv2nv12cX, yuv2packed1_fn *yuv2packed1, yuv2packed2_fn *yuv2packed2, yuv2packedX_fn *yuv2packedX, yuv2anyX_fn *yuv2anyX)
Definition: output_lasx.c:1778
yuv2interleavedX_fn
void(* yuv2interleavedX_fn)(enum AVPixelFormat dstFormat, const uint8_t *chrDither, const int16_t *chrFilter, int chrFilterSize, const int16_t **chrUSrc, const int16_t **chrVSrc, uint8_t *dest, int dstW)
Write one line of horizontally scaled chroma to interleaved output with multi-point vertical scaling ...
Definition: swscale_internal.h:144
planar_rgb_to_uv_lasx
void planar_rgb_to_uv_lasx(uint8_t *_dstU, uint8_t *_dstV, const uint8_t *src[4], int width, int32_t *rgb2yuv, void *opq)
Definition: input_lasx.c:25
yuv420_rgb24_lsx
int yuv420_rgb24_lsx(SwsInternal *c, const uint8_t *const src[], const int srcStride[], int srcSliceY, int srcSliceH, uint8_t *const dst[], const int dstStride[])
yuv2packed1_fn
void(* yuv2packed1_fn)(SwsInternal *c, const int16_t *lumSrc, const int16_t *chrUSrc[2], const int16_t *chrVSrc[2], const int16_t *alpSrc, uint8_t *dest, int dstW, int uvalpha, int y)
Write one line of horizontally scaled Y/U/V/A to packed-pixel YUV/RGB output without any additional v...
Definition: swscale_internal.h:181
SwsInternal
Definition: swscale_internal.h:317
ff_hscale_16_to_19_lasx
void ff_hscale_16_to_19_lasx(SwsInternal *c, int16_t *_dst, int dstW, const uint8_t *_src, const int16_t *filter, const int32_t *filterPos, int filterSize)
Definition: swscale_lasx.c:823
yuv2planarX_fn
void(* yuv2planarX_fn)(const int16_t *filter, int filterSize, const int16_t **src, uint8_t *dest, int dstW, const uint8_t *dither, int offset)
Write one line of horizontally scaled data to planar output with multi-point vertical scaling between...
Definition: swscale_internal.h:124
rgbaToA_lsx
void rgbaToA_lsx(uint8_t *_dst, const uint8_t *src, const uint8_t *unused1, const uint8_t *unused2, int width, uint32_t *unused, void *opq)
ff_hscale_8_to_15_lsx
void ff_hscale_8_to_15_lsx(SwsInternal *c, int16_t *dst, int dstW, const uint8_t *src, const int16_t *filter, const int32_t *filterPos, int filterSize)
yuv420_abgr32_lsx
int yuv420_abgr32_lsx(SwsInternal *c, const uint8_t *const src[], const int srcStride[], int srcSliceY, int srcSliceH, uint8_t *const dst[], const int dstStride[])
int32_t
int32_t
Definition: audioconvert.c:56
planar_rgb_to_y_lasx
void planar_rgb_to_y_lasx(uint8_t *_dst, const uint8_t *src[4], int width, int32_t *rgb2yuv, void *opq)
Definition: input_lasx.c:127
ff_sws_init_output_lsx
av_cold void ff_sws_init_output_lsx(SwsInternal *c, yuv2planar1_fn *yuv2plane1, yuv2planarX_fn *yuv2planeX, yuv2interleavedX_fn *yuv2nv12cX, yuv2packed1_fn *yuv2packed1, yuv2packed2_fn *yuv2packed2, yuv2packedX_fn *yuv2packedX, yuv2anyX_fn *yuv2anyX)
Definition: output_lsx.c:1627
width
#define width
Definition: dsp.h:85
abgrToA_lsx
void abgrToA_lsx(uint8_t *_dst, const uint8_t *src, const uint8_t *unused1, const uint8_t *unused2, int width, uint32_t *unused, void *opq)
src
#define src
Definition: vp8dsp.c:248
swscale.h
ff_hscale_16_to_19_lsx
void ff_hscale_16_to_19_lsx(SwsInternal *c, int16_t *_dst, int dstW, const uint8_t *_src, const int16_t *filter, const int32_t *filterPos, int filterSize)
Definition: swscale_lsx.c:42
nv21ToUV_lsx
void nv21ToUV_lsx(uint8_t *dstU, uint8_t *dstV, const uint8_t *unused0, const uint8_t *src1, const uint8_t *src2, int width, uint32_t *unused, void *opq)
yuy2ToUV_lsx
void yuy2ToUV_lsx(uint8_t *dstU, uint8_t *dstV, const uint8_t *unused0, const uint8_t *src1, const uint8_t *src2, int width, uint32_t *unused, void *opq)
yuv2planeX_8_lasx
void yuv2planeX_8_lasx(const int16_t *filter, int filterSize, const int16_t **src, uint8_t *dest, int dstW, const uint8_t *dither, int offset)
Definition: output_lasx.c:25
dither
static const uint8_t dither[8][8]
Definition: vf_fspp.c:62