9#define INT24_MAX 0x7FFFFF
30 memcpy(value, ptr, 3);
34 value[2] = in > 0 ? 0 : 0xFF;
35 value[1] = (in >> 8) & 0xFF;
51#if defined(USE_INT24_FROM_INT)
59 void set(
const int32_t &in) {
60 value[2] = (in >> 16) & 0xFF;
61 value[1] = (in >> 8) & 0xFF;
75 operator int()
const {
80 int32_t temp =
toInt();
87 int32_t temp =
toInt();
95 int newInt = ((((int32_t)0xFF & value[0]) << 16) | (((int32_t)0xFF & value[1]) << 8) | ((int32_t)0xFF & value[2]));
96 if ((newInt & 0x00800000) > 0) {
123 int16_t *p16 = (int16_t *)&value[1];
127 int16_t *p16 = (int16_t *)&value[1];
142 template<>
class numeric_limits<
audio_tools::int24_3bytes_t> {
#define INT24_MAX
Definition Int24_3bytes_t.h:9
Definition InitializerList.h:7