24bit integer which is used for I2S sound processing. The values are represented as int32_t, but only 3 bytes are used. If you assign values which are too big, they are clipped.
More...
#include <CodecOpusOgg.h>
|
| | int24_4bytes_t () |
| | int24_4bytes_t () |
| | int24_4bytes_t (const float in) |
| | int24_4bytes_t (const float in) |
| | int24_4bytes_t (const int in) |
| | int24_4bytes_t (const int in) |
| | int24_4bytes_t (const int16_t in) |
| | int24_4bytes_t (const int16_t in) |
| | int24_4bytes_t (const int24_4bytes_t &in) |
| | int24_4bytes_t (const int24_4bytes_t &in) |
| | int24_4bytes_t (const int32_t in) |
| | int24_4bytes_t (const int32_t in) |
| | int24_4bytes_t (const int64_t in) |
| | int24_4bytes_t (const int64_t in) |
| | int24_4bytes_t (void *ptr) |
| | int24_4bytes_t (void *ptr) |
| int16_t | getAndScale16 () |
| int16_t | getAndScale16 () |
| | operator float () |
| | operator float () |
| | operator int () |
| | operator int () |
| | operator int64_t () |
| | operator int64_t () |
| int24_4bytes_t & | operator+= (int32_t valueA) |
| int24_4bytes_t & | operator+= (int32_t valueA) |
| int24_4bytes_t & | operator-= (int32_t valueA) |
| int24_4bytes_t & | operator-= (int32_t valueA) |
| int24_4bytes_t & | operator= (const float &other) |
| int24_4bytes_t & | operator= (const float &other) |
| int24_4bytes_t & | operator= (const int24_4bytes_t &other) |
| int24_4bytes_t & | operator= (const int24_4bytes_t &other) |
| int16_t | scale16 () const |
| | provides value between -32767 and 32767
|
| int16_t | scale16 () const |
| | provides value between -32767 and 32767
|
| int32_t | scale32 () const |
| | provides value between -2,147,483,647 and 2,147,483,647
|
| int32_t | scale32 () const |
| | provides value between -2,147,483,647 and 2,147,483,647
|
| float | scaleFloat () const |
| | provides value between -1.0 and 1.0
|
| float | scaleFloat () const |
| | provides value between -1.0 and 1.0
|
| void | set (const int32_t &in) |
| | values are clipped and shifted by 1 byte
|
| void | set (const int32_t &in) |
| | values are clipped and shifted by 1 byte
|
| void | setAndScale16 (int16_t i16) |
| void | setAndScale16 (int16_t i16) |
| float | toFloat () const |
| | convert to float
|
| float | toFloat () const |
| | convert to float
|
| int | toInt () const |
| | Standard Conversion to Int.
|
| int | toInt () const |
| | Standard Conversion to Int.
|
24bit integer which is used for I2S sound processing. The values are represented as int32_t, but only 3 bytes are used. If you assign values which are too big, they are clipped.
- Author
- Phil Schatzmann
- Copyright
- GPLv3
◆ int24_4bytes_t() [1/16]
◆ int24_4bytes_t() [2/16]
| int24_4bytes_t |
( |
void * | ptr | ) |
|
|
inline |
◆ int24_4bytes_t() [3/16]
| int24_4bytes_t |
( |
const int16_t | in | ) |
|
|
inline |
◆ int24_4bytes_t() [4/16]
| int24_4bytes_t |
( |
const int32_t | in | ) |
|
|
inline |
◆ int24_4bytes_t() [5/16]
| int24_4bytes_t |
( |
const int64_t | in | ) |
|
|
inline |
◆ int24_4bytes_t() [6/16]
| int24_4bytes_t |
( |
const int24_4bytes_t & | in | ) |
|
|
inline |
◆ int24_4bytes_t() [7/16]
| int24_4bytes_t |
( |
const float | in | ) |
|
|
inline |
◆ int24_4bytes_t() [8/16]
| int24_4bytes_t |
( |
const int | in | ) |
|
|
inline |
◆ int24_4bytes_t() [9/16]
◆ int24_4bytes_t() [10/16]
| int24_4bytes_t |
( |
void * | ptr | ) |
|
|
inline |
◆ int24_4bytes_t() [11/16]
| int24_4bytes_t |
( |
const int16_t | in | ) |
|
|
inline |
◆ int24_4bytes_t() [12/16]
| int24_4bytes_t |
( |
const int32_t | in | ) |
|
|
inline |
◆ int24_4bytes_t() [13/16]
| int24_4bytes_t |
( |
const int64_t | in | ) |
|
|
inline |
◆ int24_4bytes_t() [14/16]
| int24_4bytes_t |
( |
const int24_4bytes_t & | in | ) |
|
|
inline |
◆ int24_4bytes_t() [15/16]
| int24_4bytes_t |
( |
const float | in | ) |
|
|
inline |
◆ int24_4bytes_t() [16/16]
| int24_4bytes_t |
( |
const int | in | ) |
|
|
inline |
◆ getAndScale16() [1/2]
| int16_t getAndScale16 |
( |
| ) |
|
|
inline |
◆ getAndScale16() [2/2]
| int16_t getAndScale16 |
( |
| ) |
|
|
inline |
◆ operator float() [1/2]
◆ operator float() [2/2]
◆ operator int() [1/2]
◆ operator int() [2/2]
◆ operator int64_t() [1/2]
◆ operator int64_t() [2/2]
◆ operator+=() [1/2]
◆ operator+=() [2/2]
◆ operator-=() [1/2]
◆ operator-=() [2/2]
◆ operator=() [1/4]
◆ operator=() [2/4]
◆ operator=() [3/4]
◆ operator=() [4/4]
◆ scale16() [1/2]
| int16_t scale16 |
( |
| ) |
const |
|
inline |
provides value between -32767 and 32767
◆ scale16() [2/2]
| int16_t scale16 |
( |
| ) |
const |
|
inline |
provides value between -32767 and 32767
◆ scale32() [1/2]
| int32_t scale32 |
( |
| ) |
const |
|
inline |
provides value between -2,147,483,647 and 2,147,483,647
◆ scale32() [2/2]
| int32_t scale32 |
( |
| ) |
const |
|
inline |
provides value between -2,147,483,647 and 2,147,483,647
◆ scaleFloat() [1/2]
| float scaleFloat |
( |
| ) |
const |
|
inline |
provides value between -1.0 and 1.0
◆ scaleFloat() [2/2]
| float scaleFloat |
( |
| ) |
const |
|
inline |
provides value between -1.0 and 1.0
◆ set() [1/2]
| void set |
( |
const int32_t & | in | ) |
|
|
inline |
values are clipped and shifted by 1 byte
◆ set() [2/2]
| void set |
( |
const int32_t & | in | ) |
|
|
inline |
values are clipped and shifted by 1 byte
◆ setAndScale16() [1/2]
| void setAndScale16 |
( |
int16_t | i16 | ) |
|
|
inline |
◆ setAndScale16() [2/2]
| void setAndScale16 |
( |
int16_t | i16 | ) |
|
|
inline |
◆ toFloat() [1/2]
◆ toFloat() [2/2]
◆ toInt() [1/2]
Standard Conversion to Int.
◆ toInt() [2/2]
Standard Conversion to Int.
The documentation for this class was generated from the following files: