diff options
author | James Almer <jamrial@gmail.com> | 2017-01-08 03:10:46 +0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2017-01-13 04:53:04 +0300 |
commit | 30c1f27299d3fc2b0c0858c003066cc5e36a28af (patch) | |
tree | 594a5c933605cd1386a66d5e2b595394e8991fab /libavcodec/huffyuvencdsp.h | |
parent | 5ac1dd8e231987c022a860c6b1961b038a84b613 (diff) |
huffyuvencdsp: move functions only used by huffyuv from lossless_videodsp
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/huffyuvencdsp.h')
-rw-r--r-- | libavcodec/huffyuvencdsp.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/libavcodec/huffyuvencdsp.h b/libavcodec/huffyuvencdsp.h index 9d09095374..141dad8692 100644 --- a/libavcodec/huffyuvencdsp.h +++ b/libavcodec/huffyuvencdsp.h @@ -21,11 +21,18 @@ #include <stdint.h> +#include "avcodec.h" + typedef struct HuffYUVEncDSPContext { void (*diff_bytes)(uint8_t *dst /* align 16 */, const uint8_t *src1 /* align 16 */, const uint8_t *src2 /* align 1 */, intptr_t 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); + /** * Subtract HuffYUV's variant of median prediction. * Note, this might read from src1[-1], src2[-1]. @@ -33,9 +40,12 @@ typedef struct HuffYUVEncDSPContext { void (*sub_hfyu_median_pred)(uint8_t *dst, const uint8_t *src1, const uint8_t *src2, intptr_t w, int *left, int *left_top); + void (*sub_hfyu_median_pred_int16)(uint16_t *dst, const uint16_t *src1, + const uint16_t *src2, unsigned mask, + int w, int *left, int *left_top); } HuffYUVEncDSPContext; -void ff_huffyuvencdsp_init(HuffYUVEncDSPContext *c); -void ff_huffyuvencdsp_init_x86(HuffYUVEncDSPContext *c); +void ff_huffyuvencdsp_init(HuffYUVEncDSPContext *c, AVCodecContext *avctx); +void ff_huffyuvencdsp_init_x86(HuffYUVEncDSPContext *c, AVCodecContext *avctx); #endif /* AVCODEC_HUFFYUVENCDSP_H */ |