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

◆ init_blocksize()

static int32_t fl::third_party::vorbis::init_blocksize ( vorb * f,
int32_t b,
int32_t n )
static

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

1011{
1012 int32_t n2 = n >> 1, n4 = n >> 2, n8 = n >> 3;
1013 f->A[b] = (float *) setup_malloc(f, sizeof(float) * n2);
1014 f->B[b] = (float *) setup_malloc(f, sizeof(float) * n2);
1015 f->C[b] = (float *) setup_malloc(f, sizeof(float) * n4);
1016 if (!f->A[b] || !f->B[b] || !f->C[b]) return error(f, VORBIS_outofmem);
1017 compute_twiddle_factors(n, f->A[b], f->B[b], f->C[b]);
1018 f->window[b] = (float *) setup_malloc(f, sizeof(float) * n2);
1019 if (!f->window[b]) return error(f, VORBIS_outofmem);
1020 compute_window(n, f->window[b]);
1021 f->bit_reverse[b] = (uint16 *) setup_malloc(f, sizeof(uint16) * n8);
1022 if (!f->bit_reverse[b]) return error(f, VORBIS_outofmem);
1024 return true;
1025}
static int32_t error(vorb *f, enum STBVorbisError e) FL_NOEXCEPT
static void compute_twiddle_factors(int32_t n, float *A, float *B, float *C) FL_NOEXCEPT
static void * setup_malloc(vorb *f, int32_t sz) FL_NOEXCEPT
static void compute_window(int32_t n, float *window) FL_NOEXCEPT
static void compute_bitreverse(int32_t n, uint16 *rev) FL_NOEXCEPT
fl::i32 int32_t
Definition coder.h:220

References compute_bitreverse(), compute_twiddle_factors(), compute_window(), error(), FL_NOEXCEPT, setup_malloc(), and VORBIS_outofmem.

Referenced by start_decoder().

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