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

◆ prep_huffman()

FL_ALWAYS_INLINE void fl::third_party::vorbis::prep_huffman ( vorb * f)

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

1363{
1364 if (f->valid_bits <= 24) {
1365 if (f->valid_bits == 0) f->acc = 0;
1366 do {
1367 int32_t z;
1368 if (f->last_seg && !f->bytes_in_seg) return;
1369 z = get8_packet_raw(f);
1370 if (z == EOP) return;
1371 f->acc += (unsigned) z << f->valid_bits;
1372 f->valid_bits += 8;
1373 } while (f->valid_bits <= 24);
1374 }
1375}
uint32_t z[NUM_LAYERS]
Definition Fire2023.h:93
static constexpr int32_t EOP
static int32_t get8_packet_raw(vorb *f) FL_NOEXCEPT
fl::i32 int32_t
Definition coder.h:220

References EOP, FL_ALWAYS_INLINE, FL_NOEXCEPT, get8_packet_raw(), and z.

Referenced by codebook_decode_scalar_raw().

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