Loading apps/encoder.c +3 −0 Original line number Diff line number Diff line Loading @@ -885,6 +885,8 @@ int main( goto cleanup; } if ( frame >= 50 && frame < 60 ) { /* write bitstream */ if ( ( error = BS_Writer_WriteFrame_short( hBsWriter, bitStream, numBits, totalBitrate ) ) != IVAS_ERR_OK ) { Loading @@ -892,6 +894,7 @@ int main( goto cleanup; } } } frame++; if ( !arg.quietModeEnabled ) Loading lib_dec/ivas_init_dec.c +41 −0 Original line number Diff line number Diff line Loading @@ -131,11 +131,14 @@ ivas_error ivas_dec_get_format( !( st_ivas->ivas_format == MASA_FORMAT && st_ivas->last_ivas_format == MASA_ISM_FORMAT ) && !( st_ivas->ivas_format == MASA_ISM_FORMAT && st_ivas->last_ivas_format == MASA_FORMAT ) ) { #ifndef FIX_FLOAT_1539_G192_FORMAT_SWITCH if ( Opt_tsm ) { #endif st_ivas->restartNeeded = 1; return IVAS_ERR_OK; #ifndef FIX_FLOAT_1539_G192_FORMAT_SWITCH } else { Loading @@ -144,6 +147,7 @@ ivas_error ivas_dec_get_format( #endif return IVAS_ERROR( IVAS_ERR_INTERNAL_FATAL, "Wrong number of objects signalled!" ); } #endif } /*-------------------------------------------------------------------* Loading Loading @@ -177,11 +181,14 @@ ivas_error ivas_dec_get_format( if ( st_ivas->ini_frame > 0 && nchan_ism != st_ivas->nchan_ism ) { #ifndef FIX_FLOAT_1539_G192_FORMAT_SWITCH if ( Opt_tsm ) { #endif st_ivas->restartNeeded = 1; return IVAS_ERR_OK; #ifndef FIX_FLOAT_1539_G192_FORMAT_SWITCH } else { Loading @@ -190,6 +197,7 @@ ivas_error ivas_dec_get_format( #endif return IVAS_ERROR( IVAS_ERR_INTERNAL_FATAL, "Wrong number of objects signalled!" ); } #endif } st_ivas->nchan_ism = nchan_ism; Loading @@ -209,10 +217,14 @@ ivas_error ivas_dec_get_format( if ( st_ivas->ini_frame > 0 && sba_planar != st_ivas->sba_planar ) { #ifndef FIX_FLOAT_1539_G192_FORMAT_SWITCH if ( Opt_tsm ) { #endif st_ivas->restartNeeded = 1; return IVAS_ERR_OK; #ifndef FIX_FLOAT_1539_G192_FORMAT_SWITCH } else { Loading @@ -221,6 +233,7 @@ ivas_error ivas_dec_get_format( #endif return IVAS_ERROR( IVAS_ERR_INTERNAL_FATAL, "Wrong SBA planar flag signalled!" ); } #endif } /* read Ambisonic (SBA) order */ Loading @@ -229,11 +242,14 @@ ivas_error ivas_dec_get_format( if ( st_ivas->ini_frame > 0 && sba_order != st_ivas->sba_order ) { #ifndef FIX_FLOAT_1539_G192_FORMAT_SWITCH if ( Opt_tsm ) { #endif st_ivas->restartNeeded = 1; return IVAS_ERR_OK; #ifndef FIX_FLOAT_1539_G192_FORMAT_SWITCH } else { Loading @@ -242,6 +258,7 @@ ivas_error ivas_dec_get_format( #endif return IVAS_ERROR( IVAS_ERR_INTERNAL_FATAL, "Wrong SBA order signalled!" ); } #endif } sba_analysis_order = ivas_sba_get_analysis_order( ivas_total_brate, sba_order ); Loading Loading @@ -305,11 +322,14 @@ ivas_error ivas_dec_get_format( if ( st_ivas->ini_frame > 0 && nchan_ism != st_ivas->nchan_ism ) { #ifndef FIX_FLOAT_1539_G192_FORMAT_SWITCH if ( Opt_tsm ) { #endif st_ivas->restartNeeded = 1; return IVAS_ERR_OK; #ifndef FIX_FLOAT_1539_G192_FORMAT_SWITCH } else { Loading @@ -318,6 +338,7 @@ ivas_error ivas_dec_get_format( #endif return IVAS_ERROR( IVAS_ERR_INTERNAL_FATAL, "Wrong number of objects signalled!" ); } #endif } st_ivas->nchan_ism = nchan_ism; Loading @@ -332,11 +353,14 @@ ivas_error ivas_dec_get_format( if ( st_ivas->ini_frame > 0 && nchan_ism != st_ivas->nchan_ism ) { #ifndef FIX_FLOAT_1539_G192_FORMAT_SWITCH if ( Opt_tsm ) { #endif st_ivas->restartNeeded = 1; return IVAS_ERR_OK; #ifndef FIX_FLOAT_1539_G192_FORMAT_SWITCH } else { Loading @@ -345,6 +369,7 @@ ivas_error ivas_dec_get_format( #endif return IVAS_ERROR( IVAS_ERR_INTERNAL_FATAL, "Wrong number of objects signalled!" ); } #endif } st_ivas->nchan_ism = nchan_ism; Loading @@ -356,11 +381,14 @@ ivas_error ivas_dec_get_format( if ( st_ivas->ini_frame > 0 && nchan_ism != st_ivas->nchan_ism ) { #ifndef FIX_FLOAT_1539_G192_FORMAT_SWITCH if ( Opt_tsm ) { #endif st_ivas->restartNeeded = 1; return IVAS_ERR_OK; #ifndef FIX_FLOAT_1539_G192_FORMAT_SWITCH } else { Loading @@ -369,6 +397,7 @@ ivas_error ivas_dec_get_format( #endif return IVAS_ERROR( IVAS_ERR_INTERNAL_FATAL, "Wrong number of objects signalled!" ); } #endif } st_ivas->nchan_ism = nchan_ism; Loading @@ -392,11 +421,14 @@ ivas_error ivas_dec_get_format( if ( st_ivas->ini_frame > 0 && sba_order != st_ivas->sba_order ) { #ifndef FIX_FLOAT_1539_G192_FORMAT_SWITCH if ( Opt_tsm ) { #endif st_ivas->restartNeeded = 1; return IVAS_ERR_OK; #ifndef FIX_FLOAT_1539_G192_FORMAT_SWITCH } else { Loading @@ -405,6 +437,7 @@ ivas_error ivas_dec_get_format( #endif return IVAS_ERROR( IVAS_ERR_INTERNAL_FATAL, "Wrong SBA order signalled!" ); } #endif } st_ivas->ism_mode = ivas_osba_ism_mode_select( ivas_total_brate, st_ivas->nchan_ism ); Loading @@ -429,11 +462,14 @@ ivas_error ivas_dec_get_format( if ( st_ivas->ini_frame > 0 && st_ivas->transport_config != signaled_config ) { #ifndef FIX_FLOAT_1539_G192_FORMAT_SWITCH if ( Opt_tsm ) { #endif st_ivas->restartNeeded = 1; return IVAS_ERR_OK; #ifndef FIX_FLOAT_1539_G192_FORMAT_SWITCH } else { Loading @@ -442,6 +478,7 @@ ivas_error ivas_dec_get_format( #endif return IVAS_ERROR( IVAS_ERR_INTERNAL_FATAL, "wrong MC configuration signalled!" ); } #endif } st_ivas->mc_mode = ivas_mc_mode_select( ivas_mc_map_output_config_to_mc_ls_setup( signaled_config ), ivas_total_brate ); Loading Loading @@ -523,11 +560,14 @@ ivas_error ivas_dec_get_format( if ( st_ivas->ini_frame > 0 && nchan_ism != st_ivas->nchan_ism ) { #ifndef FIX_FLOAT_1539_G192_FORMAT_SWITCH if ( Opt_tsm ) { #endif st_ivas->restartNeeded = 1; return IVAS_ERR_OK; #ifndef FIX_FLOAT_1539_G192_FORMAT_SWITCH } else { Loading @@ -536,6 +576,7 @@ ivas_error ivas_dec_get_format( #endif return IVAS_ERROR( IVAS_ERR_INTERNAL_FATAL, "Wrong number of objects signalled!" ); } #endif } st_ivas->nchan_ism = nchan_ism; Loading Loading
apps/encoder.c +3 −0 Original line number Diff line number Diff line Loading @@ -885,6 +885,8 @@ int main( goto cleanup; } if ( frame >= 50 && frame < 60 ) { /* write bitstream */ if ( ( error = BS_Writer_WriteFrame_short( hBsWriter, bitStream, numBits, totalBitrate ) ) != IVAS_ERR_OK ) { Loading @@ -892,6 +894,7 @@ int main( goto cleanup; } } } frame++; if ( !arg.quietModeEnabled ) Loading
lib_dec/ivas_init_dec.c +41 −0 Original line number Diff line number Diff line Loading @@ -131,11 +131,14 @@ ivas_error ivas_dec_get_format( !( st_ivas->ivas_format == MASA_FORMAT && st_ivas->last_ivas_format == MASA_ISM_FORMAT ) && !( st_ivas->ivas_format == MASA_ISM_FORMAT && st_ivas->last_ivas_format == MASA_FORMAT ) ) { #ifndef FIX_FLOAT_1539_G192_FORMAT_SWITCH if ( Opt_tsm ) { #endif st_ivas->restartNeeded = 1; return IVAS_ERR_OK; #ifndef FIX_FLOAT_1539_G192_FORMAT_SWITCH } else { Loading @@ -144,6 +147,7 @@ ivas_error ivas_dec_get_format( #endif return IVAS_ERROR( IVAS_ERR_INTERNAL_FATAL, "Wrong number of objects signalled!" ); } #endif } /*-------------------------------------------------------------------* Loading Loading @@ -177,11 +181,14 @@ ivas_error ivas_dec_get_format( if ( st_ivas->ini_frame > 0 && nchan_ism != st_ivas->nchan_ism ) { #ifndef FIX_FLOAT_1539_G192_FORMAT_SWITCH if ( Opt_tsm ) { #endif st_ivas->restartNeeded = 1; return IVAS_ERR_OK; #ifndef FIX_FLOAT_1539_G192_FORMAT_SWITCH } else { Loading @@ -190,6 +197,7 @@ ivas_error ivas_dec_get_format( #endif return IVAS_ERROR( IVAS_ERR_INTERNAL_FATAL, "Wrong number of objects signalled!" ); } #endif } st_ivas->nchan_ism = nchan_ism; Loading @@ -209,10 +217,14 @@ ivas_error ivas_dec_get_format( if ( st_ivas->ini_frame > 0 && sba_planar != st_ivas->sba_planar ) { #ifndef FIX_FLOAT_1539_G192_FORMAT_SWITCH if ( Opt_tsm ) { #endif st_ivas->restartNeeded = 1; return IVAS_ERR_OK; #ifndef FIX_FLOAT_1539_G192_FORMAT_SWITCH } else { Loading @@ -221,6 +233,7 @@ ivas_error ivas_dec_get_format( #endif return IVAS_ERROR( IVAS_ERR_INTERNAL_FATAL, "Wrong SBA planar flag signalled!" ); } #endif } /* read Ambisonic (SBA) order */ Loading @@ -229,11 +242,14 @@ ivas_error ivas_dec_get_format( if ( st_ivas->ini_frame > 0 && sba_order != st_ivas->sba_order ) { #ifndef FIX_FLOAT_1539_G192_FORMAT_SWITCH if ( Opt_tsm ) { #endif st_ivas->restartNeeded = 1; return IVAS_ERR_OK; #ifndef FIX_FLOAT_1539_G192_FORMAT_SWITCH } else { Loading @@ -242,6 +258,7 @@ ivas_error ivas_dec_get_format( #endif return IVAS_ERROR( IVAS_ERR_INTERNAL_FATAL, "Wrong SBA order signalled!" ); } #endif } sba_analysis_order = ivas_sba_get_analysis_order( ivas_total_brate, sba_order ); Loading Loading @@ -305,11 +322,14 @@ ivas_error ivas_dec_get_format( if ( st_ivas->ini_frame > 0 && nchan_ism != st_ivas->nchan_ism ) { #ifndef FIX_FLOAT_1539_G192_FORMAT_SWITCH if ( Opt_tsm ) { #endif st_ivas->restartNeeded = 1; return IVAS_ERR_OK; #ifndef FIX_FLOAT_1539_G192_FORMAT_SWITCH } else { Loading @@ -318,6 +338,7 @@ ivas_error ivas_dec_get_format( #endif return IVAS_ERROR( IVAS_ERR_INTERNAL_FATAL, "Wrong number of objects signalled!" ); } #endif } st_ivas->nchan_ism = nchan_ism; Loading @@ -332,11 +353,14 @@ ivas_error ivas_dec_get_format( if ( st_ivas->ini_frame > 0 && nchan_ism != st_ivas->nchan_ism ) { #ifndef FIX_FLOAT_1539_G192_FORMAT_SWITCH if ( Opt_tsm ) { #endif st_ivas->restartNeeded = 1; return IVAS_ERR_OK; #ifndef FIX_FLOAT_1539_G192_FORMAT_SWITCH } else { Loading @@ -345,6 +369,7 @@ ivas_error ivas_dec_get_format( #endif return IVAS_ERROR( IVAS_ERR_INTERNAL_FATAL, "Wrong number of objects signalled!" ); } #endif } st_ivas->nchan_ism = nchan_ism; Loading @@ -356,11 +381,14 @@ ivas_error ivas_dec_get_format( if ( st_ivas->ini_frame > 0 && nchan_ism != st_ivas->nchan_ism ) { #ifndef FIX_FLOAT_1539_G192_FORMAT_SWITCH if ( Opt_tsm ) { #endif st_ivas->restartNeeded = 1; return IVAS_ERR_OK; #ifndef FIX_FLOAT_1539_G192_FORMAT_SWITCH } else { Loading @@ -369,6 +397,7 @@ ivas_error ivas_dec_get_format( #endif return IVAS_ERROR( IVAS_ERR_INTERNAL_FATAL, "Wrong number of objects signalled!" ); } #endif } st_ivas->nchan_ism = nchan_ism; Loading @@ -392,11 +421,14 @@ ivas_error ivas_dec_get_format( if ( st_ivas->ini_frame > 0 && sba_order != st_ivas->sba_order ) { #ifndef FIX_FLOAT_1539_G192_FORMAT_SWITCH if ( Opt_tsm ) { #endif st_ivas->restartNeeded = 1; return IVAS_ERR_OK; #ifndef FIX_FLOAT_1539_G192_FORMAT_SWITCH } else { Loading @@ -405,6 +437,7 @@ ivas_error ivas_dec_get_format( #endif return IVAS_ERROR( IVAS_ERR_INTERNAL_FATAL, "Wrong SBA order signalled!" ); } #endif } st_ivas->ism_mode = ivas_osba_ism_mode_select( ivas_total_brate, st_ivas->nchan_ism ); Loading @@ -429,11 +462,14 @@ ivas_error ivas_dec_get_format( if ( st_ivas->ini_frame > 0 && st_ivas->transport_config != signaled_config ) { #ifndef FIX_FLOAT_1539_G192_FORMAT_SWITCH if ( Opt_tsm ) { #endif st_ivas->restartNeeded = 1; return IVAS_ERR_OK; #ifndef FIX_FLOAT_1539_G192_FORMAT_SWITCH } else { Loading @@ -442,6 +478,7 @@ ivas_error ivas_dec_get_format( #endif return IVAS_ERROR( IVAS_ERR_INTERNAL_FATAL, "wrong MC configuration signalled!" ); } #endif } st_ivas->mc_mode = ivas_mc_mode_select( ivas_mc_map_output_config_to_mc_ls_setup( signaled_config ), ivas_total_brate ); Loading Loading @@ -523,11 +560,14 @@ ivas_error ivas_dec_get_format( if ( st_ivas->ini_frame > 0 && nchan_ism != st_ivas->nchan_ism ) { #ifndef FIX_FLOAT_1539_G192_FORMAT_SWITCH if ( Opt_tsm ) { #endif st_ivas->restartNeeded = 1; return IVAS_ERR_OK; #ifndef FIX_FLOAT_1539_G192_FORMAT_SWITCH } else { Loading @@ -536,6 +576,7 @@ ivas_error ivas_dec_get_format( #endif return IVAS_ERROR( IVAS_ERR_INTERNAL_FATAL, "Wrong number of objects signalled!" ); } #endif } st_ivas->nchan_ism = nchan_ism; Loading