[FFmpeg-devel] [PATCH 1/2] swscale/aarch64: Add bgr24 to yuv

Martin Storsjö martin at martin.st
Tue Jun 18 23:32:38 EEST 2024


On Sat, 15 Jun 2024, Zhao Zhili wrote:

> From: Zhao Zhili <zhilizhao at tencent.com>
>
> Test on Apple M1 with kperf
>
> bgr24_to_uv_8_c: 41.5
> bgr24_to_uv_8_neon: 41.8
> bgr24_to_uv_128_c: 133.5
> bgr24_to_uv_128_neon: 94.3
> bgr24_to_uv_1080_c: 960.5
> bgr24_to_uv_1080_neon: 751.0
> bgr24_to_uv_1920_c: 1695.3
> bgr24_to_uv_1920_neon: 1357.3
> bgr24_to_uv_half_8_c: 45.0
> bgr24_to_uv_half_8_neon: 11.0
> bgr24_to_uv_half_128_c: 130.5
> bgr24_to_uv_half_128_neon: 51.8
> bgr24_to_uv_half_1080_c: 877.3
> bgr24_to_uv_half_1080_neon: 414.0
> bgr24_to_uv_half_1920_c: 1540.0
> bgr24_to_uv_half_1920_neon: 695.0
> bgr24_to_y_8_c: 24.3
> bgr24_to_y_8_neon: 12.8
> bgr24_to_y_128_c: 94.3
> bgr24_to_y_128_neon: 47.5
> bgr24_to_y_1080_c: 611.5
> bgr24_to_y_1080_neon: 437.5
> bgr24_to_y_1920_c: 1077.3
> bgr24_to_y_1920_neon: 765.3
> ---
> libswscale/aarch64/input.S   | 79 ++++++++++++++++++++++++++++--------
> libswscale/aarch64/swscale.c | 32 +++++++++------
> 2 files changed, 80 insertions(+), 31 deletions(-)

This LGTM

// Martin



More information about the ffmpeg-devel mailing list