Lines Matching refs:pb
32 PutBitContext pb;
60 init_put_bits(&pb, adts->pce_data, MAX_PCE_SIZE);
62 put_bits(&pb, 3, 5); //ID_PCE
63 adts->pce_size = (ff_copy_pce_data(&pb, &gb) + 3) / 8;
64 flush_put_bits(&pb);
87 PutBitContext pb;
89 init_put_bits(&pb, buf, ADTS_HEADER_SIZE);
92 put_bits(&pb, 12, 0xfff); /* syncword */
93 put_bits(&pb, 1, 0); /* ID */
94 put_bits(&pb, 2, 0); /* layer */
95 put_bits(&pb, 1, 1); /* protection_absent */
96 put_bits(&pb, 2, ctx->objecttype); /* profile_objecttype */
97 put_bits(&pb, 4, ctx->sample_rate_index);
98 put_bits(&pb, 1, 0); /* private_bit */
99 put_bits(&pb, 3, ctx->channel_conf); /* channel_configuration */
100 put_bits(&pb, 1, 0); /* original_copy */
101 put_bits(&pb, 1, 0); /* home */
104 put_bits(&pb, 1, 0); /* copyright_identification_bit */
105 put_bits(&pb, 1, 0); /* copyright_identification_start */
106 put_bits(&pb, 13, ADTS_HEADER_SIZE + size + pce_size); /* aac_frame_length */
107 put_bits(&pb, 11, 0x7ff); /* adts_buffer_fullness */
108 put_bits(&pb, 2, 0); /* number_of_raw_data_blocks_in_frame */
110 flush_put_bits(&pb);
118 ByteIOContext *pb = s->pb;
125 put_buffer(pb, buf, ADTS_HEADER_SIZE);
127 put_buffer(pb, adts->pce_data, adts->pce_size);
131 put_buffer(pb, pkt->data, pkt->size);
132 put_flush_packet(pb);