| 358 | } |
| 359 | |
| 360 | static void EmitTilesMode2(const tile_line_emitter_t emit_line, const s16 *macroblock, u32 address) |
| 361 | { |
| 362 | |
| 363 | u32 y_offset {0}; |
| 364 | u32 u_offset {4*SUBBLOCK_SIZE}; |
| 365 | |
| 366 | for (u32 i = 0; i < 8; ++i) |
| 367 | { |
| 368 | emit_line(¯oblock[y_offset], ¯oblock[u_offset], address); |
| 369 | emit_line(¯oblock[y_offset + 8], ¯oblock[u_offset], address + 32); |
| 370 | |
| 371 | y_offset += (i == 3) ? SUBBLOCK_SIZE+16 : 16; |
| 372 | u_offset += 8; |
| 373 | address += 64; |
| 374 | } |
| 375 | } |
| 376 | |
| 377 | static void DecodeMacroblock1(s16 *macroblock, s32 *y_dc, s32 *u_dc, s32 *v_dc, const s16 *qtable) |
| 378 | { |