Commit 6976fcb6 authored by fotopoulou's avatar fotopoulou
Browse files

add BASOP operator

parent b0e7b682
Loading
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -4460,11 +4460,13 @@ void ivas_jbm_dec_prepare_renderer(
    Decoder_Struct *st_ivas /* i/o: IVAS decoder structure                                      */
)
{
    int16_t n, n_render_timeslots;
    Word16 n, n_render_timeslots, tmp;

    push_wmops( "ivas_jbm_dec_feed_tc_to_rendererer" );

    n_render_timeslots = st_ivas->hTcBuffer->n_samples_available / st_ivas->hTcBuffer->n_samples_granularity;
    /* n_render_timeslots = st_ivas->hTcBuffer->n_samples_available / st_ivas->hTcBuffer->n_samples_granularity; */
    tmp = BASOP_Util_Divide1616_Scale( st_ivas->hTcBuffer->n_samples_available, st_ivas->hTcBuffer->n_samples_granularity, &exp );
    n_render_timeslots = shr( tmp, sub( 15, exp ) ); // Q0


    IF( EQ_16( st_ivas->hTcBuffer->tc_buffer_mode, TC_BUFFER_MODE_BUFFER ) )