This file is indexed.

/usr/include/sipxtapi/mp/MpDspUtilsConvertVect.h is in libsipxtapi-dev 3.3.0~test17-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
//
// Copyright (C) 2007 SIPfoundry Inc.
// Licensed by SIPfoundry under the LGPL license.
//
// Copyright (C) 2007 SIPez LLC.
// Licensed to SIPfoundry under a Contributor Agreement.
//
// $$
//////////////////////////////////////////////////////////////////////////////

// Author: Alexander Chemeris <Alexander DOT Chemeris AT SIPez DOT com>

#ifndef _MpDspUtilsConvertVect_h_
#define _MpDspUtilsConvertVect_h_

/**
*  @file
*
*  DO NOT INCLUDE THIS FILE DIRECTLY! This files is designed to be included
*  to <mp/MpDspUtils.h> and should not be used outside of it.
*/

/* ============================ INLINE METHODS ============================ */

#ifdef MP_FIXED_POINT // [

OsStatus MpDspUtils::convert(const int32_t *pSrc, int16_t *pDst, int dataLength)
{
   for (int i=0; i<dataLength; i++)
   {
      pDst[i] = MPF_EXTRACRT16(MPF_SATURATE16(pSrc[i]));
   }
   return OS_SUCCESS;
}

OsStatus MpDspUtils::convert_Gain(const int32_t *pSrc, int16_t *pDst, int dataLength, unsigned srcScaleFactor)
{
   for (int i=0; i<dataLength; i++)
   {
      pDst[i] = MPF_EXTRACRT16(shl16(pSrc[i], srcScaleFactor));
   }
   return OS_SUCCESS;
}

OsStatus MpDspUtils::convert_Att(const int32_t *pSrc, int16_t *pDst, int dataLength, unsigned srcScaleFactor)
{
   for (int i=0; i<dataLength; i++)
   {
      pDst[i] = MPF_EXTRACRT16(MPF_SATURATE16(pSrc[i]>>srcScaleFactor));
   }
   return OS_SUCCESS;
}

OsStatus MpDspUtils::convert(const int16_t *pSrc, int32_t *pDst, int dataLength)
{
   for (int i=0; i<dataLength; i++)
   {
      pDst[i] = pSrc[i];
   }
   return OS_SUCCESS;
}

OsStatus MpDspUtils::convert_Gain(const int16_t *pSrc, int32_t *pDst, int dataLength, unsigned srcScaleFactor)
{
   for (int i=0; i<dataLength; i++)
   {
      pDst[i] = shl32((int32_t)pSrc[i], srcScaleFactor);
   }
   return OS_SUCCESS;
}

OsStatus MpDspUtils::convert_Att(const int16_t *pSrc, int32_t *pDst, int dataLength, unsigned srcScaleFactor)
{
   for (int i=0; i<dataLength; i++)
   {
      pDst[i] = pSrc[i]>>srcScaleFactor;
   }
   return OS_SUCCESS;
}

#else  // MP_FIXED_POINT ][

OsStatus MpDspUtils::convert(const float *pSrc, int16_t *pDst, int dataLength)
{
   for (int i=0; i<dataLength; i++)
   {
      pDst[i] = MPF_EXTRACRT16(MPF_SATURATE16(pSrc[i]));
   }

   return OS_SUCCESS;
}

#endif // MP_FIXED_POINT ]

#endif  // _MpDspUtilsConvertVect_h_