Lines Matching refs:pbc
307 PutBitContext pbc; in cbs_write_unit_data() local
324 init_put_bits(&pbc, ctx->write_buffer, ctx->write_buffer_size); in cbs_write_unit_data()
326 ret = ctx->codec->write_unit(ctx, unit, &pbc); in cbs_write_unit_data()
340 av_assert0(put_bits_count(&pbc) <= 8 * ctx->write_buffer_size); in cbs_write_unit_data()
342 if (put_bits_count(&pbc) % 8) in cbs_write_unit_data()
343 unit->data_bit_padding = 8 - put_bits_count(&pbc) % 8; in cbs_write_unit_data()
347 flush_put_bits(&pbc); in cbs_write_unit_data()
349 ret = ff_cbs_alloc_unit_data(unit, put_bits_count(&pbc) / 8); in cbs_write_unit_data()
546 int ff_cbs_write_unsigned(CodedBitstreamContext *ctx, PutBitContext *pbc, in ff_cbs_write_unsigned() argument
560 if (put_bits_left(pbc) < width) in ff_cbs_write_unsigned()
570 ff_cbs_trace_syntax_element(ctx, put_bits_count(pbc), in ff_cbs_write_unsigned()
575 put_bits(pbc, width, value); in ff_cbs_write_unsigned()
577 put_bits32(pbc, value); in ff_cbs_write_unsigned()
625 int ff_cbs_write_signed(CodedBitstreamContext *ctx, PutBitContext *pbc, in ff_cbs_write_signed() argument
639 if (put_bits_left(pbc) < width) in ff_cbs_write_signed()
649 ff_cbs_trace_syntax_element(ctx, put_bits_count(pbc), in ff_cbs_write_signed()
654 put_sbits(pbc, width, value); in ff_cbs_write_signed()
656 put_bits32(pbc, value); in ff_cbs_write_signed()