Process chroma component at bottom-right block
Process the sub8x8 chroma component at the bottom-right 8x8 block. Change-Id: I193f8cf2d6bdabb57983cbc66fe9722e5b396207
This commit is contained in:
Родитель
3f42908714
Коммит
e2db387a5b
|
@ -747,12 +747,23 @@ static INLINE int is_chroma_reference(int mi_row, int mi_col, BLOCK_SIZE bsize,
|
|||
#if CONFIG_CHROMA_2X2
|
||||
return 1;
|
||||
#endif
|
||||
|
||||
#if CONFIG_CHROMA_SUB8X8
|
||||
const int bw = mi_size_wide[bsize];
|
||||
const int bh = mi_size_high[bsize];
|
||||
|
||||
int ref_pos = ((mi_row & 0x01) || !(bh & 0x01) || !subsampling_y) &&
|
||||
((mi_col & 0x01) || !(bw & 0x01) || !subsampling_x);
|
||||
|
||||
return ref_pos;
|
||||
#else
|
||||
int ref_pos = !(((mi_row & 0x01) && subsampling_y) ||
|
||||
((mi_col & 0x01) && subsampling_x));
|
||||
|
||||
if (bsize >= BLOCK_8X8) ref_pos = 1;
|
||||
|
||||
return ref_pos;
|
||||
#endif
|
||||
}
|
||||
|
||||
static INLINE BLOCK_SIZE scale_chroma_bsize(BLOCK_SIZE bsize, int subsampling_x,
|
||||
|
|
Загрузка…
Ссылка в новой задаче