Go to the documentation of this file.
22 #ifndef SWSCALE_LOONGARCH_SWSCALE_LOONGARCH_H
23 #define SWSCALE_LOONGARCH_SWSCALE_LOONGARCH_H
29 const uint8_t *
src,
const int16_t *
filter,
30 const int32_t *filterPos,
int filterSize);
33 const uint8_t *
src,
const int16_t *
filter,
34 const int32_t *filterPos,
int filterSize);
37 const uint8_t *_src,
const int16_t *
filter,
38 const int32_t *filterPos,
int filterSize);
41 const uint8_t *_src,
const int16_t *
filter,
42 const int32_t *filterPos,
int filterSize);
51 int srcSliceY,
int srcSliceH, uint8_t *dst[],
int dstStride[]);
54 int srcSliceY,
int srcSliceH, uint8_t *dst[],
int dstStride[]);
57 int srcSliceY,
int srcSliceH, uint8_t *dst[],
int dstStride[]);
60 int srcSliceY,
int srcSliceH, uint8_t *dst[],
int dstStride[]);
63 int srcSliceY,
int srcSliceH, uint8_t *dst[],
int dstStride[]);
66 int srcSliceY,
int srcSliceH, uint8_t *dst[],
int dstStride[]);
70 int src1Stride,
int src2Stride,
int dstStride);
75 const int16_t **
src, uint8_t *dest,
int dstW,
int yuv420_bgr24_lasx(SwsContext *c, const uint8_t *src[], int srcStride[], int srcSliceY, int srcSliceH, uint8_t *dst[], int dstStride[])
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)
static const char rgb2yuv[]
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_lasx(uint8_t *_dst, const uint8_t *src[4], int width, int32_t *rgb2yuv, void *opq)
void planar_rgb_to_uv_lasx(uint8_t *_dstU, uint8_t *_dstV, const uint8_t *src[4], int width, int32_t *rgb2yuv, void *opq)
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_interleave_bytes_lasx(const uint8_t *src1, const uint8_t *src2, uint8_t *dest, int width, int height, int src1Stride, int src2Stride, 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)
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_lasx(SwsContext *c, const uint8_t *src[], int srcStride[], int srcSliceY, int srcSliceH, uint8_t *dst[], 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_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)
av_cold void ff_sws_init_output_loongarch(SwsContext *c)
int yuv420_rgb24_lasx(SwsContext *c, const uint8_t *src[], int srcStride[], int srcSliceY, int srcSliceH, uint8_t *dst[], int dstStride[])
int yuv420_abgr32_lasx(SwsContext *c, const uint8_t *src[], int srcStride[], int srcSliceY, int srcSliceH, uint8_t *dst[], int dstStride[])
int yuv420_argb32_lasx(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)
int yuv420_rgba32_lasx(SwsContext *c, const uint8_t *src[], int srcStride[], int srcSliceY, int srcSliceH, uint8_t *dst[], int dstStride[])
static const uint8_t dither[8][8]