Loading lib_enc/ivas_qmetadata_enc.c +11 −2 Original line number Diff line number Diff line Loading @@ -6694,7 +6694,7 @@ static int16_t coherence_coding_length( * * Encoding spread coherence for 1 subframe bands *-------------------------------------------------------------------*/ #ifdef IVAS_FLOAT_FIXED_ #ifdef IVAS_FLOAT_FIXED /*! r: number of bits written */ static Word16 encode_spread_coherence_1sf( IVAS_QMETADATA *q_metadata, /* i : quantized metadata */ Loading Loading @@ -6732,7 +6732,16 @@ static Word16 encode_spread_coherence_1sf( /* number of codevectors added dependent on number of subbands */ //extra_cv = coding_subbands / MASA_FACTOR_CV_COH; extra_cv = mult(coding_subbands, 5461 /*MASA_FACTOR_CV_COH*/); Word16 tmp = 0; move16(); extra_cv = -1; move16(); WHILE( LE_16( tmp, coding_subbands ) ) { tmp = add( tmp, 6 ); extra_cv = add( extra_cv, 1 ); } printf("\n%d ", extra_cv); FOR ( j = 0; j < coding_subbands; j++ ) { IF( hrmasa_flag ) Loading Loading
lib_enc/ivas_qmetadata_enc.c +11 −2 Original line number Diff line number Diff line Loading @@ -6694,7 +6694,7 @@ static int16_t coherence_coding_length( * * Encoding spread coherence for 1 subframe bands *-------------------------------------------------------------------*/ #ifdef IVAS_FLOAT_FIXED_ #ifdef IVAS_FLOAT_FIXED /*! r: number of bits written */ static Word16 encode_spread_coherence_1sf( IVAS_QMETADATA *q_metadata, /* i : quantized metadata */ Loading Loading @@ -6732,7 +6732,16 @@ static Word16 encode_spread_coherence_1sf( /* number of codevectors added dependent on number of subbands */ //extra_cv = coding_subbands / MASA_FACTOR_CV_COH; extra_cv = mult(coding_subbands, 5461 /*MASA_FACTOR_CV_COH*/); Word16 tmp = 0; move16(); extra_cv = -1; move16(); WHILE( LE_16( tmp, coding_subbands ) ) { tmp = add( tmp, 6 ); extra_cv = add( extra_cv, 1 ); } printf("\n%d ", extra_cv); FOR ( j = 0; j < coding_subbands; j++ ) { IF( hrmasa_flag ) Loading