/third_party/pulseaudio/src/modules/raop/ |
D | raop-packet-buffer.c | 50 pa_raop_packet_buffer *pb = pa_xnew0(pa_raop_packet_buffer, 1); in pa_raop_packet_buffer_new() local 55 pb->count = 0; in pa_raop_packet_buffer_new() 56 pb->size = size; in pa_raop_packet_buffer_new() 57 pb->mempool = mempool; in pa_raop_packet_buffer_new() 58 pb->packets = pa_xnew0(pa_memchunk, size); in pa_raop_packet_buffer_new() 59 pb->seq = pb->pos = 0; in pa_raop_packet_buffer_new() 61 return pb; in pa_raop_packet_buffer_new() 64 void pa_raop_packet_buffer_free(pa_raop_packet_buffer *pb) { in pa_raop_packet_buffer_free() argument 67 pa_assert(pb); in pa_raop_packet_buffer_free() 69 for (i = 0; pb->packets && i < pb->size; i++) { in pa_raop_packet_buffer_free() [all …]
|
/third_party/ffmpeg/libavformat/ |
D | gxfenc.c | 135 static void gxf_write_padding(AVIOContext *pb, int64_t to_pad) in gxf_write_padding() argument 138 avio_w8(pb, 0); in gxf_write_padding() 142 static int64_t updatePacketSize(AVIOContext *pb, int64_t pos) in updatePacketSize() argument 147 size = avio_tell(pb) - pos; in updatePacketSize() 149 gxf_write_padding(pb, 4 - size % 4); in updatePacketSize() 150 size = avio_tell(pb) - pos; in updatePacketSize() 152 curpos = avio_tell(pb); in updatePacketSize() 153 avio_seek(pb, pos + 6, SEEK_SET); in updatePacketSize() 154 avio_wb32(pb, size); in updatePacketSize() 155 avio_seek(pb, curpos, SEEK_SET); in updatePacketSize() [all …]
|
D | movenc.c | 143 static int64_t update_size(AVIOContext *pb, int64_t pos) in update_size() argument 145 int64_t curpos = avio_tell(pb); in update_size() 146 avio_seek(pb, pos, SEEK_SET); in update_size() 147 avio_wb32(pb, curpos - pos); /* rewrite size */ in update_size() 148 avio_seek(pb, curpos, SEEK_SET); in update_size() 177 static int mov_write_stco_tag(AVIOContext *pb, MOVTrack *track) in mov_write_stco_tag() argument 181 int64_t pos = avio_tell(pb); in mov_write_stco_tag() 182 avio_wb32(pb, 0); /* size */ in mov_write_stco_tag() 184 ffio_wfourcc(pb, "co64"); in mov_write_stco_tag() 186 ffio_wfourcc(pb, "stco"); in mov_write_stco_tag() [all …]
|
D | rmdec.c | 71 static inline void get_strl(AVIOContext *pb, char *buf, int buf_size, int len) in get_strl() argument 73 int read = avio_get_str(pb, len, buf, buf_size); in get_strl() 76 avio_skip(pb, len - read); in get_strl() 79 static void get_str8(AVIOContext *pb, char *buf, int buf_size) in get_str8() argument 81 get_strl(pb, buf, buf_size, avio_r8(pb)); in get_str8() 84 static int rm_read_extradata(AVFormatContext *s, AVIOContext *pb, AVCodecParameters *par, unsigned … in rm_read_extradata() argument 90 return ff_get_extradata(s, par, pb, size); in rm_read_extradata() 93 static void rm_read_metadata(AVFormatContext *s, AVIOContext *pb, int wide) in rm_read_metadata() argument 99 int len = wide ? avio_rb16(pb) : avio_r8(pb); in rm_read_metadata() 101 get_strl(pb, buf, sizeof(buf), len); in rm_read_metadata() [all …]
|
D | wtvenc.c | 123 typedef int WTVHeaderWriteFunc(AVIOContext *pb); 131 #define write_pad(pb, size) ffio_fill(pb, 0, size) argument 139 AVIOContext *pb = s->pb; in write_chunk_header() local 141 wctx->last_chunk_pos = avio_tell(pb) - wctx->timeline_start_pos; in write_chunk_header() 142 ff_put_guid(pb, guid); in write_chunk_header() 143 avio_wl32(pb, 32 + length); in write_chunk_header() 144 avio_wl32(pb, stream_id); in write_chunk_header() 145 avio_wl64(pb, wctx->serial); in write_chunk_header() 161 AVIOContext *pb = s->pb; in write_chunk_header2() local 165 avio_wl64(pb, last_chunk_pos); in write_chunk_header2() [all …]
|
D | asfenc.c | 239 AVIOContext pb; member 270 uint8_t *pb; in put_str16() local 276 len = avio_close_dyn_buf(dyn_buf, &pb); in put_str16() 278 avio_write(s, pb, len); in put_str16() 279 av_freep(&pb); in put_str16() 282 static int64_t put_header(AVIOContext *pb, const ff_asf_guid *g) in put_header() argument 286 pos = avio_tell(pb); in put_header() 287 ff_put_guid(pb, g); in put_header() 288 avio_wl64(pb, 24); in put_header() 293 static void end_header(AVIOContext *pb, int64_t pos) in end_header() argument [all …]
|
D | mmf.c | 56 static void end_tag_be(AVIOContext *pb, int64_t start) in end_tag_be() argument 60 pos = avio_tell(pb); in end_tag_be() 61 avio_seek(pb, start - 4, SEEK_SET); in end_tag_be() 62 avio_wb32(pb, (uint32_t)(pos - start)); in end_tag_be() 63 avio_seek(pb, pos, SEEK_SET); in end_tag_be() 69 AVIOContext *pb = s->pb; in mmf_write_header() local 92 ffio_wfourcc(pb, "MMMD"); in mmf_write_header() 93 avio_wb32(pb, 0); in mmf_write_header() 94 pos = ff_start_tag(pb, "CNTI"); in mmf_write_header() 95 avio_w8(pb, 0); /* class */ in mmf_write_header() [all …]
|
D | flvenc.c | 226 static void put_amf_string(AVIOContext *pb, const char *str) in put_amf_string() argument 229 avio_wb16(pb, len); in put_amf_string() 230 avio_write(pb, str, len); in put_amf_string() 234 static void put_timestamp(AVIOContext *pb, int64_t ts) { in put_timestamp() argument 235 avio_wb24(pb, ts & 0xFFFFFF); in put_timestamp() 236 avio_w8(pb, (ts >> 24) & 0x7F); in put_timestamp() 239 static void put_avc_eos_tag(AVIOContext *pb, unsigned ts) in put_avc_eos_tag() argument 241 avio_w8(pb, FLV_TAG_TYPE_VIDEO); in put_avc_eos_tag() 242 avio_wb24(pb, 5); /* Tag Data Size */ in put_avc_eos_tag() 243 put_timestamp(pb, ts); in put_avc_eos_tag() [all …]
|
D | mlvdec.c | 49 AVIOContext *pb[101]; member 66 static int check_file_header(AVIOContext *pb, uint64_t guid) in check_file_header() argument 71 avio_skip(pb, 4); in check_file_header() 72 size = avio_rl32(pb); in check_file_header() 75 avio_read(pb, version, 8); in check_file_header() 76 if (memcmp(version, MLV_VERSION, 5) || avio_rl64(pb) != guid) in check_file_header() 78 avio_skip(pb, size - 24); in check_file_header() 82 static void read_string(AVFormatContext *avctx, AVIOContext *pb, const char *tag, unsigned size) in read_string() argument 86 avio_skip(pb, size); in read_string() 90 avio_read(pb, value, size); in read_string() [all …]
|
D | avienc.c | 111 AVIOContext *pb = s->pb; in avi_add_ientry() local 136 idx->cluster[cl][id].pos = avio_tell(pb) - avi->movi_list; in avi_add_ientry() 159 static int64_t avi_start_new_riff(AVFormatContext *s, AVIOContext *pb, in avi_start_new_riff() argument 173 avi->riff_start = ff_start_tag(pb, "RIFF"); in avi_start_new_riff() 174 ffio_wfourcc(pb, riff_tag); in avi_start_new_riff() 175 loff = ff_start_tag(pb, "LIST"); in avi_start_new_riff() 176 ffio_wfourcc(pb, list_tag); in avi_start_new_riff() 201 AVIOContext *pb = s->pb; in avi_write_counters() local 207 file_size = avio_tell(pb); in avi_write_counters() 213 avio_seek(pb, avist->frames_hdr_strm, SEEK_SET); in avi_write_counters() [all …]
|
D | gifdec.c | 85 static int resync(AVIOContext *pb) in resync() argument 89 int b = avio_r8(pb); in resync() 92 if (avio_feof(pb)) in resync() 98 static int gif_skip_subblocks(AVIOContext *pb) in gif_skip_subblocks() argument 102 while (0x00 != (sb_size = avio_r8(pb))) { in gif_skip_subblocks() 103 if ((ret = avio_skip(pb, sb_size)) < 0) in gif_skip_subblocks() 113 AVIOContext *pb = s->pb; in gif_read_header() local 118 if ((ret = resync(pb)) < 0) in gif_read_header() 122 width = avio_rl16(pb); in gif_read_header() 123 height = avio_rl16(pb); in gif_read_header() [all …]
|
D | movenccenc.c | 89 static void mov_cenc_write_encrypted(MOVMuxCencContext* ctx, AVIOContext *pb, in mov_cenc_write_encrypted() argument 100 avio_write(pb, chunk, cur_size); in mov_cenc_write_encrypted() 167 int ff_mov_cenc_write_packet(MOVMuxCencContext* ctx, AVIOContext *pb, in ff_mov_cenc_write_packet() argument 182 mov_cenc_write_encrypted(ctx, pb, buf_in, size); in ff_mov_cenc_write_packet() 192 int ff_mov_cenc_avc_parse_nal_units(MOVMuxCencContext* ctx, AVIOContext *pb, in ff_mov_cenc_avc_parse_nal_units() argument 214 avio_wb32(pb, nal_end - nal_start); in ff_mov_cenc_avc_parse_nal_units() 215 avio_w8(pb, *nal_start); in ff_mov_cenc_avc_parse_nal_units() 216 mov_cenc_write_encrypted(ctx, pb, nal_start + 1, nal_end - nal_start - 1); in ff_mov_cenc_avc_parse_nal_units() 233 int nal_length_size, AVIOContext *pb, const uint8_t *buf_in, int size) in ff_mov_cenc_avc_write_nal_units() argument 252 avio_write(pb, buf_in, nal_length_size + 1); in ff_mov_cenc_avc_write_nal_units() [all …]
|
D | cafenc.c | 107 AVIOContext *pb = s->pb; in caf_write_header() local 136 if (!par->block_align && !(pb->seekable & AVIO_SEEKABLE_NORMAL)) { in caf_write_header() 144 ffio_wfourcc(pb, "caff"); //< mFileType in caf_write_header() 145 avio_wb16(pb, 1); //< mFileVersion in caf_write_header() 146 avio_wb16(pb, 0); //< mFileFlags in caf_write_header() 148 ffio_wfourcc(pb, "desc"); //< Audio Description chunk in caf_write_header() 149 avio_wb64(pb, 32); //< mChunkSize in caf_write_header() 150 avio_wb64(pb, av_double2int(par->sample_rate)); //< mSampleRate in caf_write_header() 151 avio_wl32(pb, codec_tag); //< mFormatID in caf_write_header() 152 avio_wb32(pb, codec_flags(par->codec_id)); //< mFormatFlags in caf_write_header() [all …]
|
D | aiffenc.c | 50 AVIOContext *pb = s->pb; in put_id3v2_tags() local 56 avio_wl32(pb, MKTAG('I', 'D', '3', ' ')); in put_id3v2_tags() 57 avio_wb32(pb, 0); in put_id3v2_tags() 58 pos = avio_tell(pb); in put_id3v2_tags() 60 ff_id3v2_start(&id3v2, pb, aiff->id3v2_version, ID3v2_DEFAULT_MAGIC); in put_id3v2_tags() 67 ff_id3v2_finish(&id3v2, pb, s->metadata_header_padding); in put_id3v2_tags() 69 end = avio_tell(pb); in put_id3v2_tags() 73 avio_seek(pb, pos - 4, SEEK_SET); in put_id3v2_tags() 74 avio_wb32(pb, size); in put_id3v2_tags() 75 avio_seek(pb, end, SEEK_SET); in put_id3v2_tags() [all …]
|
D | cinedec.c | 94 AVIOContext *pb = avctx->pb; in cine_read_header() local 109 avio_skip(pb, 4); // Type, Headersize in cine_read_header() 111 compression = avio_rl16(pb); in cine_read_header() 112 version = avio_rl16(pb); in cine_read_header() 118 avio_skip(pb, 12); // FirstMovieImage, TotalImageCount, FirstImageNumber in cine_read_header() 120 st->duration = avio_rl32(pb); in cine_read_header() 121 offImageHeader = avio_rl32(pb); in cine_read_header() 122 offSetup = avio_rl32(pb); in cine_read_header() 123 offImageOffsets = avio_rl32(pb); in cine_read_header() 125 avio_skip(pb, 8); // TriggerTime in cine_read_header() [all …]
|
D | swfenc.c | 49 AVIOContext *pb = s->pb; in put_swf_tag() local 51 swf->tag_pos = avio_tell(pb); in put_swf_tag() 55 avio_wl16(pb, 0); in put_swf_tag() 56 avio_wl32(pb, 0); in put_swf_tag() 58 avio_wl16(pb, 0); in put_swf_tag() 65 AVIOContext *pb = s->pb; in put_swf_end_tag() local 69 pos = avio_tell(pb); in put_swf_end_tag() 72 avio_seek(pb, swf->tag_pos, SEEK_SET); in put_swf_end_tag() 75 avio_wl16(pb, (tag << 6) | 0x3f); in put_swf_end_tag() 76 avio_wl32(pb, tag_len - 4); in put_swf_end_tag() [all …]
|
D | wavenc.c | 97 avio_write(s->pb, tag->value, len); in bwf_write_bext_string() 100 ffio_fill(s->pb, 0, maxlen - len); in bwf_write_bext_string() 107 int64_t bext = ff_start_tag(s->pb, "bext"); in bwf_write_bext_chunk() 117 avio_wl64(s->pb, time_reference); in bwf_write_bext_chunk() 118 avio_wl16(s->pb, 1); // set version to 1 in bwf_write_bext_chunk() 129 avio_wb64(s->pb, umidpart); in bwf_write_bext_chunk() 131 ffio_fill(s->pb, 0, 64 - i*8); in bwf_write_bext_chunk() 133 ffio_fill(s->pb, 0, 64); // zero UMID in bwf_write_bext_chunk() 135 ffio_fill(s->pb, 0, 190); // Reserved in bwf_write_bext_chunk() 138 avio_put_str(s->pb, tmp_tag->value); in bwf_write_bext_chunk() [all …]
|
D | mxfenc.c | 426 static void mxf_write_uuid(AVIOContext *pb, enum MXFMetadataSetType type, int value) in mxf_write_uuid() argument 428 avio_write(pb, uuid_base, 12); in mxf_write_uuid() 429 avio_wb16(pb, type); in mxf_write_uuid() 430 avio_wb16(pb, value); in mxf_write_uuid() 436 avio_write(s->pb, umid_ul, 13); in mxf_write_umid() 437 avio_wb24(s->pb, mxf->instance_number); in mxf_write_umid() 438 avio_write(s->pb, mxf->umid, 15); in mxf_write_umid() 439 avio_w8(s->pb, type); in mxf_write_umid() 442 static void mxf_write_refs_count(AVIOContext *pb, int ref_count) in mxf_write_refs_count() argument 444 avio_wb32(pb, ref_count); in mxf_write_refs_count() [all …]
|
D | moflex.c | 44 static int pop(BitReader *br, AVIOContext *pb) in pop() argument 46 if (avio_feof(pb)) in pop() 50 br->last = (unsigned)avio_r8(pb) << 24U; in pop() 58 static int pop_int(BitReader *br, AVIOContext *pb, int n) in pop_int() argument 63 int ret = pop(br, pb); in pop_int() 75 static int pop_length(BitReader *br, AVIOContext *pb) in pop_length() argument 79 while ((ret = pop(br, pb)) == 0) in pop_length() 89 AVIOContext *pb = s->pb; in read_var_byte() local 92 data = avio_r8(pb); in read_var_byte() 99 data = avio_r8(pb); in read_var_byte() [all …]
|
D | astenc.c | 50 AVIOContext *pb = s->pb; in ast_write_header() local 81 ffio_wfourcc(pb, "STRM"); in ast_write_header() 83 ast->size = avio_tell(pb); in ast_write_header() 84 avio_wb32(pb, 0); /* File size minus header */ in ast_write_header() 85 avio_wb16(pb, codec_tag); in ast_write_header() 86 avio_wb16(pb, 16); /* Bit depth */ in ast_write_header() 87 avio_wb16(pb, par->channels); in ast_write_header() 88 avio_wb16(pb, 0); /* Loop flag */ in ast_write_header() 89 avio_wb32(pb, par->sample_rate); in ast_write_header() 91 ast->samples = avio_tell(pb); in ast_write_header() [all …]
|
/third_party/openssl/test/ |
D | pkcs12_format_test.c | 329 PKCS12_BUILDER *pb = new_pkcs12_builder("1cert.p12"); in test_single_cert_no_attrs() local 332 start_pkcs12(pb); in test_single_cert_no_attrs() 334 start_contentinfo(pb); in test_single_cert_no_attrs() 336 add_certbag(pb, CERT1, sizeof(CERT1), NULL); in test_single_cert_no_attrs() 338 end_contentinfo(pb); in test_single_cert_no_attrs() 340 end_pkcs12(pb); in test_single_cert_no_attrs() 343 start_check_pkcs12(pb); in test_single_cert_no_attrs() 345 start_check_contentinfo(pb); in test_single_cert_no_attrs() 347 check_certbag(pb, CERT1, sizeof(CERT1), NULL); in test_single_cert_no_attrs() 349 end_check_contentinfo(pb); in test_single_cert_no_attrs() [all …]
|
/third_party/openssl/test/helpers/ |
D | pkcs12.c | 38 static void generate_p12(PKCS12_BUILDER *pb, const PKCS12_ENC *mac); 105 PKCS12_BUILDER *pb = OPENSSL_malloc(sizeof(PKCS12_BUILDER)); in new_pkcs12_builder() local 106 if (!TEST_ptr(pb)) in new_pkcs12_builder() 109 pb->filename = filename; in new_pkcs12_builder() 110 pb->success = 1; in new_pkcs12_builder() 111 return pb; in new_pkcs12_builder() 114 int end_pkcs12_builder(PKCS12_BUILDER *pb) in end_pkcs12_builder() argument 116 int result = pb->success; in end_pkcs12_builder() 118 OPENSSL_free(pb); in end_pkcs12_builder() 123 void start_pkcs12(PKCS12_BUILDER *pb) in start_pkcs12() argument [all …]
|
/third_party/ffmpeg/libavcodec/ |
D | hevc_ps_enc.c | 25 static void write_ptl_layer(PutBitContext *pb, PTLCommon *ptl) in write_ptl_layer() argument 29 put_bits(pb, 2, ptl->profile_space); in write_ptl_layer() 30 put_bits(pb, 1, ptl->tier_flag); in write_ptl_layer() 31 put_bits(pb, 5, ptl->profile_idc); in write_ptl_layer() 33 put_bits(pb, 1, ptl->profile_compatibility_flag[i]); in write_ptl_layer() 34 put_bits(pb, 1, ptl->progressive_source_flag); in write_ptl_layer() 35 put_bits(pb, 1, ptl->interlaced_source_flag); in write_ptl_layer() 36 put_bits(pb, 1, ptl->non_packed_constraint_flag); in write_ptl_layer() 37 put_bits(pb, 1, ptl->frame_only_constraint_flag); in write_ptl_layer() 38 put_bits32(pb, 0); // reserved in write_ptl_layer() [all …]
|
D | eac3enc.c | 130 put_bits(&s->pb, 16, 0x0b77); /* sync word */ in ff_eac3_output_frame_header() 133 put_bits(&s->pb, 2, 0); /* stream type = independent */ in ff_eac3_output_frame_header() 134 put_bits(&s->pb, 3, 0); /* substream id = 0 */ in ff_eac3_output_frame_header() 135 put_bits(&s->pb, 11, (s->frame_size / 2) - 1); /* frame size */ in ff_eac3_output_frame_header() 137 put_bits(&s->pb, 2, 0x3); /* fscod2 */ in ff_eac3_output_frame_header() 138 put_bits(&s->pb, 2, s->bit_alloc.sr_code); /* sample rate code */ in ff_eac3_output_frame_header() 140 put_bits(&s->pb, 2, s->bit_alloc.sr_code); /* sample rate code */ in ff_eac3_output_frame_header() 141 put_bits(&s->pb, 2, s->num_blks_code); /* number of blocks */ in ff_eac3_output_frame_header() 143 put_bits(&s->pb, 3, s->channel_mode); /* audio coding mode */ in ff_eac3_output_frame_header() 144 put_bits(&s->pb, 1, s->lfe_on); /* LFE channel indicator */ in ff_eac3_output_frame_header() [all …]
|
/third_party/protobuf/csharp/src/Google.Protobuf.Test.TestProtos/ |
D | UnittestCustomOptionsProto3.cs | 8 using pb = global::Google.Protobuf; typedef 142 …hodOpt1), typeof(global::UnitTest.Issues.TestProtos.AggregateEnum), }, new pb::Extension[] { Unitt… in UnittestCustomOptionsProto3Reflection() 156 …onType2.Types.ComplexOptionType4.Parser, new[]{ "Waldo" }, null, null, new pb::Extension[] { globa… in UnittestCustomOptionsProto3Reflection() 169 …public static readonly pb::Extension<global::Google.Protobuf.Reflection.FileOptions, ulong> FileOp… 170 …new pb::Extension<global::Google.Protobuf.Reflection.FileOptions, ulong>(7736974, pb::FieldCodec.F… 171 …public static readonly pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, int> Messa… 172 …new pb::Extension<global::Google.Protobuf.Reflection.MessageOptions, int>(7739036, pb::FieldCodec.… 173 …public static readonly pb::Extension<global::Google.Protobuf.Reflection.FieldOptions, ulong> Field… 174 …new pb::Extension<global::Google.Protobuf.Reflection.FieldOptions, ulong>(7740936, pb::FieldCodec.… 175 …public static readonly pb::Extension<global::Google.Protobuf.Reflection.OneofOptions, int> OneofOp… [all …]
|