• Home
  • Raw
  • Download

Lines Matching refs:pbc

107 static int cbs_av1_write_uvlc(CodedBitstreamContext *ctx, PutBitContext *pbc,  in cbs_av1_write_uvlc()  argument
122 position = put_bits_count(pbc); in cbs_av1_write_uvlc()
126 put_bits(pbc, zeroes, 0); in cbs_av1_write_uvlc()
127 put_bits(pbc, 1, 1); in cbs_av1_write_uvlc()
128 put_bits(pbc, zeroes, v); in cbs_av1_write_uvlc()
180 static int cbs_av1_write_leb128(CodedBitstreamContext *ctx, PutBitContext *pbc, in cbs_av1_write_leb128() argument
189 position = put_bits_count(pbc); in cbs_av1_write_leb128()
198 err = ff_cbs_write_unsigned(ctx, pbc, 8, "leb128_byte[i]", subscript, in cbs_av1_write_leb128()
260 static int cbs_av1_write_ns(CodedBitstreamContext *ctx, PutBitContext *pbc, in cbs_av1_write_ns() argument
275 position = put_bits_count(pbc); in cbs_av1_write_ns()
280 if (put_bits_left(pbc) < w) in cbs_av1_write_ns()
285 put_bits(pbc, w - 1, v); in cbs_av1_write_ns()
289 put_bits(pbc, w - 1, v); in cbs_av1_write_ns()
290 put_bits(pbc, 1, extra_bit); in cbs_av1_write_ns()
346 static int cbs_av1_write_increment(CodedBitstreamContext *ctx, PutBitContext *pbc, in cbs_av1_write_increment() argument
364 if (put_bits_left(pbc) < len) in cbs_av1_write_increment()
377 ff_cbs_trace_syntax_element(ctx, put_bits_count(pbc), in cbs_av1_write_increment()
382 put_bits(pbc, len, (1 << len) - 1 - (value != range_max)); in cbs_av1_write_increment()
437 static int cbs_av1_write_subexp(CodedBitstreamContext *ctx, PutBitContext *pbc, in cbs_av1_write_subexp() argument
452 position = put_bits_count(pbc); in cbs_av1_write_subexp()
473 err = cbs_av1_write_increment(ctx, pbc, 0, max_len, in cbs_av1_write_subexp()
479 err = ff_cbs_write_unsigned(ctx, pbc, range_bits, in cbs_av1_write_subexp()
487 err = cbs_av1_write_ns(ctx, pbc, range_max - range_offset, in cbs_av1_write_subexp()
1053 PutBitContext *pbc) in cbs_av1_write_obu() argument
1067 err = cbs_av1_write_obu_header(ctx, pbc, &obu->header); in cbs_av1_write_obu()
1072 pbc_tmp = *pbc; in cbs_av1_write_obu()
1074 put_bits32(pbc, 0); in cbs_av1_write_obu()
1075 put_bits32(pbc, 0); in cbs_av1_write_obu()
1079 start_pos = put_bits_count(pbc); in cbs_av1_write_obu()
1084 err = cbs_av1_write_sequence_header_obu(ctx, pbc, in cbs_av1_write_obu()
1104 err = cbs_av1_write_temporal_delimiter_obu(ctx, pbc); in cbs_av1_write_obu()
1112 err = cbs_av1_write_frame_header_obu(ctx, pbc, in cbs_av1_write_obu()
1123 err = cbs_av1_write_tile_group_obu(ctx, pbc, in cbs_av1_write_obu()
1133 err = cbs_av1_write_frame_obu(ctx, pbc, &obu->obu.frame, NULL); in cbs_av1_write_obu()
1142 err = cbs_av1_write_tile_list_obu(ctx, pbc, &obu->obu.tile_list); in cbs_av1_write_obu()
1151 err = cbs_av1_write_metadata_obu(ctx, pbc, &obu->obu.metadata); in cbs_av1_write_obu()
1158 err = cbs_av1_write_padding_obu(ctx, pbc, &obu->obu.padding); in cbs_av1_write_obu()
1167 end_pos = put_bits_count(pbc); in cbs_av1_write_obu()
1173 err = cbs_av1_write_trailing_bits(ctx, pbc, 8 - end_pos % 8); in cbs_av1_write_obu()
1176 end_pos = put_bits_count(pbc); in cbs_av1_write_obu()
1183 end_pos = put_bits_count(pbc); in cbs_av1_write_obu()
1186 flush_put_bits(pbc); in cbs_av1_write_obu()
1190 *pbc = pbc_tmp; in cbs_av1_write_obu()
1191 err = cbs_av1_write_leb128(ctx, pbc, "obu_size", obu->obu_size); in cbs_av1_write_obu()
1195 data_pos = put_bits_count(pbc) / 8; in cbs_av1_write_obu()
1196 flush_put_bits(pbc); in cbs_av1_write_obu()
1199 if (8 * obu->obu_size > put_bits_left(pbc)) in cbs_av1_write_obu()
1203 memmove(pbc->buf + data_pos, in cbs_av1_write_obu()
1204 pbc->buf + start_pos, header_size); in cbs_av1_write_obu()
1205 skip_put_bytes(pbc, header_size); in cbs_av1_write_obu()
1208 memcpy(pbc->buf + data_pos + header_size, in cbs_av1_write_obu()
1210 skip_put_bytes(pbc, td->data_size); in cbs_av1_write_obu()
1215 av_assert0(put_bits_count(pbc) % 8 == 0); in cbs_av1_write_obu()