Commit 896fce85 authored by Derek Buitenhuis's avatar Derek Buitenhuis

Merge commit '15932389'

* commit '15932389':
  intrax8: Add a local BlockDSPContext and initialize it
Merged-by: 's avatarDerek Buitenhuis <derek.buitenhuis@gmail.com>
parents 52692eed 15932389
......@@ -2261,7 +2261,7 @@ faandct_deps="faan fdctdsp"
faanidct_deps="faan idctdsp"
h264dsp_select="startcode"
frame_thread_encoder_deps="encoders threads"
intrax8_select="idctdsp"
intrax8_select="blockdsp idctdsp"
mdct_select="fft"
me_cmp_select="fdctdsp idctdsp pixblockdsp"
mpeg_er_select="error_resilience"
......
......@@ -583,7 +583,7 @@ static int x8_decode_intra_mb(IntraX8Context *const w, const int chroma)
int sign;
av_assert2(w->orient < 12);
s->bdsp.clear_block(s->block[0]);
w->bdsp.clear_block(s->block[0]);
if (chroma)
dc_mode = 2;
......@@ -763,6 +763,7 @@ av_cold int ff_intrax8_common_init(AVCodecContext *avctx,
ff_wmv1_scantable[3]);
ff_intrax8dsp_init(&w->dsp);
ff_blockdsp_init(&w->bdsp, avctx);
return 0;
}
......
......@@ -19,6 +19,7 @@
#ifndef AVCODEC_INTRAX8_H
#define AVCODEC_INTRAX8_H
#include "blockdsp.h"
#include "get_bits.h"
#include "mpegvideo.h"
#include "idctdsp.h"
......@@ -44,6 +45,7 @@ typedef struct IntraX8Context {
MpegEncContext * s;
IntraX8DSPContext dsp;
IDCTDSPContext idsp;
BlockDSPContext bdsp;
int quant;
int dquant;
int qsum;
......
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