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) \
58void ff_##name##ToY_rvv(uint8_t *dst, const uint8_t *src, const uint8_t *, \
59 const uint8_t *, int w, uint32_t *coeffs, void *); \
60void 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 *); \
63void 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;
#define flags(name, subs,...)
Macro definitions for various function/variable attributes.
int av_get_cpu_flags(void)
Return the flags which specify extensions supported by the CPU.
#define AV_CPU_FLAG_RVB
B (bit manipulations)
#define AV_CPU_FLAG_RVV_I32
Vectors of 8/16/32-bit int's */.
@ AV_PIX_FMT_RGB24
packed RGB 8:8:8, 24bpp, RGBRGB...
@ AV_PIX_FMT_ARGB
packed ARGB 8:8:8:8, 32bpp, ARGBARGB...
@ AV_PIX_FMT_BGRA
packed BGRA 8:8:8:8, 32bpp, BGRABGRA...
@ AV_PIX_FMT_ABGR
packed ABGR 8:8:8:8, 32bpp, ABGRABGR...
@ AV_PIX_FMT_RGBA
packed RGBA 8:8:8:8, 32bpp, RGBARGBA...
@ AV_PIX_FMT_BGR24
packed RGB 8:8:8, 24bpp, BGRBGR...
av_cold void ff_sws_init_range_convert_riscv(SwsInternal *c)
av_cold void ff_sws_init_swscale_riscv(SwsInternal *c)
void ff_range_lum_from_jpeg_16_rvv(int16_t *, int)
void ff_range_lum_to_jpeg_16_rvv(int16_t *, int)
void ff_range_chr_from_jpeg_16_rvv(int16_t *, int16_t *, int)
void ff_range_chr_to_jpeg_16_rvv(int16_t *, int16_t *, int)
static double lum(void *priv, double x, double y, int plane)