Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (vbl::baseuint g = 0; g < context.num_window_groups; ++g) {
- for (vbl::baseuint sfb = 0; sfb < context.max_sfb; ++sfb) {
- vbl::baseint is_intensity = IsIntensity(section, g, context.max_sfb, sfb);
- sfb_cb = section.sfb_cb[ g * context.max_sfb + sfb ];
- if (sfb_cb == 0) { // zero book
- continue;
- }
- else if ((sfb_cb >= 1 && sfb_cb <= 11) || sfb_cb >= 16) { // spectral books
- vbl::uint32 value = 0;
- SHuffmanLookupTable tbl = tables.tables[sfb_cb];
- vbl::size_t len = reader.ReadVLCLBF<vbl::uint32>(EAACHuffman::optimized_table, tbl, value);
- }
- else if (sfb_cb == 13) { //noise book
- if (is_first_noise) {
- reader.SkipNBits(9);
- is_first_noise = false;
- }
- else {
- vbl::uint32 value = 0;
- SHuffmanLookupTable tbl = tables.tables[sfb_cb];
- vbl::size_t len = reader.ReadVLCLBF<vbl::uint32>(EAACHuffman::optimized_table, tbl, value);
- }
- }
- else if (sfb_cb == 14 || sfb_cb == 15) { //intensity books
- vbl::uint32 value = 0;
- SHuffmanLookupTable tbl = tables.tables[sfb_cb];
- vbl::size_t len = reader.ReadVLCLBF<vbl::uint32>(EAACHuffman::optimized_table, tbl, value);
- }
- else if (sfb_cb == 12) {
- result = vbl::EVBLErrorInvalidFormat;
- return (result);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement