Commit db389cb8 authored by Johann's avatar Johann
Browse files

Make a local copy of the dequantized data

Multithreaded encoding was breaking at low bitrates

Please review/comment. Not sure if this is the best fix.

Change-Id: I87468c765372593fd865bc82e25121ebb8ca6af2
parent 16a8948c
......@@ -17,6 +17,10 @@
#include "blockd.h"
#include "onyxc_int.h"
#include "vpx_mem/vpx_mem.h"
static void eob_adjust(char *eobs, short *diff)
/* eob adjust.... the idct can only skip if both the dc and eob are zero */
......@@ -36,6 +40,10 @@ static void vp8_inverse_transform_mby(MACROBLOCKD *xd,
/* save the dc dequant constant in case it is overridden */
short dc_dequant_temp = DQC[0];
DECLARE_ALIGNED(16, short, local_dequant[16]);
if (xd->mode_info_context->mbmi.mode != SPLITMV)
/* do 2nd order transform on the dc block */
......@@ -51,11 +59,18 @@ static void vp8_inverse_transform_mby(MACROBLOCKD *xd,
eob_adjust(xd->eobs, xd->qcoeff);
DQC = local_dequant;
vpx_memcpy(DQC, xd->block[0].dequant,
/* override the dc dequant constant */
DQC[0] = 1;
DEQUANT_INVOKE (&rtcd->dequant, idct_add_y_block)
(xd->qcoeff, xd->block[0].dequant,
(xd->qcoeff, DQC,
xd->dst.y_stride, xd->eobs);
Supports Markdown
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