Go to the documentation of this file.
22 #ifndef SWSCALE_LOONGARCH_SWSCALE_LOONGARCH_H
23 #define SWSCALE_LOONGARCH_SWSCALE_LOONGARCH_H
30 const uint8_t *
src,
const int16_t *
filter,
31 const int32_t *filterPos,
int filterSize);
34 const uint8_t *
src,
const int16_t *
filter,
35 const int32_t *filterPos,
int filterSize);
38 const uint8_t *_src,
const int16_t *
filter,
39 const int32_t *filterPos,
int filterSize);
42 const uint8_t *_src,
const int16_t *
filter,
43 const int32_t *filterPos,
int filterSize,
int sh);
46 const uint8_t *_src,
const int16_t *
filter,
47 const int32_t *filterPos,
int filterSize);
50 const uint8_t *_src,
const int16_t *
filter,
51 const int32_t *filterPos,
int filterSize,
int sh);
60 const int16_t **
src, uint8_t *dest,
int dstW,
66 int srcSliceY,
int srcSliceH, uint8_t *dst[],
int dstStride[]);
69 int srcSliceY,
int srcSliceH, uint8_t *dst[],
int dstStride[]);
72 int srcSliceY,
int srcSliceH, uint8_t *dst[],
int dstStride[]);
75 int srcSliceY,
int srcSliceH, uint8_t *dst[],
int dstStride[]);
78 int srcSliceY,
int srcSliceH, uint8_t *dst[],
int dstStride[]);
81 int srcSliceY,
int srcSliceH, uint8_t *dst[],
int dstStride[]);
85 const uint8_t *
src,
const int16_t *
filter,
86 const int32_t *filterPos,
int filterSize);
89 const uint8_t *
src,
const int16_t *
filter,
90 const int32_t *filterPos,
int filterSize);
93 const uint8_t *_src,
const int16_t *
filter,
94 const int32_t *filterPos,
int filterSize);
97 const uint8_t *_src,
const int16_t *
filter,
98 const int32_t *filterPos,
int filterSize);
106 int yuv420_rgb24_lasx(
SwsContext *
c,
const uint8_t *
src[],
int srcStride[],
107 int srcSliceY,
int srcSliceH, uint8_t *dst[],
int dstStride[]);
109 int yuv420_bgr24_lasx(
SwsContext *
c,
const uint8_t *
src[],
int srcStride[],
110 int srcSliceY,
int srcSliceH, uint8_t *dst[],
int dstStride[]);
112 int yuv420_rgba32_lasx(
SwsContext *
c,
const uint8_t *
src[],
int srcStride[],
113 int srcSliceY,
int srcSliceH, uint8_t *dst[],
int dstStride[]);
115 int yuv420_bgra32_lasx(
SwsContext *
c,
const uint8_t *
src[],
int srcStride[],
116 int srcSliceY,
int srcSliceH, uint8_t *dst[],
int dstStride[]);
118 int yuv420_argb32_lasx(
SwsContext *
c,
const uint8_t *
src[],
int srcStride[],
119 int srcSliceY,
int srcSliceH, uint8_t *dst[],
int dstStride[]);
121 int yuv420_abgr32_lasx(
SwsContext *
c,
const uint8_t *
src[],
int srcStride[],
122 int srcSliceY,
int srcSliceH, uint8_t *dst[],
int dstStride[]);
126 int src1Stride,
int src2Stride,
int dstStride);
129 const int16_t **
src, uint8_t *dest,
int dstW,
133 #endif // #if HAVE_LASX
void ff_yuv2planeX_8_lasx(const int16_t *filter, int filterSize, const int16_t **src, uint8_t *dest, int dstW, const uint8_t *dither, int offset)
int yuv420_bgr24_lsx(SwsContext *c, const uint8_t *src[], int srcStride[], int srcSliceY, int srcSliceH, uint8_t *dst[], int dstStride[])
void planar_rgb_to_uv_lsx(uint8_t *_dstU, uint8_t *_dstV, const uint8_t *src[4], int width, int32_t *rgb2yuv, void *opq)
int yuv420_rgb24_lsx(SwsContext *c, const uint8_t *src[], int srcStride[], int srcSliceY, int srcSliceH, uint8_t *dst[], int dstStride[])
static const char rgb2yuv[]
av_cold void ff_sws_init_output_lasx(SwsContext *c)
filter_frame For filters that do not use the this method is called when a frame is pushed to the filter s input It can be called at any time except in a reentrant way If the input frame is enough to produce then the filter should push the output frames on the output link immediately As an exception to the previous rule if the input frame is enough to produce several output frames then the filter needs output only at least one per link The additional frames can be left buffered in the filter
void planar_rgb_to_y_lsx(uint8_t *_dst, const uint8_t *src[4], int width, int32_t *rgb2yuv, void *opq)
void ff_hscale_8_to_15_lsx(SwsContext *c, int16_t *dst, int dstW, const uint8_t *src, const int16_t *filter, const int32_t *filterPos, int filterSize)
int yuv420_abgr32_lsx(SwsContext *c, const uint8_t *src[], int srcStride[], int srcSliceY, int srcSliceH, uint8_t *dst[], int dstStride[])
void ff_hscale_8_to_19_lsx(SwsContext *c, int16_t *_dst, int dstW, const uint8_t *src, const int16_t *filter, const int32_t *filterPos, int filterSize)
av_cold void ff_sws_init_output_lsx(SwsContext *c)
void ff_hscale_16_to_15_lsx(SwsContext *c, int16_t *_dst, int dstW, const uint8_t *_src, const int16_t *filter, const int32_t *filterPos, int filterSize)
void ff_hscale_16_to_15_sub_lsx(SwsContext *c, int16_t *_dst, int dstW, const uint8_t *_src, const int16_t *filter, const int32_t *filterPos, int filterSize, int sh)
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
int yuv420_bgra32_lsx(SwsContext *c, const uint8_t *src[], int srcStride[], int srcSliceY, int srcSliceH, uint8_t *dst[], int dstStride[])
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)
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
void ff_yuv2planeX_8_lsx(const int16_t *filter, int filterSize, const int16_t **src, uint8_t *dest, int dstW, const uint8_t *dither, int offset)
void ff_hscale_16_to_19_sub_lsx(SwsContext *c, int16_t *_dst, int dstW, const uint8_t *_src, const int16_t *filter, const int32_t *filterPos, int filterSize, int sh)
void ff_hscale_8_to_15_lasx(SwsContext *c, int16_t *dst, int dstW, const uint8_t *src, const int16_t *filter, const int32_t *filterPos, int filterSize)
void ff_hscale_16_to_19_lasx(SwsContext *c, int16_t *_dst, int dstW, const uint8_t *_src, const int16_t *filter, const int32_t *filterPos, int filterSize)
int yuv420_argb32_lsx(SwsContext *c, const uint8_t *src[], int srcStride[], int srcSliceY, int srcSliceH, uint8_t *dst[], int dstStride[])
void ff_hscale_16_to_15_lasx(SwsContext *c, int16_t *dst, int dstW, const uint8_t *_src, const int16_t *filter, const int32_t *filterPos, int filterSize)
int yuv420_rgba32_lsx(SwsContext *c, const uint8_t *src[], int srcStride[], int srcSliceY, int srcSliceH, uint8_t *dst[], int dstStride[])
void ff_hscale_8_to_19_lasx(SwsContext *c, int16_t *_dst, int dstW, const uint8_t *src, const int16_t *filter, const int32_t *filterPos, int filterSize)
void ff_hscale_16_to_19_lsx(SwsContext *c, int16_t *_dst, int dstW, const uint8_t *_src, const int16_t *filter, const int32_t *filterPos, int filterSize)
static const uint8_t dither[8][8]