Commit 0687d3e9 authored by Steinar Midtskogen's avatar Steinar Midtskogen

CDEF: Add an early exit test at the decoder

This should give a slight speed-up for streams with CDEF disabled,
since it avoids having to test the same for every filter block.

BUG=aomedia:1108

Change-Id: I7f3f2ddfe5414ed1b4b6aafb5e28ae61df2cb79e
parent 8c2b913b
......@@ -3614,7 +3614,8 @@ void av1_decode_tg_tiles_and_wrapup(AV1Decoder *pbi, const uint8_t *data,
#if CONFIG_INTRABC
!(cm->allow_intrabc && NO_FILTER_FOR_IBC) &&
#endif // CONFIG_INTRABC
!cm->all_lossless) {
!cm->all_lossless &&
(cm->cdef_bits || cm->cdef_strengths[0] || cm->cdef_uv_strengths[0])) {
av1_cdef_frame(&pbi->cur_buf->buf, cm, &pbi->mb);
}
......
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