Commit b8eed01d authored by Jingning Han's avatar Jingning Han

Use scale_chroma_bsize() function predict_square_intra_block()

Change-Id: Iacc9fd0ddb58066e914f831f8fadc5e3519fd8c4
parent a8764951
......@@ -2182,14 +2182,7 @@ static void predict_square_intra_block(const MACROBLOCKD *xd, int wpx, int hpx,
#if CONFIG_CB4X4 && !CONFIG_CHROMA_2X2
// force 4x4 chroma component block size.
if (plane && bsize < BLOCK_8X8) {
if (pd->subsampling_x == 1 && pd->subsampling_y == 1)
bsize = BLOCK_8X8;
else if (pd->subsampling_x == 1)
bsize = BLOCK_8X4;
else if (pd->subsampling_y == 1)
bsize = BLOCK_4X8;
}
bsize = scale_chroma_bsize(bsize, pd->subsampling_x, pd->subsampling_y);
#endif
const int have_right =
......
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