| AAX SDK 2.6.1 Avid Audio Extensions Development Kit

- Welcome
- Manual
- Classes
- Files
- Lists
- Support

- File List
- File Members

Loading...
Searching...
No Matches
AAX_Map.h
Go to the documentation of this file.
1/*================================================================================================*/
2/*
3 * Copyright 2009-2015, 2019, 2023 Avid Technology, Inc.
4 * All rights reserved.
5 *
6 * CONFIDENTIAL: this document contains confidential information of Avid. Do
7 * not disclose to any third party. Use of the information contained in this
8 * document is subject to an Avid SDK license.
9 */
10
17/*================================================================================================*/
18
19#pragma once
20
21#ifndef AAX_MAP_H
22#define AAX_MAP_H
23
24#include "AAX.h"
25
26#include AAX_ALIGN_FILE_BEGIN
27#include AAX_ALIGN_FILE_ALG
28#include AAX_ALIGN_FILE_END
29
30//==============================================================================
31 class AAX_Map
32{
33 public:
34 AAX_Map() {};
35 ~AAX_Map() {};
36
37 void SetCoefficients(int aSize, double* aInpX, double* aInpY);
38 void GetCoefficient(int aIndex, double* aOutX, double* aOutY);
39 int GetUpperBoundIndex(double inp);
40 inline double GetX(int aIndex) {return mX[aIndex];};
41 inline double GetY(int aIndex) {return mY[aIndex];};
42 inline double GetFirstX() {return mX[0];};
43 inline double GetFirstY() {return mY[0];};
44 inline double GetLastX() {return mX[mSize - 1];};
45 inline double GetLastY() {return mY[mSize - 1];};
46 inline int GetSize() {return mSize;};
47
48 private:
49
50 static const int mMaxSize = 13;
51
52 int mSize;
53
54 double mX[mMaxSize];
55 double mY[mMaxSize];
56};
57
58#include AAX_ALIGN_FILE_BEGIN
59#include AAX_ALIGN_FILE_RESET
60#include AAX_ALIGN_FILE_END
61
62#endif //AAX_MAP_H
AAX.h
Various utility definitions for AAX.
AAX_Map
Definition: AAX_Map.h:32
AAX_Map::SetCoefficients
void SetCoefficients(int aSize, double *aInpX, double *aInpY)
AAX_Map::GetY
double GetY(int aIndex)
Definition: AAX_Map.h:41
AAX_Map::GetFirstX
double GetFirstX()
Definition: AAX_Map.h:42
AAX_Map::~AAX_Map
~AAX_Map()
Definition: AAX_Map.h:35
AAX_Map::GetUpperBoundIndex
int GetUpperBoundIndex(double inp)
AAX_Map::GetSize
int GetSize()
Definition: AAX_Map.h:46
AAX_Map::GetX
double GetX(int aIndex)
Definition: AAX_Map.h:40
AAX_Map::GetCoefficient
void GetCoefficient(int aIndex, double *aOutX, double *aOutY)
AAX_Map::GetLastX
double GetLastX()
Definition: AAX_Map.h:44
AAX_Map::GetFirstY
double GetFirstY()
Definition: AAX_Map.h:43
AAX_Map::GetLastY
double GetLastY()
Definition: AAX_Map.h:45
AAX_Map::AAX_Map
AAX_Map()
Definition: AAX_Map.h:34