diff options
author | James Almer <jamrial@gmail.com> | 2017-01-07 23:13:48 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2017-01-12 22:53:04 -0300 |
commit | cf9ef839606dd50f779c395d8a277de143f7e5b2 (patch) | |
tree | 615bcdf1fc268c6ef0b3cc75273ca08aff8254bd /libavcodec/utvideoenc.c | |
parent | 30c1f27299d3fc2b0c0858c003066cc5e36a28af (diff) |
huffyuvencdsp: move shared functions to a new lossless_videoencdsp context
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/utvideoenc.c')
-rw-r--r-- | libavcodec/utvideoenc.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libavcodec/utvideoenc.c b/libavcodec/utvideoenc.c index d82f6a3872..2b1230f9aa 100644 --- a/libavcodec/utvideoenc.c +++ b/libavcodec/utvideoenc.c @@ -33,7 +33,6 @@ #include "bswapdsp.h" #include "bytestream.h" #include "put_bits.h" -#include "huffyuvencdsp.h" #include "mathops.h" #include "utvideo.h" #include "huffman.h" @@ -120,7 +119,7 @@ static av_cold int utvideo_encode_init(AVCodecContext *avctx) } ff_bswapdsp_init(&c->bdsp); - ff_huffyuvencdsp_init(&c->hdsp, avctx); + ff_llvidencdsp_init(&c->llvidencdsp); #if FF_API_PRIVATE_OPT FF_DISABLE_DEPRECATION_WARNINGS @@ -324,7 +323,7 @@ static void median_predict(UtvideoContext *c, uint8_t *src, uint8_t *dst, int st /* Rest of the coded part uses median prediction */ for (j = 1; j < height; j++) { - c->hdsp.sub_hfyu_median_pred(dst, src - stride, src, width, &A, &B); + c->llvidencdsp.sub_median_pred(dst, src - stride, src, width, &A, &B); dst += width; src += stride; } |