diff options
Diffstat (limited to 'libavcodec/lagarith.c')
-rw-r--r-- | libavcodec/lagarith.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libavcodec/lagarith.c b/libavcodec/lagarith.c index 93d1344..96a4b5c 100644 --- a/libavcodec/lagarith.c +++ b/libavcodec/lagarith.c @@ -30,8 +30,8 @@ #include "avcodec.h" #include "get_bits.h" #include "mathops.h" -#include "huffyuvdsp.h" #include "lagarithrac.h" +#include "lossless_videodsp.h" #include "thread.h" enum LagarithFrameType { @@ -50,7 +50,7 @@ enum LagarithFrameType { typedef struct LagarithContext { AVCodecContext *avctx; - HuffYUVDSPContext hdsp; + LLVidDSPContext llviddsp; int zeros; /**< number of consecutive zero bytes encountered */ int zeros_rem; /**< number of zero bytes remaining to output */ uint8_t *rgb_planes; @@ -260,7 +260,7 @@ static void lag_pred_line(LagarithContext *l, uint8_t *buf, if (!line) { /* Left prediction only for first line */ - L = l->hdsp.add_hfyu_left_pred(buf, buf, width, 0); + L = l->llviddsp.add_left_pred(buf, buf, width, 0); } else { /* Left pixel is actually prev_row[width] */ L = buf[width - stride - 1]; @@ -289,7 +289,7 @@ static void lag_pred_line_yuy2(LagarithContext *l, uint8_t *buf, L= buf[0]; if (is_luma) buf[0] = 0; - l->hdsp.add_hfyu_left_pred(buf, buf, width, 0); + l->llviddsp.add_left_pred(buf, buf, width, 0); if (is_luma) buf[0] = L; return; @@ -312,7 +312,7 @@ static void lag_pred_line_yuy2(LagarithContext *l, uint8_t *buf, } else { TL = buf[width - (2 * stride) - 1]; L = buf[width - stride - 1]; - l->hdsp.add_hfyu_median_pred(buf, buf - stride, buf, width, &L, &TL); + l->llviddsp.add_median_pred(buf, buf - stride, buf, width, &L, &TL); } } @@ -725,7 +725,7 @@ static av_cold int lag_decode_init(AVCodecContext *avctx) LagarithContext *l = avctx->priv_data; l->avctx = avctx; - ff_huffyuvdsp_init(&l->hdsp); + ff_llviddsp_init(&l->llviddsp, avctx); return 0; } |