aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2021-04-29 01:04:21 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2021-04-29 01:04:21 +0000
commit6fd3b7a925d6832e28c07b284eb4721fd4a57bca (patch)
tree0a6b6083a9160f5e5af890a0ba657440b58d84ea
parent6ad87b31df962d8913aa122c5b0c7c5deb055f70 (diff)
parentc1a23193287597aa51b8edb3f6c79bccd8c3125d (diff)
downloadlibhevc-6fd3b7a925d6832e28c07b284eb4721fd4a57bca.tar.gz
Snap for 7321546 from c1a23193287597aa51b8edb3f6c79bccd8c3125d to sc-release
Change-Id: I57daf4d440bcd5ac1ef0a8ae2e361cd6a0eeab1f
-rw-r--r--encoder/ihevce_plugin.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/encoder/ihevce_plugin.c b/encoder/ihevce_plugin.c
index df7cee0..9dbf376 100644
--- a/encoder/ihevce_plugin.c
+++ b/encoder/ihevce_plugin.c
@@ -735,6 +735,13 @@ IHEVCE_PLUGIN_STATUS_T ihevce_init(ihevce_static_cfg_params_t *ps_params, void *
MIN(MAX_NUM_FRM_IN_GOP,
ps_ctxt->ps_static_cfg_prms->s_coding_tools_prms.i4_max_i_open_gop_period);
+ /* entropy sync is disabled if there is only one CTB row */
+ if(ps_ctxt->ps_static_cfg_prms->s_src_prms.i4_height <=
+ (1 << ps_ctxt->ps_static_cfg_prms->s_config_prms.i4_max_log2_cu_size))
+ {
+ ps_ctxt->ps_static_cfg_prms->s_coding_tools_prms.i4_enable_entropy_sync = 0;
+ }
+
/* --------------------------------------------------------------------- */
/* High Level Encoder context init */
/* --------------------------------------------------------------------- */