Skip to content
Snippets Groups Projects
Select Git revision
  • develop
  • master default protected
  • feature/triangulation-qhull
  • jst
  • ti_lab_build
  • features/splines_and_piecewise_polynomials
  • ma_2018/erraji
  • fabian
  • ITABase_v2025a
  • ITABase_v2024a
  • VA_v2023b
  • VA_v2023a
  • VA_v2022a
  • before_cmake_rework
  • v2021.a
  • v2020.a
  • v2019.a
  • v2018.b
  • v2018.a
  • v2017.d
  • v2017.c
  • v2017.b
  • v2017.a
  • v2016.a
24 results

ITASampleTypeConversion.h

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    ITASampleTypeConversion.h 2.21 KiB
    /*
     * ----------------------------------------------------------------
     *
     *		ITA core libs
     *		(c) Copyright Institute of Technical Acoustics (ITA)
     *		RWTH Aachen University, Germany, 2015-2025
     *
     * ----------------------------------------------------------------
     *				    ____  __________  _______
     *				   //  / //__   ___/ //  _   |
     *				  //  /    //  /    //  /_|  |
     *				 //  /    //  /    //  ___   |
     *				//__/    //__/    //__/   |__|
     *
     * ----------------------------------------------------------------
     *
     */
    
    #ifndef INCLUDE_WATCHER_ITA_SAMPLE_TYPE_CONVERSION
    #define INCLUDE_WATCHER_ITA_SAMPLE_TYPE_CONVERSION
    
    // ITABase
    #include <ITABaseDefinitions.h>
    #include <stddef.h>
    
    //! Converts signed integer 16-Bit -> single precision floating point (32-Bit)
    void ITA_BASE_API stc_sint16_to_float( float* dest, const short* src, size_t count, int input_stride = 1, int output_stride = 1 );
    
    //! Converts signed integer 24-Bit -> single precision floating point (32-Bit)
    void ITA_BASE_API stc_sint24_to_float( float* dest, const void* src, size_t count, int input_stride = 1, int output_stride = 1 );
    
    //! Converts signed integer 32-Bit -> single precision floating point (32-Bit)
    void ITA_BASE_API stc_sint32_to_float( float* dest, const int* src, size_t count, int input_stride = 1, int output_stride = 1 );
    
    //! Converts double precision floating point (64-Bit) -> single precision floating point (32-Bit)
    void ITA_BASE_API stc_double_to_float( float* dest, const double* src, size_t count, int input_stride = 1, int output_stride = 1 );
    
    //! Converts single precision floating point (32-Bit) -> signed integer 16-Bit
    void ITA_BASE_API stc_float_to_sint16( short* dest, const float* src, size_t count, int input_stride = 1, int output_stride = 1 );
    
    //! Converts single precision floating point (32-Bit) -> signed integer 32-Bit
    void ITA_BASE_API stc_float_to_sint32( int* dest, const float* src, size_t count, int input_stride = 1, int output_stride = 1 );
    
    //! Converts single precision floating point (32-Bit) -> double precision floating point (64-Bit)
    void ITA_BASE_API stc_float_to_double( double* dest, const float* src, size_t count, int input_stride = 1, int output_stride = 1 );
    
    #endif // INCLUDE_WATCHER_ITA_SAMPLE_TYPE_CONVERSION