Loading lib_dec/lib_dec_fx.c +1 −14 Original line number Diff line number Diff line Loading @@ -704,20 +704,7 @@ ivas_error IVAS_DEC_EnableSplitRendering( static Word16 get_render_frame_size_ms( IVAS_RENDER_NUM_SUBFR render_num_subframes ) { IF( EQ_16( render_num_subframes, IVAS_RENDER_NUM_SUBFR_5MS ) ) { return ( 1000 / ( FRAMES_PER_SEC * IVAS_RENDER_NUM_SUBFR_5MS ) ); } ELSE IF( EQ_16( render_num_subframes, IVAS_RENDER_NUM_SUBFR_10MS ) ) { return ( ( 1000 / ( FRAMES_PER_SEC * IVAS_RENDER_NUM_SUBFR_10MS ) ) << 1 ); } ELSE IF( EQ_16( render_num_subframes, IVAS_RENDER_NUM_SUBFR_20MS ) ) { return ( ( 1000 / ( FRAMES_PER_SEC * IVAS_MAX_PARAM_SPATIAL_SUBFRAMES ) ) << 2 ); } return 0; return (int16_t) ( render_num_subframes * ( 1000 / ( FRAMES_PER_SEC * IVAS_MAX_PARAM_SPATIAL_SUBFRAMES ) ) ); } Loading Loading
lib_dec/lib_dec_fx.c +1 −14 Original line number Diff line number Diff line Loading @@ -704,20 +704,7 @@ ivas_error IVAS_DEC_EnableSplitRendering( static Word16 get_render_frame_size_ms( IVAS_RENDER_NUM_SUBFR render_num_subframes ) { IF( EQ_16( render_num_subframes, IVAS_RENDER_NUM_SUBFR_5MS ) ) { return ( 1000 / ( FRAMES_PER_SEC * IVAS_RENDER_NUM_SUBFR_5MS ) ); } ELSE IF( EQ_16( render_num_subframes, IVAS_RENDER_NUM_SUBFR_10MS ) ) { return ( ( 1000 / ( FRAMES_PER_SEC * IVAS_RENDER_NUM_SUBFR_10MS ) ) << 1 ); } ELSE IF( EQ_16( render_num_subframes, IVAS_RENDER_NUM_SUBFR_20MS ) ) { return ( ( 1000 / ( FRAMES_PER_SEC * IVAS_MAX_PARAM_SPATIAL_SUBFRAMES ) ) << 2 ); } return 0; return (int16_t) ( render_num_subframes * ( 1000 / ( FRAMES_PER_SEC * IVAS_MAX_PARAM_SPATIAL_SUBFRAMES ) ) ); } Loading