FastLED 3.9.15
Loading...
Searching...
No Matches

◆ residue_decode()

static int32_t fl::third_party::vorbis::residue_decode ( vorb * f,
Codebook * book,
float * target,
int32_t offset,
int32_t n,
int32_t rtype )
static

Definition at line 1811 of file stb_vorbis.cpp.hpp.

1812{
1813 int32_t k;
1814 if (rtype == 0) {
1815 int32_t step = n / book->dimensions;
1816 for (k=0; k < step; ++k)
1817 if (!codebook_decode_step(f, book, target+offset+k, n-offset-k, step))
1818 return false;
1819 } else {
1820 for (k=0; k < n; ) {
1821 if (!codebook_decode(f, book, target+offset, n-k))
1822 return false;
1823 k += book->dimensions;
1824 offset += book->dimensions;
1825 }
1826 }
1827 return true;
1828}
fl::UISlider offset("Offset", 0.0f, 0.0f, 1.0f, 0.01f)
static int32_t codebook_decode(vorb *f, Codebook *c, float *output, int32_t len) FL_NOEXCEPT
static int32_t codebook_decode_step(vorb *f, Codebook *c, float *output, int32_t len, int32_t step) FL_NOEXCEPT
fl::i32 int32_t
Definition coder.h:220
constexpr enable_if< is_fixed_point< T >::value, T >::type step(T edge, T x) FL_NOEXCEPT

References codebook_decode(), codebook_decode_step(), FL_NOEXCEPT, offset(), and fl::step().

Referenced by decode_residue().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: