Commit a5d61f72 authored by Archit Tamarapu's avatar Archit Tamarapu
Browse files

[fix] instrumented build and cleanup debugging code

parent 2a312227
Loading
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -1228,6 +1228,8 @@ ivas_error IVAS_DEC_GetSplitBinauralBitstream(
    Decoder_Struct *st_ivas;
    AUDIO_CONFIG output_config;
    int32_t output_Fs;
    float *writePtr;
    float *readPtr, *readEnd;
    float output[BINAURAL_CHANNELS * MAX_HEAD_ROT_POSES][L_FRAME48k];
    float pcmBuf[BINAURAL_CHANNELS * MAX_HEAD_ROT_POSES * L_FRAME48k];
    int16_t numSamplesPerChannelCacheSize;
@@ -1295,14 +1297,11 @@ ivas_error IVAS_DEC_GetSplitBinauralBitstream(
        }
#ifdef DEBUGGING
        assert( numSamplesPerChannelToDecode == *nOutSamples );
        dbgwrite( pcmBuf, sizeof( float ), numSamplesPerChannelToDecode * BINAURAL_CHANNELS * numPoses, 1, "res/IVAS_DEC_GetSamples_split.pcm" );
#endif

        /* copy to cache if cache is in use */
        if ( hSplitBinRend->tdDataOut != NULL )
        {
            float *writePtr;
            float *readPtr, *readEnd;
            writePtr = hSplitBinRend->tdDataOut;
            readPtr = pcmBuf + numSamplesPerChannelToSplitEncode * BINAURAL_CHANNELS * numPoses;
            readEnd = pcmBuf + *nOutSamples * BINAURAL_CHANNELS * numPoses;
@@ -1319,8 +1318,6 @@ ivas_error IVAS_DEC_GetSplitBinauralBitstream(
        /* copy from cache */
        assert( hSplitBinRend->tdDataOut != NULL );

        float *writePtr;
        float *readPtr, *readEnd;
        readPtr = hSplitBinRend->tdDataOut + ( numSamplesPerChannelCacheSize - hSplitBinRend->numTdSamplesPerChannelCached ) * BINAURAL_CHANNELS * numPoses;
        readEnd = readPtr + numSamplesPerChannelToSplitEncode * BINAURAL_CHANNELS * numPoses;
        writePtr = pcmBuf;
+0 −7
Original line number Diff line number Diff line
@@ -7838,9 +7838,6 @@ static ivas_error renderSplitBinauralWithPostRot(
                else
                {
                    error = splitBinLc3plusDecode( hSplitBin, &bits, tmpCrendBuffer, bits.pose_correction );
#ifdef DEBUGGING
                    dbgwrite( tmpCrendBuffer[0], sizeof( float ), 960, 1, "res/splitBinLc3plusDecode.raw" );
#endif
                    if ( error != IVAS_ERR_OK )
                    {
                        return error;
@@ -7890,10 +7887,6 @@ static ivas_error renderSplitBinauralWithPostRot(
        }
        else if ( bits.pose_correction == IVAS_SPLIT_REND_POSE_CORRECTION_MODE_CLDFB )
        {
#ifdef DEBUGGING
            dbgwrite( tmpCrendBuffer[0], sizeof( float ), 240, 1, "res/splitrend_dbg.raw" );
#endif

            ivas_rend_CldfbSplitPostRendProcess(
                hSplitBin->hBinHrSplitPostRend,
                &hSplitBin->multiBinPoseData,