avcodec/riscv/hevcdsp: add RVV implementation of deblocking - #3
Open
Deng-zewen wants to merge 4 commits into
Open
avcodec/riscv/hevcdsp: add RVV implementation of deblocking#3Deng-zewen wants to merge 4 commits into
Deng-zewen wants to merge 4 commits into
Conversation
…fmpeg into baseline-ffmpeg-opt1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
avcodec/riscv/hevcdsp: add RVV implementation of deblocking
Implement HEVC deblocking filter using RISC-V Vector extension. The RVV implementation of hevc_v_loop_filter_chroma_8 shows no performance gain over the scalar C version, so disable it for now.
All checkasm tests passed. Benchmarks were performed on Sophon SG2044 with native
FFmpeg timers:
hevc_h_loop_filter_chroma8_c: 47.2 ( 1.00x)
hevc_h_loop_filter_chroma8_rvv_i32: 24.2 ( 1.95x)
hevc_h_loop_filter_luma8_skip_c: 37.7 ( 1.00x)
hevc_h_loop_filter_luma8_skip_rvv_i32: 26.9 ( 1.40x)
hevc_h_loop_filter_luma8_strong_c: 191.3 ( 1.00x)
hevc_h_loop_filter_luma8_strong_rvv_i32: 93.5 ( 2.05x)
hevc_h_loop_filter_luma8_weak_c: 37.7 ( 1.00x)
hevc_h_loop_filter_luma8_weak_rvv_i32: 26.9 ( 1.40x)
hevc_v_loop_filter_chroma8_c: 39.6 ( 1.00x)
hevc_v_loop_filter_chroma8_rvv_i32: 61.1 ( 0.65x)
hevc_v_loop_filter_luma8_skip_c: 29.1 ( 1.00x)
hevc_v_loop_filter_luma8_skip_rvv_i32: 38.8 ( 0.75x)
hevc_v_loop_filter_luma8_strong_c: 144.3 ( 1.00x)
hevc_v_loop_filter_luma8_strong_rvv_i32: 124.6 ( 1.16x)
hevc_v_loop_filter_luma8_weak_c: 57.7 ( 1.00x)
hevc_v_loop_filter_luma8_weak_rvv_i32: 38.8 ( 1.49x)
Signed-off-by: Deng Zewen [deng.zewen@zte.com.cn]