diff options
author | James Almer <jamrial@gmail.com> | 2017-01-07 19:04:39 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2017-01-12 22:53:04 -0300 |
commit | 5ac1dd8e231987c022a860c6b1961b038a84b613 (patch) | |
tree | 594a5e75a7b36a95985fef7779071900a763266a /libavcodec/lossless_videodsp.h | |
parent | 3222786c5ad9f6ca94ca4cd80a4329a276d65aaa (diff) |
lossless_videodsp: move shared functions from huffyuvdsp
Several codecs other than huffyuv use them.
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/lossless_videodsp.h')
-rw-r--r-- | libavcodec/lossless_videodsp.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libavcodec/lossless_videodsp.h b/libavcodec/lossless_videodsp.h index 040902e7ba..e8ba175a5d 100644 --- a/libavcodec/lossless_videodsp.h +++ b/libavcodec/lossless_videodsp.h @@ -26,6 +26,14 @@ #include "libavutil/cpu.h" typedef struct LLVidDSPContext { + void (*add_bytes)(uint8_t *dst /* align 16 */, uint8_t *src /* align 16 */, + intptr_t w); + void (*add_median_pred)(uint8_t *dst, const uint8_t *top, + const uint8_t *diff, intptr_t w, + int *left, int *left_top); + int (*add_left_pred)(uint8_t *dst, const uint8_t *src, + intptr_t w, int left); + void (*add_int16)(uint16_t *dst/*align 16*/, const uint16_t *src/*align 16*/, unsigned mask, int w); void (*diff_int16)(uint16_t *dst/*align 16*/, const uint16_t *src1/*align 16*/, const uint16_t *src2/*align 1*/, unsigned mask, int w); @@ -36,5 +44,6 @@ typedef struct LLVidDSPContext { void ff_llviddsp_init(LLVidDSPContext *llviddsp, AVCodecContext *avctx); void ff_llviddsp_init_x86(LLVidDSPContext *llviddsp, AVCodecContext *avctx); +void ff_llviddsp_init_ppc(LLVidDSPContext *llviddsp, AVCodecContext *avctx); #endif //AVCODEC_LOSSLESS_VIDEODSP_H |