Commit fa43fa46 authored by TYAGIRIS's avatar TYAGIRIS
Browse files

update to latest branch

parents 69ab1d3f 9e6bc9e6
Loading
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -81,7 +81,7 @@ static
#define MAX_FRAME_SIZE ( 48000 / 50 )
#endif
#define MAX_NUM_OUTPUT_CHANNELS 16
#ifdef OSBA_EXT_OUT
#ifdef SBA_AND_OBJECTS
#define MAX_OUTPUT_PCM_BUFFER_SIZE ( ( MAX_NUM_OUTPUT_CHANNELS + IVAS_MAX_NUM_OBJECTS ) * MAX_FRAME_SIZE )
#else
#define MAX_OUTPUT_PCM_BUFFER_SIZE ( MAX_NUM_OUTPUT_CHANNELS * MAX_FRAME_SIZE )
@@ -1691,7 +1691,7 @@ static ivas_error initOnFirstGoodFrame(
        /* If outputting ISM, get number of objects, open output files and write zero metadata for initial bad frames */
#ifdef MASA_AND_OBJECTS
        if ( *pBsFormat == IVAS_DEC_BS_OBJ || *pBsFormat == IVAS_DEC_BS_MASA_ISM
#ifdef OSBA_EXT_OUT
#ifdef SBA_AND_OBJECTS

             || *pBsFormat == IVAS_DEC_BS_SBA_ISM
#endif
@@ -2108,7 +2108,7 @@ static ivas_error decodeG192(
        {
#ifdef MASA_AND_OBJECTS
            if ( bsFormat == IVAS_DEC_BS_OBJ || bsFormat == IVAS_DEC_BS_MASA_ISM
#ifdef OSBA_EXT_OUT
#ifdef SBA_AND_OBJECTS
                 || bsFormat == IVAS_DEC_BS_SBA_ISM
#endif
            )
+2 −3
Original line number Diff line number Diff line
@@ -1943,11 +1943,10 @@ static void usage_enc( void )
    fprintf( stdout, "                      where Ch specifies the number of MASA input/transport channels (1 or 2): \n" );
    fprintf( stdout, "                      and File specifies input file containing parametric MASA metadata \n" );
#ifdef SBA_AND_OBJECTS
    fprintf( stdout, "-ism_sba IsmChannels SBAChannels IsmFiles SBAFile : MASA and objects format \n" );
    fprintf( stdout, "-ism_sba IsmChannels SBAorder IsmFiles : SBA and ISM format \n" );
    fprintf( stdout, "                      where IsmChannels specifies the number of ISms (1-4)\n" );
    fprintf( stdout, "                      and SBAChannels specifies the SBA order (1 to 3) \n" );
    fprintf( stdout, "                      and SBAorder specifies the SBA order (1 to 3) \n" );
    fprintf( stdout, "                      and IsmFiles specify input files containing metadata, one file per object \n" );
    fprintf( stdout, "                      and SBAFile specifies SBA input file \n" );
#endif
#ifdef MASA_AND_OBJECTS
    fprintf( stdout, "-ism_masa IsmCh MasaCh IsmFiles MasaFile : MASA and ISM format \n" );
+1 −1
Original line number Diff line number Diff line
@@ -2994,7 +2994,7 @@ ivas_error preview_indices(

            ivas_sba_config( total_brate, st_ivas->sba_analysis_order, -1, &( st_ivas->nchan_transport ), st_ivas->sba_planar, &( st_ivas->nSCE ), &( st_ivas->nCPE ), &( st_ivas->element_mode_init ) );
        }
#ifdef OSBA_DISC_OBJ_MCT
#ifdef SBA_AND_OBJECTS
        else if ( st_ivas->ivas_format == SBA_ISM_FORMAT )
        {
            /* read number of objects from the bitstream */
+5 −5
Original line number Diff line number Diff line
@@ -165,13 +165,13 @@ typedef enum
    RENDERER_BINAURAL_MIXER_CONV,
    RENDERER_BINAURAL_MIXER_CONV_ROOM,
    RENDERER_NON_DIEGETIC_DOWNMIX
#ifdef OSBA_MONO_STEREO_OUTPUT
#ifdef SBA_AND_OBJECTS
    , RENDERER_OSBA_STEREO
#endif
#ifdef OSBA_AMBISONICS_OUT
#ifdef SBA_AND_OBJECTS
    , RENDERER_OSBA_AMBI
#endif
#ifdef OSBA_LS_OUT
#ifdef SBA_AND_OBJECTS
    , RENDERER_OSBA_LS
#endif
} RENDERER_TYPE;
@@ -429,7 +429,7 @@ typedef enum
    ISM_MASA_MODE_PARAM_ONE_OBJ,               /* MASA ISM mode when one object is encoded separately and remainder using parametric object model */
    ISM_MASA_MODE_DISC                         /* MASA ISM mode when all objects are encoded separarately   */
#endif
#ifdef OSBA_DISC_OBJ_MCT
#ifdef SBA_AND_OBJECTS
    ,
    ISM_SBA_MODE_DISC                          /* MASA ISM mode when all objects are encoded separarately   */
#endif
@@ -1304,7 +1304,7 @@ typedef enum
    MASA_FRAME_4SF
} MASA_FRAME_MODE;

#ifdef OSBA_DISC_OBJ_MCT
#ifdef SBA_AND_OBJECTS
#define NO_BITS_MASA_ISM_NO_OBJ 2
#endif
/*----------------------------------------------------------------------------------*
+6 −7
Original line number Diff line number Diff line
@@ -1001,7 +1001,7 @@ ivas_error ivas_ism_metadata_enc(
    const int16_t flag_omasa_ener_brate,                        /* i  : less bitrate for objects in OMASA flag      */
    int16_t *omasa_stereo_sw_cnt
#endif
#ifdef OSBA_DISC_OBJ_MCT
#ifdef SBA_AND_OBJECTS
    ,
    const int16_t ini_frame
#endif
@@ -1020,7 +1020,7 @@ ivas_error ivas_ism_metadata_dec(
    const PARAM_ISM_CONFIG_HANDLE hParamIsm,                    /* i  : Param ISM Config Handle                     */
    int16_t *ism_extended_metadata_flag,                        /* i/o: Extended metadata active in renderer        */
    int16_t *ism_extmeta_cnt                                   /* i/o: Number of change frames observed            */
#ifdef OSBA_DISC_OBJ_MCT
#ifdef SBA_AND_OBJECTS
    , DEC_CORE_HANDLE st0
#endif
);
@@ -3656,7 +3656,7 @@ void ivas_dirac_dec_read_BS(
    SPAT_PARAM_REND_COMMON_DATA_HANDLE hSpatParamRendCom,       /* i/o: common spatial rendering data handle    */
    IVAS_QMETADATA_HANDLE hQMetaData,                           /* i/o: q metadata                              */
    int16_t *nb_bits,                                           /* o  : number of bits read                     */
#ifdef OSBA_DISC_OBJ_MCT
#ifdef SBA_AND_OBJECTS
    const int16_t last_bit_pos, /* i  : last read bitstream position*/
#endif
    const int16_t hodirac_flag,                                 /* i  : flag to indicate HO-DirAC mode          */
@@ -5674,15 +5674,15 @@ void ivas_osba_enc(
    const int16_t nchan_ism,                                    /* i  : Number of objects for parameter analysis  */
    const ISM_MODE ism_mode,                                    /* i  : ISM mode                                  */
    const int16_t sba_analysis_order                            /* i  : SBA order evaluated in DirAC/SPAR encoder */
#ifdef OSBA_BR_SWITCHING
#ifdef SBA_AND_OBJECTS
	, const int32_t input_Fs                                    /* i  : input sampling rate*/
#endif
);
#ifdef OSBA_DISC_OBJ_MCT
#ifdef SBA_AND_OBJECTS
ivas_error ivas_masa_ism_data_open(
    Decoder_Struct *st_ivas /* i/o: IVAS decoder handle  */
);
ivas_error ivas_masa_ism_separate_object_renderer_open(
ivas_error ivas_sba_ism_separate_object_renderer_open(
    Decoder_Struct *st_ivas /* i/o: IVAS decoder structure      */
);

@@ -5696,7 +5696,6 @@ ivas_error ivas_osba_ism_metadata_dec(
    Decoder_Struct *st_ivas,             /* i/o: IVAS decoder structure            */
    const int32_t ism_total_brate,       /* i  : ISM total bitrate                 */
    int16_t *nchan_ism,                  /* o  : number of ISM separated channels  */
    int16_t *nchan_transport_ism,        /* o  : number of ISM TCs                 */
    int16_t nb_bits_metadata[]           /* o  : number of ISM metadata bits       */
);

Loading