diff options
author | James Almer <jamrial@gmail.com> | 2015-01-27 16:46:57 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2015-02-01 15:45:20 -0300 |
commit | 2929e560061312e564a33aed4727283cbb48b102 (patch) | |
tree | 15a1cd48c527c7687e40902ebd09c4a3121b61c5 /libavcodec/hevcdsp_template.c | |
parent | 65e6ab0c5a9fbef06476ee302c97e0c95a073dd3 (diff) | |
download | ffmpeg-2929e560061312e564a33aed4727283cbb48b102.tar.gz |
hevcdsp: replace the SAOParams struct parameter from sao_band_filter
Pass instead the two variables from the struct needed in the function.
This simplifies writing asm optimized versions of the function
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, 3 insertions, 4 deletions
diff --git a/libavcodec/hevcdsp_template.c b/libavcodec/hevcdsp_template.c index a8fff45fad..23fdb102b9 100644 --- a/libavcodec/hevcdsp_template.c +++ b/libavcodec/hevcdsp_template.c @@ -302,16 +302,15 @@ IDCT_DC(32) #undef ADD_AND_SCALE static void FUNC(sao_band_filter_0)(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 sao_left_class, + int width, int height) { pixel *dst = (pixel *)_dst; pixel *src = (pixel *)_src; int offset_table[32] = { 0 }; int k, y, x; int shift = BIT_DEPTH - 5; - int16_t *sao_offset_val = sao->offset_val[c_idx]; - int sao_left_class = sao->band_position[c_idx]; stride_dst /= sizeof(pixel); stride_src /= sizeof(pixel); |