for (unsigned y = 0; y < 8; ++y) {
for (unsigned x = 0; x < 8; ++x) {
for (unsigned int stream_idx = 0; stream_idx < 45; ++stream_idx) {
const uint8_t *out_end = data + (stream_idx * 64 + y * 8 + x + 1) * 1024;
const uint8_t *ptr = data + offsets[stream_idx * 64 + y * 8 + x];
uint32_t num_rans_bytes = out_end - ptr;
for (unsigned y = 0; y < 8; ++y) {
for (unsigned x = 0; x < 8; ++x) {
for (unsigned int stream_idx = 0; stream_idx < 45; ++stream_idx) {
const uint8_t *out_end = data + (stream_idx * 64 + y * 8 + x + 1) * 1024;
const uint8_t *ptr = data + offsets[stream_idx * 64 + y * 8 + x];
uint32_t num_rans_bytes = out_end - ptr;