| 361 | } |
| 362 | |
| 363 | static void put_line(uint8_t *dst, int size, int width, const int *runs) |
| 364 | { |
| 365 | PutBitContext pb; |
| 366 | int run, mode = ~0, pix_left = width, run_idx = 0; |
| 367 | |
| 368 | init_put_bits(&pb, dst, size); |
| 369 | while (pix_left > 0) { |
| 370 | run = runs[run_idx++]; |
| 371 | mode = ~mode; |
| 372 | pix_left -= run; |
| 373 | for (; run > 16; run -= 16) |
| 374 | put_sbits(&pb, 16, mode); |
| 375 | if (run) |
| 376 | put_sbits(&pb, run, mode); |
| 377 | } |
| 378 | flush_put_bits(&pb); |
| 379 | } |
| 380 | |
| 381 | static int find_group3_syncmarker(GetBitContext *gb, int srcsize) |
| 382 | { |
no test coverage detected