Merge "vp9: Fix for non-rd pickmode for high-bitdepth build."

This commit is contained in:
Marco Paniconi
2017-02-21 05:37:22 +00:00
committed by Gerrit Code Review

View File

@@ -636,17 +636,19 @@ static void block_yrd(VP9_COMP *cpi, MACROBLOCK *x, RD_COST *this_rdc,
#if CONFIG_VP9_HIGHBITDEPTH #if CONFIG_VP9_HIGHBITDEPTH
// TODO(jingning): Implement the high bit-depth Hadamard transforms and // TODO(jingning): Implement the high bit-depth Hadamard transforms and
// remove this check condition. // remove this check condition.
// TODO(marpan): Disable this for 8 bit once optimizations for the functions // TODO(marpan): Use this path (model_rd) for 8bit under certain conditions
// below are merged in. // for now, as the vp9_quantize_fp below for highbitdepth build is slow.
// if (xd->bd != 8) { if (xd->bd != 8 ||
unsigned int var_y, sse_y; (cpi->oxcf.speed > 5 && cpi->common.frame_type != KEY_FRAME &&
(void)tx_size; bsize < BLOCK_32X32)) {
model_rd_for_sb_y(cpi, bsize, x, xd, &this_rdc->rate, &this_rdc->dist, &var_y, unsigned int var_y, sse_y;
&sse_y); (void)tx_size;
*sse = INT_MAX; model_rd_for_sb_y(cpi, bsize, x, xd, &this_rdc->rate, &this_rdc->dist,
*skippable = 0; &var_y, &sse_y);
return; *sse = INT_MAX;
// } *skippable = 0;
return;
}
#endif #endif
(void)cpi; (void)cpi;