Commit 5a10d34d authored by thomas dettbarn's avatar thomas dettbarn
Browse files

div40 replaced with *26215 >> 20

parent bc2058c6
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -143,7 +143,7 @@ static void pca_dec_inv_transform_fx(

    pca_interp_preproc_fx( hPCA->prev_ql_fx, hPCA->prev_qr_fx, ql_fx, qr_fx, IVAS_PCA_N_SLOTS, ql_interp_fx, qr_interp_fx );

    slot_len = idiv1616( n_samples, IVAS_PCA_N_SLOTS ); /*Q0*/
    slot_len = extract_l( L_shr( imult3216( 26215, n_samples ), 20 ) ); /*Q0. equivalent to n_samples/40*/

    FOR( j = 0; j < IVAS_PCA_N_SLOTS; j++ )
    {
+1 −1
Original line number Diff line number Diff line
@@ -146,7 +146,7 @@ static void pca_enc_transform_fx(
    quat_shortestpath_fx( hPCA->prev_ql_fx, ql_fx, hPCA->prev_qr_fx, qr_fx );
    pca_interp_preproc_fx( hPCA->prev_ql_fx, hPCA->prev_qr_fx, ql_fx, qr_fx, IVAS_PCA_N_SLOTS, ql_interp_fx, qr_interp_fx );

    slot_len = idiv1616( input_frame, IVAS_PCA_N_SLOTS );
    slot_len = extract_l( L_shr( imult3216( 26215, input_frame ), 20 ) ); /* equivalent to input_frame/40 */

    FOR( time_slot = 0; time_slot < IVAS_PCA_N_SLOTS; time_slot++ )
    {
+3 −3

File changed.

Contains only whitespace changes.