Commit edc62f74 authored by Jingning Han's avatar Jingning Han
Browse files

Fix chroma intra prediction reference check

Fix the intra prediction boundary availability check for chroma
components. Such intricacy is due to the re-schedule of sub8x8
chroma coding block to avoid 2x2 prediction and transform size.

Change-Id: I4a2dff8743cf78af8dfb90265019e8d1222ed734
parent 8efdbc8b
......@@ -1884,7 +1884,7 @@ static void predict_square_intra_block(const MACROBLOCKD *xd, int wpx, int hpx,
const uint8_t *ref, int ref_stride,
uint8_t *dst, int dst_stride,
int col_off, int row_off, int plane) {
const BLOCK_SIZE bsize = xd->mi[0]->mbmi.sb_type;
BLOCK_SIZE bsize = xd->mi[0]->mbmi.sb_type;
const struct macroblockd_plane *const pd = &xd->plane[plane];
const int txw = tx_size_wide_unit[tx_size];
const int have_top = row_off || xd->up_available;
......@@ -1909,6 +1909,12 @@ static void predict_square_intra_block(const MACROBLOCKD *xd, int wpx, int hpx,
const PARTITION_TYPE partition = xd->mi[0]->mbmi.partition;
// force 4x4 chroma component block size.
if (plane && bsize < BLOCK_8X8) bsize = BLOCK_8X8;
const int have_right =
av1_has_right(bsize, mi_row, mi_col, right_available,
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