aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/vble.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2017-01-07 19:04:39 -0300
committerJames Almer <jamrial@gmail.com>2017-01-12 22:53:04 -0300
commit5ac1dd8e231987c022a860c6b1961b038a84b613 (patch)
tree594a5e75a7b36a95985fef7779071900a763266a /libavcodec/vble.c
parent3222786c5ad9f6ca94ca4cd80a4329a276d65aaa (diff)
downloadffmpeg-5ac1dd8e231987c022a860c6b1961b038a84b613.tar.gz
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/vble.c')
-rw-r--r--libavcodec/vble.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libavcodec/vble.c b/libavcodec/vble.c
index 032d9c2118..7598d306cc 100644
--- a/libavcodec/vble.c
+++ b/libavcodec/vble.c
@@ -29,14 +29,14 @@
#define BITSTREAM_READER_LE
#include "avcodec.h"
#include "get_bits.h"
-#include "huffyuvdsp.h"
#include "internal.h"
+#include "lossless_videodsp.h"
#include "mathops.h"
#include "thread.h"
typedef struct VBLEContext {
AVCodecContext *avctx;
- HuffYUVDSPContext hdsp;
+ LLVidDSPContext llviddsp;
int size;
uint8_t *val; ///< This array first holds the lengths of vlc symbols and then their value.
@@ -102,8 +102,8 @@ static void vble_restore_plane(VBLEContext *ctx, AVFrame *pic,
if (i) {
left = 0;
left_top = dst[-stride];
- ctx->hdsp.add_hfyu_median_pred(dst, dst - stride, val,
- width, &left, &left_top);
+ ctx->llviddsp.add_median_pred(dst, dst - stride, val,
+ width, &left, &left_top);
} else {
dst[0] = val[0];
for (j = 1; j < width; j++)
@@ -185,7 +185,7 @@ static av_cold int vble_decode_init(AVCodecContext *avctx)
/* Stash for later use */
ctx->avctx = avctx;
- ff_huffyuvdsp_init(&ctx->hdsp);
+ ff_llviddsp_init(&ctx->llviddsp, avctx);
avctx->pix_fmt = AV_PIX_FMT_YUV420P;
avctx->bits_per_raw_sample = 8;