Go to the documentation of this file.
39 void (*
lum)(int16_t *, int);
40 void (*chr)(int16_t *, int16_t *, int);
46 if (
c->dstBpc <= 14 &&
48 bool from =
c->opts.src_range != 0;
50 c->lumConvertRange = convs[
from].lum;
51 c->chrConvertRange = convs[
from].chr;
57 #define RVV_INPUT(name) \
58 void ff_##name##ToY_rvv(uint8_t *dst, const uint8_t *src, const uint8_t *, \
59 const uint8_t *, int w, uint32_t *coeffs, void *); \
60 void ff_##name##ToUV_rvv(uint8_t *, uint8_t *, const uint8_t *, \
61 const uint8_t *, const uint8_t *, int w, \
62 uint32_t *coeffs, void *); \
63 void ff_##name##ToUV_half_rvv(uint8_t *, uint8_t *, const uint8_t *, \
64 const uint8_t *, const uint8_t *, int w, \
65 uint32_t *coeffs, void *)
80 switch (
c->opts.src_format) {
82 c->lumToYV12 = ff_abgr32ToY_rvv;
83 if (
c->chrSrcHSubSample)
84 c->chrToYV12 = ff_abgr32ToUV_half_rvv;
86 c->chrToYV12 = ff_abgr32ToUV_rvv;
90 c->lumToYV12 = ff_argb32ToY_rvv;
91 if (
c->chrSrcHSubSample)
92 c->chrToYV12 = ff_argb32ToUV_half_rvv;
94 c->chrToYV12 = ff_argb32ToUV_rvv;
98 c->lumToYV12 = ff_bgr24ToY_rvv;
99 if (
c->chrSrcHSubSample)
100 c->chrToYV12 = ff_bgr24ToUV_half_rvv;
102 c->chrToYV12 = ff_bgr24ToUV_rvv;
106 c->lumToYV12 = ff_bgra32ToY_rvv;
107 if (
c->chrSrcHSubSample)
108 c->chrToYV12 = ff_bgra32ToUV_half_rvv;
110 c->chrToYV12 = ff_bgra32ToUV_rvv;
114 c->lumToYV12 = ff_rgb24ToY_rvv;
115 if (
c->chrSrcHSubSample)
116 c->chrToYV12 = ff_rgb24ToUV_half_rvv;
118 c->chrToYV12 = ff_rgb24ToUV_rvv;
122 c->lumToYV12 = ff_rgba32ToY_rvv;
123 if (
c->chrSrcHSubSample)
124 c->chrToYV12 = ff_rgba32ToUV_half_rvv;
126 c->chrToYV12 = ff_rgba32ToUV_rvv;
void ff_range_chr_to_jpeg_16_rvv(int16_t *, int16_t *, int)
@ AV_PIX_FMT_BGR24
packed RGB 8:8:8, 24bpp, BGRBGR...
@ AV_PIX_FMT_BGRA
packed BGRA 8:8:8:8, 32bpp, BGRABGRA...
av_cold void ff_sws_init_swscale_riscv(SwsInternal *c)
int av_get_cpu_flags(void)
Return the flags which specify extensions supported by the CPU.
void ff_range_lum_to_jpeg_16_rvv(int16_t *, int)
#define AV_CPU_FLAG_RVB
B (bit manipulations)
av_cold void ff_sws_init_range_convert_riscv(SwsInternal *c)
@ AV_PIX_FMT_RGBA
packed RGBA 8:8:8:8, 32bpp, RGBARGBA...
@ AV_PIX_FMT_ABGR
packed ABGR 8:8:8:8, 32bpp, ABGRABGR...
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
@ AV_PIX_FMT_RGB24
packed RGB 8:8:8, 24bpp, RGBRGB...
@ AV_PIX_FMT_ARGB
packed ARGB 8:8:8:8, 32bpp, ARGBARGB...
#define AV_CPU_FLAG_RVV_I32
Vectors of 8/16/32-bit int's */.
void ff_range_chr_from_jpeg_16_rvv(int16_t *, int16_t *, int)
void ff_range_lum_from_jpeg_16_rvv(int16_t *, int)
static double lum(void *priv, double x, double y, int plane)
#define flags(name, subs,...)