Commit 9ebeea99 authored by Archit Tamarapu's avatar Archit Tamarapu
Browse files

allow compiling the external renderer with EXT_RENDERER undefined

parent 90c91a25
Loading
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -60,6 +60,7 @@
#include <stdio.h>
#include <string.h>

#ifdef EXT_RENDERER
#ifndef count_malloc
#ifdef RAM_COUNTING_TOOL
#define count_malloc( n1 )     MALLOC_FCT_CALL( n1 )
@@ -2274,3 +2275,12 @@ static void convertOutputBuffer( const float *floatBuffer,
        }
    }
}
#else
int32_t main( int32_t argc, char **argv )
{
    (void) argc;
    (void) argv;
    fprintf( stderr, "Enable EXT_RENDERER in options.h to use the external renderer.\n" );
    return 0;
}
#endif
+2 −0
Original line number Diff line number Diff line
@@ -5,6 +5,7 @@
#ifndef IVAS_LIB_REND_INTERNALS_H
#define IVAS_LIB_REND_INTERNALS_H

#ifdef EXT_RENDERER
typedef struct
{
    int8_t headRotEnabled;
@@ -85,3 +86,4 @@ ivas_error ivas_rend_TDObjRendOpen(
    int32_t outFs );

#endif
#endif
+2 −0
Original line number Diff line number Diff line
@@ -48,6 +48,7 @@
#include <stdlib.h>
#include <string.h>

#ifdef EXT_RENDERER
/* Maximum buffer length (per channel) in samples.
 * Keep this separate from L_FRAME48k in case we want to support different size later */
#define MAX_BUFFER_LENGTH_PER_CHANNEL ( L_FRAME48k )
@@ -4064,3 +4065,4 @@ int32_t IVAS_REND_GetCntFramesLimited(
    return hIvasRend->hLimiter->cnt_frames_limited;
}
#endif
#endif
+3 −0
Original line number Diff line number Diff line
@@ -41,6 +41,8 @@
#include "common_api_types.h"
#include "ivas_error.h"

#ifdef EXT_RENDERER

#define RENDERER_MAX_ISM_INPUTS  4
#define RENDERER_MAX_MC_INPUTS   1
#define RENDERER_MAX_SBA_INPUTS  1
@@ -263,3 +265,4 @@ int32_t IVAS_REND_GetCntFramesLimited(
/* clang-format on */

#endif /* LIB_REND_H */
#endif