@@ -282,6 +282,7 @@ WORD32 ihevce_ent_coding_thrd(void *pv_frm_proc_thrd_ctxt)
282282
283283 PROFILE_START (
284284 & ps_hle_ctxt -> profile_entropy [ps_enc_ctxt -> i4_resolution_id ][i4_bitrate_instance_num ]);
285+ #ifndef DISABLE_SEI
285286 /* Content Light Level Information */
286287 {
287288 ps_curr_inp -> s_sei .i1_sei_cll_enable =
@@ -291,6 +292,7 @@ WORD32 ihevce_ent_coding_thrd(void *pv_frm_proc_thrd_ctxt)
291292 ps_curr_inp -> s_sei .s_cll_info_sei_params .u2_sei_avg_cll =
292293 ps_enc_ctxt -> ps_stat_prms -> s_out_strm_prms .u2_sei_avg_cll ;
293294 }
295+ #endif
294296 if ((NULL != ps_curr_out ) && (NULL != ps_curr_inp ))
295297
296298 {
@@ -370,6 +372,7 @@ WORD32 ihevce_ent_coding_thrd(void *pv_frm_proc_thrd_ctxt)
370372
371373 if (1 == ps_curr_inp -> i4_frm_proc_valid_flag )
372374 {
375+ #ifndef DISABLE_SEI
373376 /* --- Init of buffering period and pic timing SEI related params ----*/
374377 {
375378 UWORD32 i4_dbf , i4_buffersize , i4_trgt_bit_rate ;
@@ -414,10 +417,12 @@ WORD32 ihevce_ent_coding_thrd(void *pv_frm_proc_thrd_ctxt)
414417 ps_curr_inp -> ps_sps -> ai1_sps_max_num_reorder_pics [0 ] +
415418 ps_curr_inp -> i4_display_num - u4_encode_frm_num ;
416419 }
420+ #endif
417421 /* call the core entropy coding entry point function */
418422 entropy_error = ihevce_entropy_encode_frame (
419423 pv_entropy_hdl , ps_curr_out , ps_curr_inp , ps_curr_out -> i4_bitstream_buf_size );
420424
425+ #ifndef DISABLE_SEI
421426 /* ----------------- Derivation of u4_au_cpb_removal_delay_minus1 --------------------------------*/
422427 if (ps_curr_inp -> s_sei .i1_buf_period_params_present_flag )
423428 {
@@ -438,6 +443,7 @@ WORD32 ihevce_ent_coding_thrd(void *pv_frm_proc_thrd_ctxt)
438443 u4_au_cpb_removal_delay_minus1 = (u4_au_cpb_removal_delay_minus1 + 1 ) &
439444 u4_max_cpb_removal_delay_val ;
440445 }
446+ #endif
441447 /* Debug prints for entropy error */
442448 if (entropy_error )
443449 {
@@ -449,13 +455,20 @@ WORD32 ihevce_ent_coding_thrd(void *pv_frm_proc_thrd_ctxt)
449455 /* acquire mutex lock for rate control calls */
450456 osal_mutex_lock (ps_enc_ctxt -> pv_rc_mutex_lock_hdl );
451457
458+ UWORD32 removal_delay_minus1 ;
459+ #ifndef DISABLE_SEI
460+ removal_delay_minus1 =
461+ ps_curr_inp -> s_sei .s_pic_timing_sei_params .u4_au_cpb_removal_delay_minus1 ;
462+ #else
463+ removal_delay_minus1 = 0 ;
464+ #endif
452465 /* get frame rate/bit rate/max buffer size */
453466 ihevce_vbv_compliance_frame_level_update (
454467 ps_enc_ctxt -> s_module_ctxt .apv_rc_ctxt [i4_bitrate_instance_num ],
455468 (ps_curr_out -> i4_bytes_generated << 3 ),
456469 i4_resolution_id ,
457470 i4_bitrate_instance_num ,
458- ps_curr_inp -> s_sei . s_pic_timing_sei_params . u4_au_cpb_removal_delay_minus1 );
471+ removal_delay_minus1 );
459472 /* release mutex lock after rate control calls */
460473 osal_mutex_unlock (ps_enc_ctxt -> pv_rc_mutex_lock_hdl );
461474 }
0 commit comments