Commit ffc00df0 authored by Alexandra Hájková's avatar Alexandra Hájková Committed by Diego Biurrun

cavs: Convert to the new bitstream reader

parent 0c89ff82
......@@ -26,8 +26,8 @@
*/
#include "avcodec.h"
#include "get_bits.h"
#include "golomb_legacy.h"
#include "bitstream.h"
#include "golomb.h"
#include "h264chroma.h"
#include "idctdsp.h"
#include "internal.h"
......@@ -603,8 +603,8 @@ void ff_cavs_mv(AVSContext *h, enum cavs_mv_loc nP, enum cavs_mv_loc nC,
mv_pred_median(h, mvP, mvA, mvB, mvC);
if (mode < MV_PRED_PSKIP) {
mvP->x += get_se_golomb(&h->gb);
mvP->y += get_se_golomb(&h->gb);
mvP->x += get_se_golomb(&h->bc);
mvP->y += get_se_golomb(&h->bc);
}
set_mvs(mvP, size);
}
......
......@@ -22,11 +22,11 @@
#ifndef AVCODEC_CAVS_H
#define AVCODEC_CAVS_H
#include "bitstream.h"
#include "cavsdsp.h"
#include "blockdsp.h"
#include "h264chroma.h"
#include "idctdsp.h"
#include "get_bits.h"
#include "videodsp.h"
#define SLICE_MAX_START_CODE 0x000001af
......@@ -167,7 +167,7 @@ typedef struct AVSContext {
IDCTDSPContext idsp;
VideoDSPContext vdsp;
CAVSDSPContext cdsp;
GetBitContext gb;
BitstreamContext bc;
AVSFrame cur; ///< currently decoded frame
AVSFrame DPB[2]; ///< reference frames
int dist[2]; ///< temporal distances from current frame to ref frames
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment