Commit 67e0c650 authored by Vidhya V P's avatar Vidhya V P
Browse files

Removing unused functions

parent 8bef1c48
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -110,12 +110,12 @@ ivas_error mct_enc_reconfigure(
ivas_error ivas_sba_enc_reconfigure(
    Encoder_Struct *st_ivas                                     /* i/o: IVAS encoder structure                  */
);

#ifndef REMOVE_UNUSED_FUNCTION
/*! r: maximum SBA metadata bit-budget */
int16_t ivas_sba_get_max_md_bits(
    Encoder_Struct *st_ivas                                     /* i/o: IVAS encoder structure                  */
);

#endif
void destroy_sce_enc(
    SCE_ENC_HANDLE hSCE                                         /* i/o: SCE encoder structure                   */
);
+1 −1
Original line number Diff line number Diff line
@@ -167,7 +167,7 @@

#define FIX_718_JBM_MD_UDPATE                           /* Fhg: fix issue #718, wrong setting of the update flag in the TD obj renderer in the JBM path */
#define FIX_719_CRASH_IN_CLEANUP                        /* VA: issue 719: fix Decoder crash after call to goto to cleanup */

#define REMOVE_UNUSED_FUNCTION                          /* Dlb: Remove functions that are unhit/unused */

/* ################## End BE DEVELOPMENT switches ######################### */

+4 −4
Original line number Diff line number Diff line
@@ -89,9 +89,9 @@ static int16_t ivas_diffuseness_huff_ec_decode( const uint16_t *bitstream, int16
static int16_t read_GR_min_removed_data( uint16_t *bitstream, int16_t *p_bit_pos, const int16_t *no_cv_vec, const int16_t no_data, int16_t *decoded_idx, const int16_t no_symb );

static int16_t decode_fixed_rate_composed_index_coherence( uint16_t *bitstream, int16_t *p_bit_pos, const int16_t no_bands, int16_t *no_cv_vec, uint16_t *decoded_index, const int16_t no_symb );

#ifndef REMOVE_UNUSED_FUNCTION
static int16_t ivas_qmetadata_entropy_decode_diffuseness_hr( uint16_t *bitstream, int16_t *index, IVAS_QDIRECTION *q_direction, uint16_t *diffuseness_index_max_ec_frame );

#endif
static int16_t ivas_qmetadata_entropy_decode_diffuseness_hr_512( uint16_t *bitstream, int16_t *index, IVAS_QDIRECTION *q_direction );

static int16_t ivas_qmetadata_raw_decode_dir_512( IVAS_QDIRECTION *q_direction, uint16_t *bitstream, int16_t *index, const int16_t nbands, const int16_t start_band, const SPHERICAL_GRID_DATA *sph_grid16 );
@@ -1576,7 +1576,7 @@ static int16_t ivas_qmetadata_entropy_decode_diffuseness(
    return ( index_start - *index );
}


#ifndef REMOVE_UNUSED_FUNCTION
/*-------------------------------------------------------------------*
 * ivas_qmetadata_entropy_decode_diffuseness_hr()
 *
@@ -1657,7 +1657,7 @@ static int16_t ivas_qmetadata_entropy_decode_diffuseness_hr(
    return ( index_start - *index );
}


#endif
/*-------------------------------------------------------------------*
 * ivas_qmetadata_entropy_decode_diffuseness_hr_512()
 *
+8 −8
Original line number Diff line number Diff line
@@ -116,17 +116,17 @@ static int16_t write_2dir_info( BSTR_ENC_HANDLE hMetaData, uint8_t *twoDirBands,
static void transform_azimuth_dir2( IVAS_QMETADATA_HANDLE hQMetaData, int16_t *dir2_bands );

static int16_t calc_var_azi( const IVAS_QDIRECTION *q_direction, const int16_t diffuseness_index_max_ec_frame, const float avg_azimuth, float *avg_azimuth_out );

#ifndef REMOVE_UNUSED_FUNCTION
static void ivas_qmetadata_quantize_diffuseness_nrg_ratios_hr( IVAS_QMETADATA_HANDLE hQMetaData, int16_t *needed_bits, int16_t *nbits_diff, int16_t *dfRatioBits, const int16_t bits_dir_hr );

#endif
static int16_t ivas_qmetadata_entropy_encode_diffuseness_hr( BSTR_ENC_HANDLE hMetaData, IVAS_QDIRECTION *q_direction, uint16_t *diffuseness_index_max_ec_frame );

static void ivas_qmetadata_quantize_diffuseness_nrg_ratios_hr_512( IVAS_QMETADATA_HANDLE hQMetaData, int16_t *needed_bits, const int16_t bits_dir_hr, BSTR_ENC_HANDLE hMetaData );

static int16_t encode_surround_coherence_hr( IVAS_QMETADATA *hQMetaData, BSTR_ENC_HANDLE hMetaData );

#ifndef REMOVE_UNUSED_FUNCTION
static void ivas_qmetadata_reorder_2dir_bands_hr( IVAS_QMETADATA_HANDLE hQMetaData );

#endif
static int16_t ivas_qmetadata_quantize_coherence_hr_512( IVAS_QMETADATA *hQMetaData, const int16_t idx_d, const int16_t all_coherence_zero, BSTR_ENC_HANDLE hMetaData, const int16_t bits_coh );

static int16_t write_stream_dct_coeffs_omasa( int16_t *q_idx, const int16_t len_stream, BSTR_ENC_HANDLE hMetaData, const int16_t first_line, const int16_t low_bitrate_mode );
@@ -1366,7 +1366,7 @@ int16_t quantize_direction2D(
    return idx_sph;
}


#ifndef REMOVE_UNUSED_FUNCTION
/*-------------------------------------------------------------------------
 * ivas_qmetadata_quantize_diffuseness_nrg_ratios()
 *
@@ -1511,7 +1511,7 @@ static void ivas_qmetadata_quantize_diffuseness_nrg_ratios_hr(
    return;
}


#endif
static void ivas_qmetadata_quantize_diffuseness_nrg_ratios_hr_512(
    IVAS_QMETADATA_HANDLE hQMetaData,
    int16_t *needed_bits,
@@ -5835,7 +5835,7 @@ static void ivas_qmetadata_reorder_2dir_bands(
    return;
}


#ifndef REMOVE_UNUSED_FUNCTION
/*-------------------------------------------------------------------*
 * ivas_qmetadata_reorder_2dir_bands_hr()
 *
@@ -5893,7 +5893,7 @@ static void ivas_qmetadata_reorder_2dir_bands_hr(

    return;
}

#endif

/*-------------------------------------------------------------------*
 * write_2dir_info()
+2 −1
Original line number Diff line number Diff line
@@ -261,7 +261,7 @@ ivas_error ivas_sba_enc_reconfigure(

    return error;
}

#ifndef REMOVE_UNUSED_FUNCTION
/*-------------------------------------------------------------------*
 * ivas_sba_get_max_md_bits()
 *
@@ -293,3 +293,4 @@ int16_t ivas_sba_get_max_md_bits(

    return max_md_bits;
}
#endif
 No newline at end of file