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

◆ codebook_decode_start()

static int32_t fl::third_party::vorbis::codebook_decode_start ( vorb * f,
Codebook * c )
static

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

1504{
1505 int32_t z = -1;
1506
1507 // type 0 is only legal in a scalar context
1508 if (c->lookup_type == 0)
1510 else {
1511 FL_STBV_DECODE_VQ(z,f,c);
1512 if (c->sparse) FL_ASSERT(z < c->sorted_entries, "z must be < sorted_entries");
1513 if (z < 0) { // check for EOP
1514 if (!f->bytes_in_seg)
1515 if (f->last_seg)
1516 return z;
1518 }
1519 }
1520 return z;
1521}
uint32_t z[NUM_LAYERS]
Definition Fire2023.h:93
#define FL_ASSERT(x, MSG)
Definition assert.h:6
static int32_t error(vorb *f, enum STBVorbisError e) FL_NOEXCEPT
fl::i32 int32_t
Definition coder.h:220
#define FL_STBV_DECODE_VQ(var, f, c)

References error(), FL_ASSERT, FL_NOEXCEPT, FL_STBV_DECODE_VQ, VORBIS_invalid_stream, and z.

Referenced by codebook_decode(), and codebook_decode_step().

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