Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Institute of Technical Acoustics (ITA)
ITABase
Commits
1d8dcb17
Commit
1d8dcb17
authored
May 18, 2017
by
Dipl.-Ing. Jonas Stienen
Browse files
Adding missing const for interpolation routine methods
parent
7a4adcbb
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ITAInterpolation.cpp
View file @
1d8dcb17
...
...
@@ -10,7 +10,7 @@ void spline_cubic_set_equidistant( const int n, const float* y, float* ypp );
// Evaluate cubic spline interpolation point using only base values (y) and second derivatives (ypp) for equidistant data
float
spline_cubic_val_equidistant
(
const
int
n
,
const
float
fX
,
const
float
*
y
,
const
float
*
ypp
);
bool
CITAVDLLinearInterpolation
::
Interpolate
(
const
ITASampleBuffer
*
pInput
,
int
iInputLength
,
int
iInputStartOffset
,
ITASampleBuffer
*
pOutput
,
int
iOutputLength
,
int
iOutputOffset
/*=0*/
)
const
bool
CITAVDLLinearInterpolation
::
Interpolate
(
const
ITASampleBuffer
*
pInput
,
const
int
iInputLength
,
const
int
iInputStartOffset
,
ITASampleBuffer
*
pOutput
,
const
int
iOutputLength
,
const
int
iOutputOffset
/*=0*/
)
const
{
assert
(
pOutput
->
length
()
>=
iOutputLength
+
iOutputOffset
);
...
...
@@ -138,7 +138,7 @@ bool CITAVDLLinearInterpolation::Interpolate( const ITASampleBuffer* pInput, int
return
false
;
}
bool
CITAVDLCubicSplineInterpolation
::
Interpolate
(
const
ITASampleBuffer
*
pInput
,
int
iInputLength
,
int
iInputStartOffset
,
ITASampleBuffer
*
pOutput
,
int
iOutputLength
,
int
iOutputOffset
/*=0*/
)
const
bool
CITAVDLCubicSplineInterpolation
::
Interpolate
(
const
ITASampleBuffer
*
pInput
,
const
int
iInputLength
,
const
int
iInputStartOffset
,
ITASampleBuffer
*
pOutput
,
const
int
iOutputLength
,
const
int
iOutputOffset
/*=0*/
)
const
{
// Eingabe validieren
assert
(
iInputStartOffset
>=
2
);
...
...
@@ -182,7 +182,7 @@ bool CITAVDLCubicSplineInterpolation::Interpolate( const ITASampleBuffer* pInput
return
true
;
}
bool
CITAVDLWindowedSincInterpolation
::
Interpolate
(
const
ITASampleBuffer
*
pInput
,
int
iInputLength
,
int
iInputStartOffset
,
ITASampleBuffer
*
pOutput
,
int
iOutputLength
,
int
iOutputOffset
/*=0*/
)
const
bool
CITAVDLWindowedSincInterpolation
::
Interpolate
(
const
ITASampleBuffer
*
pInput
,
const
int
iInputLength
,
const
int
iInputStartOffset
,
ITASampleBuffer
*
pOutput
,
const
int
iOutputLength
,
const
int
iOutputOffset
/*=0*/
)
const
{
// Eingabe validieren
assert
(
iInputStartOffset
>=
m_iWindowSize
/
2
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment