diff options
author | James Almer <jamrial@gmail.com> | 2015-02-03 22:39:03 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2015-02-04 17:53:04 -0300 |
commit | 7457afc64d5fcaddfaf07bfd5d436ebfb3675afe (patch) | |
tree | c08d3d88676e9e17119a25e6d8f10b5b98a49744 /libavcodec/hevcdsp_template.c | |
parent | 121ccc336551c3c1fbe438de421c977c86e6bbd3 (diff) |
hevcdsp: replace the SAOParams struct parameter from sao_edge_filter
As with sao_band_filter, pass instead the two variables from the struct needed in the function.
This simplifies writing asm optimized versions.
Reviewed-by: Mickaƫl Raulet <mraulet@insa-rennes.fr>
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/hevcdsp_template.c')
-rw-r--r-- | libavcodec/hevcdsp_template.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/libavcodec/hevcdsp_template.c b/libavcodec/hevcdsp_template.c index 44794356bf..ac9870938b 100644 --- a/libavcodec/hevcdsp_template.c +++ b/libavcodec/hevcdsp_template.c @@ -328,9 +328,8 @@ static void FUNC(sao_band_filter_0)(uint8_t *_dst, uint8_t *_src, #define CMP(a, b) ((a) > (b) ? 1 : ((a) == (b) ? 0 : -1)) static void FUNC(sao_edge_filter)(uint8_t *_dst, uint8_t *_src, - ptrdiff_t stride_dst, ptrdiff_t stride_src, SAOParams *sao, - int width, int height, - int c_idx) { + ptrdiff_t stride_dst, ptrdiff_t stride_src, int16_t *sao_offset_val, + int eo, int width, int height) { static const uint8_t edge_idx[] = { 1, 2, 0, 3, 4 }; static const int8_t pos[4][2][2] = { @@ -339,8 +338,6 @@ static void FUNC(sao_edge_filter)(uint8_t *_dst, uint8_t *_src, { { -1, -1 }, { 1, 1 } }, // 45 degree { { 1, -1 }, { -1, 1 } }, // 135 degree }; - int16_t *sao_offset_val = sao->offset_val[c_idx]; - int eo = sao->eo_class[c_idx]; pixel *dst = (pixel *)_dst; pixel *src = (pixel *)_src; int a_stride, b_stride; |