Skip to content

Double precision arithmetic in Renderer MD

There are used double precision mathematical functions in the renderer MD module.

  • \lib_rend\lib_rend.c(5839): ism_md_subframe_update_ext = (int16_t) round( ismInput->ism_metadata_delay_ms / ( 1000 / FRAMES_PER_SEC / MAX_PARAM_SPATIAL_SUBFRAMES ) ); -> roundf() of integer operation
  • \lib_rend\lib_rend.c(6108): ism_md_subframe_update_ext = (int16_t) round( ismInput->ism_metadata_delay_ms / ( 1000 / FRAMES_PER_SEC / MAX_PARAM_SPATIAL_SUBFRAMES ) ); -> roundf() of integer operation
  • \lib_rend\lib_rend.c(6360): ism_md_subframe_update_ext = (int16_t) round( ismInput->ism_metadata_delay_ms / ( 1000 / FRAMES_PER_SEC / MAX_PARAM_SPATIAL_SUBFRAMES ) ); -> roundf() of integer operation

Consider to use single precision counterparts.