MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / put_line

Function put_line

libavcodec/faxcompr.c:363–379  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

361}
362
363static 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
381static int find_group3_syncmarker(GetBitContext *gb, int srcsize)
382{

Callers 1

ff_ccitt_unpackFunction · 0.85

Calls 3

init_put_bitsFunction · 0.85
put_sbitsFunction · 0.85
flush_put_bitsFunction · 0.85

Tested by

no test coverage detected