fprintf(stderr,"Warning: The maximum number of indices %d has been exceeded in frame %d! Increase the limits in get_ivas_max_num_indices() or get_max_num_indices_metadata().\n",*(hBstr->ivas_max_num_indices),frame);
#else
/* TODO: replace with the warning message below before the finalization of the IVAS codec */
/* fprintf( stderr, "Warning: The maximum number of indices %d has been exceeded in frame %d! Increase the limits in get_ivas_max_num_indices() or get_max_num_indices_metadata().\n", *( hBstr->ivas_max_num_indices ), frame ); */
assert(0&&"The maximum number of indices has been exceeded! Increase the limits in get_ivas_max_num_indices() or get_max_num_indices_metadata().");
#endif
#endif
/* reallocate the buffer of indices with increased limit */
fprintf(stderr,"Warning: The maximum number of indices %d has been exceeded in frame %d! Increase the limits in get_ivas_max_num_indices() or get_max_num_indices_metadata().\n",*(hBstr->ivas_max_num_indices),frame);
#else
/* TODO: replace with the warning message below before the finalization of the IVAS codec */
/* fprintf( stderr, "Warning: The maximum number of indices %d has been exceeded in frame %d! Increase the limits in get_ivas_max_num_indices() or get_max_num_indices_metadata().\n", *( hBstr->ivas_max_num_indices ), frame ); */
assert(0&&"The maximum number of indices has been exceeded! Increase the limits in get_ivas_max_num_indices() or get_max_num_indices_metadata().");
#endif
#endif
/* no available empty slot -> need to re-allocate the buffer */
returnIVAS_ERROR(IVAS_ERR_INTERNAL_FATAL,"Indice ID = %d with value %d exceeds the range of %d bits (frame %d) !\n",id,value,nb_bits,frame);
}
#ifndef IND_LIST_DYN
#if 0
/* mul, 2020-11-19: to be de-activated until proper solution found */
if ( nb_bits < 1 )
{
return IVAS_ERROR( IVAS_ERR_INTERNAL_FATAL, " Trying to push indice ID = %d with value %d that has %d bits (frame %d) !\n", id, value, nb_bits, frame );
}
else
#endif
#endif
if(nb_bits>16)
{
returnIVAS_ERROR(IVAS_ERR_INTERNAL_FATAL,"Indice ID = %d with value %d is trying to allocate %d bits which exceeds 16 bits (frame %d) !\n",id,value,nb_bits,frame);
}
#ifndef IND_LIST_DYN
if(id>=MAX_NUM_INDICES)
{
returnIVAS_ERROR(IVAS_ERR_INTERNAL_FATAL,"Indice ID = %d exceeds the total number of indices: %d (frame %d) !\n",id,MAX_NUM_INDICES,frame);
#define ISM_NB_BITS_METADATA_NOMINAL ( ( SCE_CORE_16k_LOW_LIMIT - ACELP_16k_LOW_LIMIT ) / FRAMES_PER_SEC ) /* nominal number of metadata bits - used for configuration of Core-Coder modules */
#ifdef FIX_532_ISM_MD_INACTIVE
#define ISM_METADATA_MD_FLAG_BITS 1 /* flag to distinguish between NULL metadata and low-rate ISM_NO_META class */
#define ISM_METADATA_INACTIVE_FLAG_BITS 1 /* flag to signal whether MD are sent in low-rate inactive frame */