diff options
author | Mickaƫl Raulet <mraulet@insa-rennes.fr> | 2014-07-16 23:15:32 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-07-18 22:46:50 +0200 |
commit | d249e6828e8a84758010ec020a84dfcd156b585e (patch) | |
tree | 14a2103e8c7bd59d1082915c3c7e277e1b974108 /libavcodec/hevcdsp.h | |
parent | 2897447ddf805edc0a7935ab633c28e29a89b7b3 (diff) | |
download | ffmpeg-d249e6828e8a84758010ec020a84dfcd156b585e.tar.gz |
hevc/sao: optimze sao implementation
- adding one extra pixel all around the frame
- do not copy when SAO is not applied
5% improvement
cherry picked from commit 10fc29fc19a12c4d8168fbe1a954b76386db12d0
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/hevcdsp.h')
-rw-r--r-- | libavcodec/hevcdsp.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/hevcdsp.h b/libavcodec/hevcdsp.h index 3b82fabff1..dfff7801f7 100644 --- a/libavcodec/hevcdsp.h +++ b/libavcodec/hevcdsp.h @@ -58,11 +58,11 @@ typedef struct HEVCDSPContext { void (*transform_dc_add[4])(uint8_t *dst, int16_t *coeffs, ptrdiff_t stride); - void (*sao_band_filter)(uint8_t *_dst, uint8_t *_src, ptrdiff_t _stride, + void (*sao_band_filter)(uint8_t *_dst, uint8_t *_src, ptrdiff_t _stride_dst, ptrdiff_t _stride_src, struct SAOParams *sao, int *borders, int width, int height, int c_idx); - void (*sao_edge_filter[2])(uint8_t *_dst, uint8_t *_src, ptrdiff_t _stride, + void (*sao_edge_filter[2])(uint8_t *_dst, uint8_t *_src, ptrdiff_t _stride_dst, ptrdiff_t _stride_src, struct SAOParams *sao, int *borders, int _width, int _height, int c_idx, uint8_t *vert_edge, uint8_t *horiz_edge, uint8_t *diag_edge); |