Loading .gitlab-ci.yml +14 −41 Original line number Diff line number Diff line Loading @@ -305,7 +305,7 @@ self-test-on-merge-request: ### analyse test output # some helper variables - "|| true" to prevent failures from grep not finding anything - evs_non_be_flag=$(echo $CI_MERGE_REQUEST_TITLE | grep -c --ignore-case "\[evs[ -]non[ -]*be\]") || true - evs_non_be_flag=$(echo $CI_MERGE_REQUEST_TITLE | grep -c --ignore-case "\[evs[ -]*non[ -]*be\]") || true - non_be_flag=$(echo $CI_MERGE_REQUEST_TITLE | grep -c --ignore-case "\[non[ -]*be\]") || true - run_errors=$(cat test_output.txt test_output_evs.txt | grep -c "test conditions had run errors") || true - bitexact=$(cat test_output.txt | grep -c "All [0-9]* tests are bitexact") || true Loading Loading @@ -492,6 +492,11 @@ codec-comparison-on-main-push: stage: test tags: - sanitizer_test_main artifacts: name: "$CI_JOB_NAME--main--sha-$CI_COMMIT_SHORT_SHA" when: always paths: - ep_015.g192 sanitizer-test-mono: extends: .sanitizer-test-template Loading Loading @@ -555,11 +560,7 @@ sanitizer-test-ism4: - python3 ci/run_scheduled_sanitizer_test.py ISM4 $OUT_FORMATS_CHANNEL_BASED $OUT_FORMATS_SCENE_BASED $OUT_FORMATS_BINAURAL EXT --tests $SANITIZER_TESTS sanitizer-test-mc-5_1: extends: - .test-job-linux-needs-testv-dir stage: test tags: - sanitizer_test_main extends: .sanitizer-test-template rules: - if: $IS_SANITIZER_TEST_RUN when: delayed Loading @@ -568,11 +569,7 @@ sanitizer-test-mc-5_1: - python3 ci/run_scheduled_sanitizer_test.py 5_1 $OUT_FORMATS_CHANNEL_BASED $OUT_FORMATS_SCENE_BASED $OUT_FORMATS_BINAURAL --tests $SANITIZER_TESTS sanitizer-test-mc-5_1_2: extends: - .test-job-linux-needs-testv-dir stage: test tags: - sanitizer_test_main extends: .sanitizer-test-template rules: - if: $IS_SANITIZER_TEST_RUN when: delayed Loading @@ -581,11 +578,7 @@ sanitizer-test-mc-5_1_2: - python3 ci/run_scheduled_sanitizer_test.py 5_1_2 $OUT_FORMATS_CHANNEL_BASED $OUT_FORMATS_SCENE_BASED $OUT_FORMATS_BINAURAL --tests $SANITIZER_TESTS sanitizer-test-mc-5_1_4: extends: - .test-job-linux-needs-testv-dir stage: test tags: - sanitizer_test_main extends: .sanitizer-test-template rules: - if: $IS_SANITIZER_TEST_RUN when: delayed Loading @@ -594,11 +587,7 @@ sanitizer-test-mc-5_1_4: - python3 ci/run_scheduled_sanitizer_test.py 5_1_4 $OUT_FORMATS_CHANNEL_BASED $OUT_FORMATS_SCENE_BASED $OUT_FORMATS_BINAURAL --tests $SANITIZER_TESTS sanitizer-test-mc-7_1: extends: - .test-job-linux-needs-testv-dir stage: test tags: - sanitizer_test_main extends: .sanitizer-test-template rules: - if: $IS_SANITIZER_TEST_RUN when: delayed Loading @@ -607,11 +596,7 @@ sanitizer-test-mc-7_1: - python3 ci/run_scheduled_sanitizer_test.py 7_1 $OUT_FORMATS_CHANNEL_BASED $OUT_FORMATS_SCENE_BASED $OUT_FORMATS_BINAURAL --tests $SANITIZER_TESTS sanitizer-test-mc-7_1_4: extends: - .test-job-linux-needs-testv-dir stage: test tags: - sanitizer_test_main extends: .sanitizer-test-template rules: - if: $IS_SANITIZER_TEST_RUN when: delayed Loading @@ -620,11 +605,7 @@ sanitizer-test-mc-7_1_4: - python3 ci/run_scheduled_sanitizer_test.py 7_1_4 $OUT_FORMATS_CHANNEL_BASED $OUT_FORMATS_SCENE_BASED $OUT_FORMATS_BINAURAL --tests $SANITIZER_TESTS sanitizer-test-masa: extends: - .test-job-linux-needs-testv-dir stage: test tags: - sanitizer_test_main extends: .sanitizer-test-template rules: - if: $IS_SANITIZER_TEST_RUN when: delayed Loading @@ -633,11 +614,7 @@ sanitizer-test-masa: - python3 ci/run_scheduled_sanitizer_test.py MASA $OUT_FORMATS_CHANNEL_BASED $OUT_FORMATS_SCENE_BASED $OUT_FORMATS_BINAURAL EXT --tests $SANITIZER_TESTS sanitizer-test-sba: extends: - .test-job-linux-needs-testv-dir stage: test tags: - sanitizer_test_main extends: .sanitizer-test-template rules: - if: $IS_SANITIZER_TEST_RUN when: delayed Loading @@ -646,11 +623,7 @@ sanitizer-test-sba: - python3 ci/run_scheduled_sanitizer_test.py SBA $OUT_FORMATS_CHANNEL_BASED $OUT_FORMATS_SCENE_BASED $OUT_FORMATS_BINAURAL --tests $SANITIZER_TESTS sanitizer-test-planarsba: extends: - .test-job-linux-needs-testv-dir stage: test tags: - sanitizer_test_main extends: .sanitizer-test-template rules: - if: $IS_SANITIZER_TEST_RUN when: delayed Loading lib_com/bitstream.c +24 −0 Original line number Diff line number Diff line Loading @@ -1820,7 +1820,11 @@ ivas_error preview_indices( break; } } #ifdef ALIGN_SID_SIZE else if ( total_brate == IVAS_SID_5k2 ) #else else if ( total_brate == IVAS_SID_4k4 ) #endif { /* read SID format */ st_ivas->sid_format = 0; Loading Loading @@ -1884,6 +1888,7 @@ ivas_error preview_indices( return IVAS_ERROR( IVAS_ERR_INTERNAL_FATAL, "Invalid value %c found in SID format field.", st_ivas->sid_format ); } } #ifndef ALIGN_SID_SIZE else if ( total_brate == IVAS_SID_5k ) { /* SBA SID frame */ Loading @@ -1892,6 +1897,7 @@ ivas_error preview_indices( st_ivas->sba_mode = SBA_MODE_SPAR; st_ivas->element_mode_init = IVAS_SCE; } #endif /* only read element mode from active frames */ if ( is_DTXrate( total_brate ) == 0 ) Loading Loading @@ -2063,6 +2069,9 @@ ivas_error read_indices( } else if ( k == SIZE_IVAS_BRATE_TBL ) { #ifdef ALIGN_SID_SIZE return IVAS_ERROR( IVAS_ERR_INTERNAL_FATAL, "Error, illegal bitrate (%d) in the G.192 frame ! Exiting ! \n", total_brate ); #else /*temp change for SPAR DTX*/ if ( total_brate == IVAS_SID_5k ) { Loading @@ -2072,6 +2081,7 @@ ivas_error read_indices( { return IVAS_ERROR( IVAS_ERR_INTERNAL_FATAL, "Error, illegal bitrate (%d) in the G.192 frame ! Exiting ! \n", total_brate ); } #endif } else { Loading Loading @@ -2965,4 +2975,18 @@ void evs_dec_previewFrame( } #ifdef ALIGN_SID_SIZE void dtx_read_padding_bits( DEC_CORE_HANDLE st, int16_t num_bits ) { /* TODO: temporary hack, need to decide what to do with core-coder bitrate */ int32_t tmp; tmp = st->total_brate; st->total_brate = st->total_brate + num_bits * FRAMES_PER_SEC; get_next_indice( st, num_bits ); st->total_brate = tmp; } #endif #undef WMC_TOOL_MAN lib_com/ivas_cnst.h +13 −1 Original line number Diff line number Diff line Loading @@ -195,9 +195,12 @@ typedef enum /*----------------------------------------------------------------------------------* * IVAS Bitrates *----------------------------------------------------------------------------------*/ #ifdef ALIGN_SID_SIZE #define IVAS_SID_5k2 5200 /* SID frame bitrate */ #else #define IVAS_SID_4k4 4400 /* SID frame bitrate */ #define IVAS_SID_5k 5000 /* SBA SID frame bitrate */ #endif #define IVAS_13k2 13200 #define IVAS_16k4 16400 #define IVAS_24k4 24400 Loading @@ -215,8 +218,13 @@ typedef enum #define IVAS_BRATE_MAX IVAS_512k #ifdef ALIGN_SID_SIZE #define SIZE_IVAS_BRATE_TBL 16 #define IVAS_NUM_ACTIVE_BRATES (SIZE_IVAS_BRATE_TBL - 2) #else #define SIZE_IVAS_BRATE_TBL 17 #define IVAS_NUM_ACTIVE_BRATES (SIZE_IVAS_BRATE_TBL - 3) #endif /*----------------------------------------------------------------------------------* * IVAS modes : IVAS SCE, IVAS CPE modes (DFT, TD, MDCT stereo) Loading Loading @@ -1013,7 +1021,11 @@ enum /* IVAS PCA */ #define IVAS_PCA_NB_SUBR 20 /* 80 -> 0.25 ms, 40 -> 0.5 ms... */ #ifdef SPAR_SCALING_HARMONIZATION #define IVAS_PCA_COV_THRES 3e-5f #else #define IVAS_PCA_COV_THRES 1e-9f #endif #define IVAS_PCA_QUAT_EPS 1e-7f #define IVAS_PCA_QBITS 19 #define IVAS_PCA_N1 91 Loading lib_com/ivas_dirac_com.c +12 −0 Original line number Diff line number Diff line Loading @@ -323,7 +323,11 @@ ivas_error ivas_dirac_sba_config( if ( sba_mode == SBA_MODE_SPAR ) { /*map the bitrate for SID frame*/ #ifdef ALIGN_SID_SIZE if ( sba_total_brate == IVAS_SID_5k2 ) #else if ( sba_total_brate == IVAS_SID_5k ) #endif { if ( *element_mode == IVAS_SCE ) { Loading Loading @@ -420,11 +424,19 @@ ivas_error ivas_dirac_sba_config( return error; } #ifdef ALIGN_SID_SIZE if ( sba_total_brate > IVAS_SID_5k2 ) #else if ( sba_total_brate > IVAS_SID_4k4 ) #endif { *nchan_transport = ivas_dirac_getNumTransportChannels( sba_total_brate, sba_order, sba_planar ); } #ifdef ALIGN_SID_SIZE else if ( sba_total_brate == IVAS_SID_5k2 ) #else else if ( sba_total_brate == IVAS_SID_4k4 ) #endif { switch ( *element_mode ) { Loading lib_com/ivas_prot.h +17 −20 Original line number Diff line number Diff line Loading @@ -2780,8 +2780,12 @@ void reset_metadata_spatial( int32_t *total_brate, /* o : total bitrate */ const int32_t core_brate, /* i : core bitrate */ const int16_t nb_bits_metadata, /* i : number of meatdata bits */ #ifndef ALIGN_SID_SIZE const SBA_MODE sba_mode, /* i : SBA mode */ const int16_t element_mode /* i : element mode */ #else const SBA_MODE sba_mode /* i : SBA mode */ #endif ); /*! r: number of bits written */ Loading Loading @@ -4250,27 +4254,13 @@ int16_t ivas_map_num_decd_r_to_idx( const int16_t num_quant_points_decd_r ); /* Quantization utilities */ void ivas_quantise_real_values( #ifdef QUANTISE_REAL_FCN_CLEAN_UP const float *values, #else float **values, #endif const int16_t q_levels, const float min_value, const float max_value, #ifdef QUANTISE_REAL_FCN_CLEAN_UP int16_t *index, float *quant, #else int16_t **index, float **quant, #endif #ifdef QUANTISE_REAL_FCN_CLEAN_UP const int16_t dim #else const int16_t dim1, const int16_t dim2 #endif ); Loading Loading @@ -5482,4 +5472,11 @@ float rand_triangular_signed( /* clang-format on */ #ifdef ALIGN_SID_SIZE void dtx_read_padding_bits( DEC_CORE_HANDLE st, int16_t num_bits ); #endif #endif /* IVAS_PROT_H */ Loading
.gitlab-ci.yml +14 −41 Original line number Diff line number Diff line Loading @@ -305,7 +305,7 @@ self-test-on-merge-request: ### analyse test output # some helper variables - "|| true" to prevent failures from grep not finding anything - evs_non_be_flag=$(echo $CI_MERGE_REQUEST_TITLE | grep -c --ignore-case "\[evs[ -]non[ -]*be\]") || true - evs_non_be_flag=$(echo $CI_MERGE_REQUEST_TITLE | grep -c --ignore-case "\[evs[ -]*non[ -]*be\]") || true - non_be_flag=$(echo $CI_MERGE_REQUEST_TITLE | grep -c --ignore-case "\[non[ -]*be\]") || true - run_errors=$(cat test_output.txt test_output_evs.txt | grep -c "test conditions had run errors") || true - bitexact=$(cat test_output.txt | grep -c "All [0-9]* tests are bitexact") || true Loading Loading @@ -492,6 +492,11 @@ codec-comparison-on-main-push: stage: test tags: - sanitizer_test_main artifacts: name: "$CI_JOB_NAME--main--sha-$CI_COMMIT_SHORT_SHA" when: always paths: - ep_015.g192 sanitizer-test-mono: extends: .sanitizer-test-template Loading Loading @@ -555,11 +560,7 @@ sanitizer-test-ism4: - python3 ci/run_scheduled_sanitizer_test.py ISM4 $OUT_FORMATS_CHANNEL_BASED $OUT_FORMATS_SCENE_BASED $OUT_FORMATS_BINAURAL EXT --tests $SANITIZER_TESTS sanitizer-test-mc-5_1: extends: - .test-job-linux-needs-testv-dir stage: test tags: - sanitizer_test_main extends: .sanitizer-test-template rules: - if: $IS_SANITIZER_TEST_RUN when: delayed Loading @@ -568,11 +569,7 @@ sanitizer-test-mc-5_1: - python3 ci/run_scheduled_sanitizer_test.py 5_1 $OUT_FORMATS_CHANNEL_BASED $OUT_FORMATS_SCENE_BASED $OUT_FORMATS_BINAURAL --tests $SANITIZER_TESTS sanitizer-test-mc-5_1_2: extends: - .test-job-linux-needs-testv-dir stage: test tags: - sanitizer_test_main extends: .sanitizer-test-template rules: - if: $IS_SANITIZER_TEST_RUN when: delayed Loading @@ -581,11 +578,7 @@ sanitizer-test-mc-5_1_2: - python3 ci/run_scheduled_sanitizer_test.py 5_1_2 $OUT_FORMATS_CHANNEL_BASED $OUT_FORMATS_SCENE_BASED $OUT_FORMATS_BINAURAL --tests $SANITIZER_TESTS sanitizer-test-mc-5_1_4: extends: - .test-job-linux-needs-testv-dir stage: test tags: - sanitizer_test_main extends: .sanitizer-test-template rules: - if: $IS_SANITIZER_TEST_RUN when: delayed Loading @@ -594,11 +587,7 @@ sanitizer-test-mc-5_1_4: - python3 ci/run_scheduled_sanitizer_test.py 5_1_4 $OUT_FORMATS_CHANNEL_BASED $OUT_FORMATS_SCENE_BASED $OUT_FORMATS_BINAURAL --tests $SANITIZER_TESTS sanitizer-test-mc-7_1: extends: - .test-job-linux-needs-testv-dir stage: test tags: - sanitizer_test_main extends: .sanitizer-test-template rules: - if: $IS_SANITIZER_TEST_RUN when: delayed Loading @@ -607,11 +596,7 @@ sanitizer-test-mc-7_1: - python3 ci/run_scheduled_sanitizer_test.py 7_1 $OUT_FORMATS_CHANNEL_BASED $OUT_FORMATS_SCENE_BASED $OUT_FORMATS_BINAURAL --tests $SANITIZER_TESTS sanitizer-test-mc-7_1_4: extends: - .test-job-linux-needs-testv-dir stage: test tags: - sanitizer_test_main extends: .sanitizer-test-template rules: - if: $IS_SANITIZER_TEST_RUN when: delayed Loading @@ -620,11 +605,7 @@ sanitizer-test-mc-7_1_4: - python3 ci/run_scheduled_sanitizer_test.py 7_1_4 $OUT_FORMATS_CHANNEL_BASED $OUT_FORMATS_SCENE_BASED $OUT_FORMATS_BINAURAL --tests $SANITIZER_TESTS sanitizer-test-masa: extends: - .test-job-linux-needs-testv-dir stage: test tags: - sanitizer_test_main extends: .sanitizer-test-template rules: - if: $IS_SANITIZER_TEST_RUN when: delayed Loading @@ -633,11 +614,7 @@ sanitizer-test-masa: - python3 ci/run_scheduled_sanitizer_test.py MASA $OUT_FORMATS_CHANNEL_BASED $OUT_FORMATS_SCENE_BASED $OUT_FORMATS_BINAURAL EXT --tests $SANITIZER_TESTS sanitizer-test-sba: extends: - .test-job-linux-needs-testv-dir stage: test tags: - sanitizer_test_main extends: .sanitizer-test-template rules: - if: $IS_SANITIZER_TEST_RUN when: delayed Loading @@ -646,11 +623,7 @@ sanitizer-test-sba: - python3 ci/run_scheduled_sanitizer_test.py SBA $OUT_FORMATS_CHANNEL_BASED $OUT_FORMATS_SCENE_BASED $OUT_FORMATS_BINAURAL --tests $SANITIZER_TESTS sanitizer-test-planarsba: extends: - .test-job-linux-needs-testv-dir stage: test tags: - sanitizer_test_main extends: .sanitizer-test-template rules: - if: $IS_SANITIZER_TEST_RUN when: delayed Loading
lib_com/bitstream.c +24 −0 Original line number Diff line number Diff line Loading @@ -1820,7 +1820,11 @@ ivas_error preview_indices( break; } } #ifdef ALIGN_SID_SIZE else if ( total_brate == IVAS_SID_5k2 ) #else else if ( total_brate == IVAS_SID_4k4 ) #endif { /* read SID format */ st_ivas->sid_format = 0; Loading Loading @@ -1884,6 +1888,7 @@ ivas_error preview_indices( return IVAS_ERROR( IVAS_ERR_INTERNAL_FATAL, "Invalid value %c found in SID format field.", st_ivas->sid_format ); } } #ifndef ALIGN_SID_SIZE else if ( total_brate == IVAS_SID_5k ) { /* SBA SID frame */ Loading @@ -1892,6 +1897,7 @@ ivas_error preview_indices( st_ivas->sba_mode = SBA_MODE_SPAR; st_ivas->element_mode_init = IVAS_SCE; } #endif /* only read element mode from active frames */ if ( is_DTXrate( total_brate ) == 0 ) Loading Loading @@ -2063,6 +2069,9 @@ ivas_error read_indices( } else if ( k == SIZE_IVAS_BRATE_TBL ) { #ifdef ALIGN_SID_SIZE return IVAS_ERROR( IVAS_ERR_INTERNAL_FATAL, "Error, illegal bitrate (%d) in the G.192 frame ! Exiting ! \n", total_brate ); #else /*temp change for SPAR DTX*/ if ( total_brate == IVAS_SID_5k ) { Loading @@ -2072,6 +2081,7 @@ ivas_error read_indices( { return IVAS_ERROR( IVAS_ERR_INTERNAL_FATAL, "Error, illegal bitrate (%d) in the G.192 frame ! Exiting ! \n", total_brate ); } #endif } else { Loading Loading @@ -2965,4 +2975,18 @@ void evs_dec_previewFrame( } #ifdef ALIGN_SID_SIZE void dtx_read_padding_bits( DEC_CORE_HANDLE st, int16_t num_bits ) { /* TODO: temporary hack, need to decide what to do with core-coder bitrate */ int32_t tmp; tmp = st->total_brate; st->total_brate = st->total_brate + num_bits * FRAMES_PER_SEC; get_next_indice( st, num_bits ); st->total_brate = tmp; } #endif #undef WMC_TOOL_MAN
lib_com/ivas_cnst.h +13 −1 Original line number Diff line number Diff line Loading @@ -195,9 +195,12 @@ typedef enum /*----------------------------------------------------------------------------------* * IVAS Bitrates *----------------------------------------------------------------------------------*/ #ifdef ALIGN_SID_SIZE #define IVAS_SID_5k2 5200 /* SID frame bitrate */ #else #define IVAS_SID_4k4 4400 /* SID frame bitrate */ #define IVAS_SID_5k 5000 /* SBA SID frame bitrate */ #endif #define IVAS_13k2 13200 #define IVAS_16k4 16400 #define IVAS_24k4 24400 Loading @@ -215,8 +218,13 @@ typedef enum #define IVAS_BRATE_MAX IVAS_512k #ifdef ALIGN_SID_SIZE #define SIZE_IVAS_BRATE_TBL 16 #define IVAS_NUM_ACTIVE_BRATES (SIZE_IVAS_BRATE_TBL - 2) #else #define SIZE_IVAS_BRATE_TBL 17 #define IVAS_NUM_ACTIVE_BRATES (SIZE_IVAS_BRATE_TBL - 3) #endif /*----------------------------------------------------------------------------------* * IVAS modes : IVAS SCE, IVAS CPE modes (DFT, TD, MDCT stereo) Loading Loading @@ -1013,7 +1021,11 @@ enum /* IVAS PCA */ #define IVAS_PCA_NB_SUBR 20 /* 80 -> 0.25 ms, 40 -> 0.5 ms... */ #ifdef SPAR_SCALING_HARMONIZATION #define IVAS_PCA_COV_THRES 3e-5f #else #define IVAS_PCA_COV_THRES 1e-9f #endif #define IVAS_PCA_QUAT_EPS 1e-7f #define IVAS_PCA_QBITS 19 #define IVAS_PCA_N1 91 Loading
lib_com/ivas_dirac_com.c +12 −0 Original line number Diff line number Diff line Loading @@ -323,7 +323,11 @@ ivas_error ivas_dirac_sba_config( if ( sba_mode == SBA_MODE_SPAR ) { /*map the bitrate for SID frame*/ #ifdef ALIGN_SID_SIZE if ( sba_total_brate == IVAS_SID_5k2 ) #else if ( sba_total_brate == IVAS_SID_5k ) #endif { if ( *element_mode == IVAS_SCE ) { Loading Loading @@ -420,11 +424,19 @@ ivas_error ivas_dirac_sba_config( return error; } #ifdef ALIGN_SID_SIZE if ( sba_total_brate > IVAS_SID_5k2 ) #else if ( sba_total_brate > IVAS_SID_4k4 ) #endif { *nchan_transport = ivas_dirac_getNumTransportChannels( sba_total_brate, sba_order, sba_planar ); } #ifdef ALIGN_SID_SIZE else if ( sba_total_brate == IVAS_SID_5k2 ) #else else if ( sba_total_brate == IVAS_SID_4k4 ) #endif { switch ( *element_mode ) { Loading
lib_com/ivas_prot.h +17 −20 Original line number Diff line number Diff line Loading @@ -2780,8 +2780,12 @@ void reset_metadata_spatial( int32_t *total_brate, /* o : total bitrate */ const int32_t core_brate, /* i : core bitrate */ const int16_t nb_bits_metadata, /* i : number of meatdata bits */ #ifndef ALIGN_SID_SIZE const SBA_MODE sba_mode, /* i : SBA mode */ const int16_t element_mode /* i : element mode */ #else const SBA_MODE sba_mode /* i : SBA mode */ #endif ); /*! r: number of bits written */ Loading Loading @@ -4250,27 +4254,13 @@ int16_t ivas_map_num_decd_r_to_idx( const int16_t num_quant_points_decd_r ); /* Quantization utilities */ void ivas_quantise_real_values( #ifdef QUANTISE_REAL_FCN_CLEAN_UP const float *values, #else float **values, #endif const int16_t q_levels, const float min_value, const float max_value, #ifdef QUANTISE_REAL_FCN_CLEAN_UP int16_t *index, float *quant, #else int16_t **index, float **quant, #endif #ifdef QUANTISE_REAL_FCN_CLEAN_UP const int16_t dim #else const int16_t dim1, const int16_t dim2 #endif ); Loading Loading @@ -5482,4 +5472,11 @@ float rand_triangular_signed( /* clang-format on */ #ifdef ALIGN_SID_SIZE void dtx_read_padding_bits( DEC_CORE_HANDLE st, int16_t num_bits ); #endif #endif /* IVAS_PROT_H */