Commit e784b3f2 authored by Luc Trudeau's avatar Luc Trudeau Committed by David Michael Barr

[CFL] Store Reconstructed Pixels Only If Decoded UV_MODE=CFL

Decoder speed up, only store the luma reconstructed pixels when the
UV_MODE=UV_CFL_PRED.

Change-Id: If22e8e43311c55d7935d71bedcdaf01ffad2fee0
parent efd8af25
......@@ -518,7 +518,7 @@ static void predict_and_reconstruct_intra_block(
#endif // !CONFIG_PVQ
}
#if CONFIG_CFL
if (plane == AOM_PLANE_Y) {
if (plane == AOM_PLANE_Y && xd->cfl->store_y) {
struct macroblockd_plane *const pd = &xd->plane[plane];
#if CONFIG_CHROMA_SUB8X8
const BLOCK_SIZE plane_bsize =
......
......@@ -1188,6 +1188,9 @@ static void read_intra_frame_mode_info(AV1_COMMON *const cm,
// TODO(ltrudeau) support PALETTE
if (mbmi->uv_mode == UV_CFL_PRED) {
mbmi->cfl_alpha_idx = read_cfl_alphas(ec_ctx, r, &mbmi->cfl_alpha_signs);
xd->cfl->store_y = 1;
} else {
xd->cfl->store_y = 0;
}
#endif // CONFIG_CFL
......@@ -1793,6 +1796,9 @@ static void read_intra_block_mode_info(AV1_COMMON *const cm, const int mi_row,
if (mbmi->uv_mode == UV_CFL_PRED) {
mbmi->cfl_alpha_idx =
read_cfl_alphas(xd->tile_ctx, r, &mbmi->cfl_alpha_signs);
xd->cfl->store_y = 1;
} else {
xd->cfl->store_y = 0;
}
#endif // CONFIG_CFL
......
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