aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/wasm/hevc/dsp_init.c
diff options
context:
space:
mode:
authorZhao Zhili <zhilizhao@tencent.com>2025-06-07 18:18:11 +0800
committerZhao Zhili <zhilizhao@tencent.com>2025-06-20 21:09:17 +0800
commitfe45f5537b28de68fe0964898e3deca023708803 (patch)
treee9cb443e2f781fda4c6805a8af075b2f62f654b4 /libavcodec/wasm/hevc/dsp_init.c
parent9c7b019284505740e5f8bb5f498b3c48709594f8 (diff)
downloadffmpeg-fe45f5537b28de68fe0964898e3deca023708803.tar.gz
wasm/hevc: Add sao_band_filter
hevc_sao_band_8_8_c: 63.0 ( 1.00x) hevc_sao_band_8_8_simd128: 10.4 ( 6.06x) hevc_sao_band_16_8_c: 230.4 ( 1.00x) hevc_sao_band_16_8_simd128: 22.9 (10.07x) hevc_sao_band_32_8_c: 900.4 ( 1.00x) hevc_sao_band_32_8_simd128: 81.5 (11.05x) hevc_sao_band_48_8_c: 2009.1 ( 1.00x) hevc_sao_band_48_8_simd128: 170.2 (11.80x) hevc_sao_band_64_8_c: 3535.0 ( 1.00x) hevc_sao_band_64_8_simd128: 297.5 (11.88x) Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
Diffstat (limited to 'libavcodec/wasm/hevc/dsp_init.c')
-rw-r--r--libavcodec/wasm/hevc/dsp_init.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/libavcodec/wasm/hevc/dsp_init.c b/libavcodec/wasm/hevc/dsp_init.c
index e5c8a2ebb6..76a1031ff4 100644
--- a/libavcodec/wasm/hevc/dsp_init.c
+++ b/libavcodec/wasm/hevc/dsp_init.c
@@ -21,6 +21,7 @@
#include "libavutil/cpu_internal.h"
#include "libavcodec/hevc/dsp.h"
#include "libavcodec/wasm/hevc/idct.h"
+#include "libavcodec/wasm/hevc/sao.h"
av_cold void ff_hevc_dsp_init_wasm(HEVCDSPContext *c, const int bit_depth)
{
@@ -35,6 +36,12 @@ av_cold void ff_hevc_dsp_init_wasm(HEVCDSPContext *c, const int bit_depth)
c->idct[1] = ff_hevc_idct_8x8_8_simd128;
c->idct[2] = ff_hevc_idct_16x16_8_simd128;
c->idct[3] = ff_hevc_idct_32x32_8_simd128;
+
+ c->sao_band_filter[0] = ff_hevc_sao_band_filter_8x8_8_simd128;
+ c->sao_band_filter[1] =
+ c->sao_band_filter[2] =
+ c->sao_band_filter[3] =
+ c->sao_band_filter[4] = ff_hevc_sao_band_filter_16x16_8_simd128;
} else if (bit_depth == 10) {
c->idct[0] = ff_hevc_idct_4x4_10_simd128;
c->idct[1] = ff_hevc_idct_8x8_10_simd128;