Commit e923fff9 authored by Sandesh Venkatesh's avatar Sandesh Venkatesh
Browse files

Remove patch file committed wrongly

parent cd453935
Loading
Loading
Loading
Loading
Loading

ltv.patch

deleted100644 → 0
+0 −60
Original line number Diff line number Diff line
commit ae0e51b3af04edf07e5b2beaa7734ae9b7d26d79
Author: Shreyas Talwekar <100898@ittiam.com>
Date:   Tue Jan 21 21:17:01 2025 +0530

    Fix

diff --git a/ivas_codec/c-code/lib_enc/speech_music_classif_fx.c b/ivas_codec/c-code/lib_enc/speech_music_classif_fx.c
index b088e6efd..3983acaca 100644
--- a/ivas_codec/c-code/lib_enc/speech_music_classif_fx.c
+++ b/ivas_codec/c-code/lib_enc/speech_music_classif_fx.c
@@ -268,8 +268,8 @@ void speech_music_clas_init_ivas_fx(
 
     hSpMusClas->sp_mus_state = -8;
     move16();
-    hSpMusClas->wdrop_fx = 0;
-    move16();
+    hSpMusClas->wdrop_32fx = 0;
+    move32();
     hSpMusClas->wrise_fx = 0;
     move16();
     hSpMusClas->wdlp_0_95_sp_fx = 0;
@@ -2390,19 +2390,21 @@ Word16 ivas_smc_gmm_fx(
     {
         IF( hSpMusClas->dlp_mean_ST_fx > 0 )
         {
-            hSpMusClas->wdrop_fx = -extract_l( L_shr( dlp_fx, 10 ) ); // Q9
+            hSpMusClas->wdrop_32fx = L_negate( dlp_fx ); // Q19
+            move32();
         }
-        ELSE IF( hSpMusClas->wdrop_fx > 0 )
+        ELSE IF( hSpMusClas->wdrop_32fx > 0 )
         {
-            hSpMusClas->wdrop_fx = extract_l( L_shr( L_sub( hSpMusClas->dlp_mean_ST_fx, dlp_fx ), 10 ) );
+            hSpMusClas->wdrop_32fx = L_add( hSpMusClas->wdrop_32fx, L_sub( hSpMusClas->dlp_mean_ST_fx, dlp_fx ) );
+            move32();
         }
     }
     ELSE
     {
-        hSpMusClas->wdrop_fx = 0;
+        hSpMusClas->wdrop_32fx = 0;
         move16();
     }
-    wdrop_fx = lin_interp32_fx( L_deposit_h( hSpMusClas->wdrop_fx ), 503316480, 1503238554 /* 0.7 in Q31 */, 0, ONE_IN_Q31 /* 1.0f in Q31 */, 1 ); /* Q31 */
+    wdrop_fx = lin_interp32_fx( hSpMusClas->wdrop_32fx, 7864320, 1503238554 /* 0.7 in Q31 */, 0, ONE_IN_Q31 /* 1.0f in Q31 */, 1 ); /* Q31 */
     test();
     test();
     /* calculate weight based on rises of dlp (close to 1 during sudden rise of dlp, close to 0 otherwise) */
diff --git a/ivas_codec/c-code/lib_enc/stat_enc.h b/ivas_codec/c-code/lib_enc/stat_enc.h
index 24c8b9fce..6c4020e27 100644
--- a/ivas_codec/c-code/lib_enc/stat_enc.h
+++ b/ivas_codec/c-code/lib_enc/stat_enc.h
@@ -585,6 +585,7 @@ typedef struct sp_mus_clas_structure
     Word16 past_epsP2_fx; /* Q10 */
     Word16 inact_cnt;
     Word16 wdrop_fx;          /* Q9 */
+    Word32 wdrop_32fx;        /* Q19 */
     Word16 wrise_fx;          /* Q9 */
     Word16 wdlp_0_95_sp_fx;   /* EVS - Q8 */
     Word32 wdlp_0_95_sp_32fx; /* IVAS - Q24 */