History

swscale/rgb2rgb: enable R-V V deinterleaveBytes

T-Head C908: deinterleave_bytes_c: 100328.3 ( 1.00x) deinterleave_bytes_rvv_i32: 19331.3 ( 5.19x) deinterleave_bytes_aligned_c: 100337.5 ( 1.00x) deinterleave_bytes_aligned_rvv_i32: 15748.0 ( 6.37x) SpacemiT X60: deinterleave_bytes_c: 95230.6 ( 1.00x) deinterleave_bytes_rvv_i32: 9790.3 ( 9.73x) deinterleave_bytes_aligned_c: 96564.1 ( 1.00x) deinterleave_bytes_aligned_rvv_i32: 7780.1 (12.41x)

Rémi Denis-Courmont committed 2 years ago

Commit 27d28b61 parent d4cfbf31 file · +4 −0Browse files

Unified · Split

libswscale/riscv/rgb2rgb.c+4−0
@@ -33,6 +33,9 @@ void ff_shuffle_bytes_3210_rvb(const uint8_t *src, uint8_t *dst, int src_len); · 32 unmodified lines
33void ff_interleave_bytes_rvv(const uint8_t *src1, const uint8_t *src2,33void ff_interleave_bytes_rvv(const uint8_t *src1, const uint8_t *src2,
34 uint8_t *dst, int width, int height, int s1stride,34 uint8_t *dst, int width, int height, int s1stride,
35 int s2stride, int dstride);35 int s2stride, int dstride);
36void ff_deinterleave_bytes_rvv(const uint8_t *src, uint8_t *dst1,
37 uint8_t *dst2, int width, int height,
38 int srcStride, int dst1Stride, int dst2Stride);
36void ff_uyvytoyuv422_rvv(uint8_t *ydst, uint8_t *udst, uint8_t *vdst,39void ff_uyvytoyuv422_rvv(uint8_t *ydst, uint8_t *udst, uint8_t *vdst,
37 const uint8_t *src, int width, int height,40 const uint8_t *src, int width, int height,
38 int ystride, int uvstride, int src_stride);41 int ystride, int uvstride, int src_stride);
@@ -56,6 +59,7 @@ av_cold void rgb2rgb_init_riscv(void) · 17 unmodified lines
56 shuffle_bytes_1230 = ff_shuffle_bytes_1230_rvv;59 shuffle_bytes_1230 = ff_shuffle_bytes_1230_rvv;
57 shuffle_bytes_3012 = ff_shuffle_bytes_3012_rvv;60 shuffle_bytes_3012 = ff_shuffle_bytes_3012_rvv;
58 interleaveBytes = ff_interleave_bytes_rvv;61 interleaveBytes = ff_interleave_bytes_rvv;
62 deinterleaveBytes = ff_deinterleave_bytes_rvv;
59 uyvytoyuv422 = ff_uyvytoyuv422_rvv;63 uyvytoyuv422 = ff_uyvytoyuv422_rvv;
60 yuyvtoyuv422 = ff_yuyvtoyuv422_rvv;64 yuyvtoyuv422 = ff_yuyvtoyuv422_rvv;
61 }65 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t