diff options
author | James Almer <jamrial@gmail.com> | 2017-01-08 11:48:05 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2017-01-12 22:53:05 -0300 |
commit | 47f212329e5d73c81e2c67acd6a481bc0fe687b2 (patch) | |
tree | 5457e6f0cad40c63b67f86331659f880b4e576b8 /libavcodec/huffyuvdsp.h | |
parent | cf9ef839606dd50f779c395d8a277de143f7e5b2 (diff) | |
download | ffmpeg-47f212329e5d73c81e2c67acd6a481bc0fe687b2.tar.gz |
huffyuvdsp: move functions only used by huffyuv from lossless_videodsp
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/huffyuvdsp.h')
-rw-r--r-- | libavcodec/huffyuvdsp.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/libavcodec/huffyuvdsp.h b/libavcodec/huffyuvdsp.h index eaad1affaf..7680f2ec9c 100644 --- a/libavcodec/huffyuvdsp.h +++ b/libavcodec/huffyuvdsp.h @@ -21,6 +21,7 @@ #include <stdint.h> #include "config.h" +#include "avcodec.h" #if HAVE_BIGENDIAN #define B 3 @@ -35,12 +36,18 @@ #endif typedef struct HuffYUVDSPContext { + void (*add_int16)(uint16_t *dst/*align 16*/, const uint16_t *src/*align 16*/, + unsigned mask, int w); + + void (*add_hfyu_median_pred_int16)(uint16_t *dst, const uint16_t *top, + const uint16_t *diff, unsigned mask, + int w, int *left, int *left_top); void (*add_hfyu_left_pred_bgr32)(uint8_t *dst, const uint8_t *src, intptr_t w, uint8_t *left); } HuffYUVDSPContext; -void ff_huffyuvdsp_init(HuffYUVDSPContext *c); -void ff_huffyuvdsp_init_ppc(HuffYUVDSPContext *c); -void ff_huffyuvdsp_init_x86(HuffYUVDSPContext *c); +void ff_huffyuvdsp_init(HuffYUVDSPContext *c, AVCodecContext *avctx); +void ff_huffyuvdsp_init_ppc(HuffYUVDSPContext *c, AVCodecContext *avctx); +void ff_huffyuvdsp_init_x86(HuffYUVDSPContext *c, AVCodecContext *avctx); #endif /* AVCODEC_HUFFYUVDSP_H */ |