Commit 0545f2fa authored by reutelhuber's avatar reutelhuber
Browse files

apply clang format

parent b68fdf2f
Loading
Loading
Loading
Loading
Loading
+20 −19
Original line number Diff line number Diff line
@@ -83,7 +83,8 @@ static void ivas_get_pred_coeffs( float *pppCov_mat_re[IVAS_SPAR_MAX_CH][IVAS_SP
#ifdef LBR_SBA
                                  const int16_t active_w_vlbr,
#endif
const int16_t dtx_vad, const int16_t from_dirac );
                                  const int16_t dtx_vad,
                                  const int16_t from_dirac );

static void ivas_reorder_array( float in_re[IVAS_SPAR_MAX_CH][IVAS_SPAR_MAX_CH][IVAS_MAX_NUM_BANDS], const int16_t in_chans, const int16_t order[IVAS_SPAR_MAX_CH], float ***mixer_mat, const int16_t start_band, const int16_t end_band );

lib_dec/ivas_sba_dec.c

100755 → 100644
+2 −2

File changed.File mode changed from 100755 to 100644.

Contains only whitespace changes.

+5 −6
Original line number Diff line number Diff line
@@ -902,8 +902,7 @@ static void ivas_spar_calc_smooth_facs(
    int16_t nbands_spar,
    ivas_fb_bin_to_band_data_t *bin2band,
    float *smooth_fac,
    float smooth_buf[IVAS_MAX_NUM_BANDS][2 * SBA_DIRAC_NRG_SMOOTH_LONG + 1]
)
    float smooth_buf[IVAS_MAX_NUM_BANDS][2 * SBA_DIRAC_NRG_SMOOTH_LONG + 1] )
{
    int16_t b, bin, i, ts;
    float subframe_band_nrg[IVAS_MAX_NUM_BANDS];
+9 −6
Original line number Diff line number Diff line
@@ -653,7 +653,8 @@ static ivas_error ivas_spar_enc_process(
    {
        ivas_spar_md_enc_process( hSpar->hMdEnc, hEncoderConfig, cov_real, cov_dtx_real, hMetaData, dtx_vad, nchan_inp, sba_order
#ifdef LBR_SBA
                                  , hSpar->hFbMixer->prior_mixer
                                  ,
                                  hSpar->hFbMixer->prior_mixer
#endif
        );
    }
@@ -699,7 +700,8 @@ static ivas_error ivas_spar_enc_process(

        ivas_get_spar_md_from_dirac( azi_dirac, ele_dirac, diffuseness, 1, hSpar->hMdEnc->mixer_mat, &hSpar->hMdEnc->spar_md, &hSpar->hMdEnc->spar_md_cfg, d_start_band, d_end_band, ( hSpar->hMdEnc->spar_hoa_md_flag ) ? 1 : sba_order, dtx_vad, Wscale_d
#ifdef LBR_SBA
                                     , hQMetaData->useLowerRes, active_w_vlbr
                                     ,
                                     hQMetaData->useLowerRes, active_w_vlbr
#endif
        );
    }
@@ -708,7 +710,8 @@ static ivas_error ivas_spar_enc_process(
    {
        ivas_spar_md_enc_process( hSpar->hMdEnc, hEncoderConfig, cov_real, cov_dtx_real, hMetaData, dtx_vad, nchan_inp, sba_order
#ifdef LBR_SBA
                                  , hSpar->hFbMixer->prior_mixer
                                  ,
                                  hSpar->hFbMixer->prior_mixer
#endif
        );
    }
+86 −85
Original line number Diff line number Diff line
@@ -95,7 +95,9 @@ static void ivas_store_prior_coeffs( ivas_spar_md_enc_state_t *hMdEnc, const int
#ifndef LBR_SBA
                                     const int16_t bands_bw,
#endif
                                     const int16_t strat, const int16_t dtx_vad, const int16_t qsi );
                                     const int16_t strat,
                                     const int16_t dtx_vad,
                                     const int16_t qsi );

static void ivas_write_spar_md_bitstream( ivas_spar_md_enc_state_t *hMdEnc, const int16_t nB, const int16_t bands_bw, BSTR_ENC_HANDLE hMetaData, const int32_t ivas_total_brate, const int16_t strat, const int16_t qsi, const int16_t planarCP );
static void ivas_spar_quant_pred_coeffs_dtx( ivas_spar_md_t *pSpar_md, const float *pValues, const int16_t ndm, int16_t *pIndex, const int16_t dim1, float *pQuant );
@@ -813,8 +815,7 @@ ivas_error ivas_spar_md_enc_process(
                                i2 = 1;
                                break;
                        }
                        if ( ( hMdEnc->spar_md.band_coeffs_idx[b].pred_index_re[i] == 0 ) && ( hMdEnc->spar_md.band_coeffs_idx[b].decd_index_re[i2] == 0 ) 
							&& ( hMdEnc->spar_md.band_coeffs[b].pred_re[i] != 0.0f ) && ( cov_real[i + 1][i + 1][b] != 0.0f ) )
                        if ( ( hMdEnc->spar_md.band_coeffs_idx[b].pred_index_re[i] == 0 ) && ( hMdEnc->spar_md.band_coeffs_idx[b].decd_index_re[i2] == 0 ) && ( hMdEnc->spar_md.band_coeffs[b].pred_re[i] != 0.0f ) && ( cov_real[i + 1][i + 1][b] != 0.0f ) )
                        {
                            /* bump up the Pred coeff */
                            float PR_uq, PR_step;
+1 −1

File changed.

Contains only whitespace changes.

+1 −1

File changed.

Contains only whitespace changes.

+1 −1

File changed.

Contains only whitespace changes.

+40 −40

File changed.

Contains only whitespace changes.

+2 −2

File changed.

Contains only whitespace changes.

+63 −63

File changed.

Contains only whitespace changes.

+1 −1

File changed.

Contains only whitespace changes.

+1 −1

File changed.

Contains only whitespace changes.

Loading