Advertisement
Guest User

Untitled

a guest
Mar 19th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.32 KB | None | 0 0
  1. for (vbl::baseuint g = 0; g < context.num_window_groups; ++g) {
  2. for (vbl::baseuint sfb = 0; sfb < context.max_sfb; ++sfb) {
  3. vbl::baseint is_intensity = IsIntensity(section, g, context.max_sfb, sfb);
  4.  
  5. sfb_cb = section.sfb_cb[ g * context.max_sfb + sfb ];
  6.  
  7. if (sfb_cb == 0) { // zero book
  8. continue;
  9. }
  10. else if ((sfb_cb >= 1 && sfb_cb <= 11) || sfb_cb >= 16) { // spectral books
  11. vbl::uint32 value = 0;
  12. SHuffmanLookupTable tbl = tables.tables[sfb_cb];
  13. vbl::size_t len = reader.ReadVLCLBF<vbl::uint32>(EAACHuffman::optimized_table, tbl, value);
  14. }
  15. else if (sfb_cb == 13) { //noise book
  16. if (is_first_noise) {
  17. reader.SkipNBits(9);
  18. is_first_noise = false;
  19. }
  20. else {
  21. vbl::uint32 value = 0;
  22. SHuffmanLookupTable tbl = tables.tables[sfb_cb];
  23. vbl::size_t len = reader.ReadVLCLBF<vbl::uint32>(EAACHuffman::optimized_table, tbl, value);
  24. }
  25. }
  26. else if (sfb_cb == 14 || sfb_cb == 15) { //intensity books
  27. vbl::uint32 value = 0;
  28. SHuffmanLookupTable tbl = tables.tables[sfb_cb];
  29. vbl::size_t len = reader.ReadVLCLBF<vbl::uint32>(EAACHuffman::optimized_table, tbl, value);
  30. }
  31. else if (sfb_cb == 12) {
  32. result = vbl::EVBLErrorInvalidFormat;
  33. return (result);
  34. }
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement