Lines Matching refs:pbc
272 PutBitContext *pbc) in cbs_mpeg2_write_header() argument
279 err = cbs_mpeg2_write_ ## func(ctx, pbc, unit->content); \ in cbs_mpeg2_write_header()
300 PutBitContext *pbc) in cbs_mpeg2_write_slice() argument
305 err = cbs_mpeg2_write_slice_header(ctx, pbc, &slice->header); in cbs_mpeg2_write_slice()
316 if (slice->data_size * 8 + 8 > put_bits_left(pbc)) in cbs_mpeg2_write_slice()
321 put_bits(pbc, 8 - slice->data_bit_start % 8, in cbs_mpeg2_write_slice()
324 if (put_bits_count(pbc) % 8 == 0) { in cbs_mpeg2_write_slice()
328 flush_put_bits(pbc); in cbs_mpeg2_write_slice()
329 memcpy(put_bits_ptr(pbc), pos, rest); in cbs_mpeg2_write_slice()
330 skip_put_bytes(pbc, rest); in cbs_mpeg2_write_slice()
334 put_bits32(pbc, AV_RB32(pos)); in cbs_mpeg2_write_slice()
337 put_bits(pbc, 8, *pos); in cbs_mpeg2_write_slice()
340 put_bits(pbc, 8 - put_bits_count(pbc) % 8, 0); in cbs_mpeg2_write_slice()
349 PutBitContext *pbc) in cbs_mpeg2_write_unit() argument
352 return cbs_mpeg2_write_slice (ctx, unit, pbc); in cbs_mpeg2_write_unit()
354 return cbs_mpeg2_write_header(ctx, unit, pbc); in cbs_mpeg2_write_unit()