Home
last modified time | relevance | path

Searched refs:avio_w8 (Results 1 – 25 of 51) sorted by relevance

123

/third_party/ffmpeg/libavformat/
Dvocenc.c62 avio_w8(pb, VOC_TYPE_NEW_VOICE_DATA); in voc_write_packet()
65 avio_w8(pb, par->bits_per_coded_sample); in voc_write_packet()
66 avio_w8(pb, par->channels); in voc_write_packet()
71 avio_w8(pb, VOC_TYPE_EXTENDED); in voc_write_packet()
74 avio_w8(pb, par->codec_tag); in voc_write_packet()
75 avio_w8(pb, par->channels - 1); in voc_write_packet()
77 avio_w8(pb, VOC_TYPE_VOICE_DATA); in voc_write_packet()
79 avio_w8(pb, 256 - (1000000 + par->sample_rate/2) / par->sample_rate); in voc_write_packet()
80 avio_w8(pb, par->codec_tag); in voc_write_packet()
84 avio_w8(pb, VOC_TYPE_VOICE_DATA_CONT); in voc_write_packet()
[all …]
Dgxfenc.c138 avio_w8(pb, 0); in gxf_write_padding()
173 avio_w8(pb, 1); in gxf_write_packet_header()
174 avio_w8(pb, type); /* map packet */ in gxf_write_packet_header()
177 avio_w8(pb, 0xE1); /* trailer 1 */ in gxf_write_packet_header()
178 avio_w8(pb, 0xE2); /* trailer 2 */ in gxf_write_packet_header()
214 avio_w8(pb, TRACK_MPG_AUX); in gxf_write_mpeg_auxiliary()
215 avio_w8(pb, size + 1); in gxf_write_mpeg_auxiliary()
224 avio_w8(pb, TRACK_AUX); in gxf_write_dv_auxiliary()
225 avio_w8(pb, 8); in gxf_write_dv_auxiliary()
239 avio_w8(pb, TRACK_AUX); in gxf_write_timecode_auxiliary()
[all …]
Dmmf.c95 avio_w8(pb, 0); /* class */ in mmf_write_header()
96 avio_w8(pb, 1); /* type */ in mmf_write_header()
97 avio_w8(pb, 1); /* code type */ in mmf_write_header()
98 avio_w8(pb, 0); /* status */ in mmf_write_header()
99 avio_w8(pb, 0); /* counts */ in mmf_write_header()
109 avio_w8(pb, 0); /* format type */ in mmf_write_header()
110 avio_w8(pb, 0); /* sequence type */ in mmf_write_header()
111 avio_w8(pb, (mmf->stereo << 7) | (1 << 4) | rate); /* (channel << 7) | (format << 4) | rate */ in mmf_write_header()
112 avio_w8(pb, 0); /* wave base bit */ in mmf_write_header()
113 avio_w8(pb, 2); /* time base d */ in mmf_write_header()
[all …]
Dffmetaenc.c35 avio_w8(s, '\\'); in write_escape_str()
36 avio_w8(s, *p); in write_escape_str()
46 avio_w8(s, '='); in write_tags()
48 avio_w8(s, '\n'); in write_tags()
55 avio_w8(s->pb, '1'); // version in write_header()
56 avio_w8(s->pb, '\n'); in write_header()
68 avio_w8(s->pb, '\n'); in write_trailer()
75 avio_w8(s->pb, '\n'); in write_trailer()
Dflvenc.c236 avio_w8(pb, (ts >> 24) & 0x7F); in put_timestamp()
241 avio_w8(pb, FLV_TAG_TYPE_VIDEO); in put_avc_eos_tag()
245 avio_w8(pb, 23); /* ub[4] FrameType = 1, ub[4] CodecId = 7 */ in put_avc_eos_tag()
246 avio_w8(pb, 2); /* AVC end of sequence */ in put_avc_eos_tag()
253 avio_w8(pb, AMF_DATA_TYPE_NUMBER); in put_amf_double()
259 avio_w8(pb, abyte); in put_amf_byte()
264 avio_w8(pb, AMF_DATA_TYPE_ARRAY); in put_amf_dword_array()
270 avio_w8(pb, AMF_DATA_TYPE_BOOL); in put_amf_bool()
271 avio_w8(pb, !!b); in put_amf_bool()
284 avio_w8(pb, FLV_TAG_TYPE_META); // tag type META in write_metadata()
[all …]
Drmenc.c57 avio_w8(s, *tag++); in put_str()
63 avio_w8(s, strlen(tag)); in put_str8()
65 avio_w8(s, *tag++); in put_str8()
192 avio_w8(s, 0xfd); in rv10_write_header()
234 avio_w8(s, 4); /* tag length */ in rv10_write_header()
243 avio_w8(s, 0); /* end of header */ in rv10_write_header()
309 avio_w8(s, 0); /* reserved */ in write_packet_header()
310 avio_w8(s, key_frame ? 2 : 0); /* flags */ in write_packet_header()
378 avio_w8(pb, buf[i + 1]); in rm_write_audio()
379 avio_w8(pb, buf[i]); in rm_write_audio()
[all …]
Dvpcc.c159 avio_w8(pb, vpcc.profile); in ff_isom_write_vpcc()
160 avio_w8(pb, vpcc.level); in ff_isom_write_vpcc()
161 avio_w8(pb, (vpcc.bitdepth << 4) | (vpcc.chroma_subsampling << 1) | vpcc.full_range_flag); in ff_isom_write_vpcc()
162 avio_w8(pb, par->color_primaries); in ff_isom_write_vpcc()
163 avio_w8(pb, par->color_trc); in ff_isom_write_vpcc()
164 avio_w8(pb, par->color_space); in ff_isom_write_vpcc()
Dgif.c135 avio_w8(pb, GIF_EXTENSION_INTRODUCER); /* GIF Extension code */ in gif_write_packet()
136 avio_w8(pb, GIF_APP_EXT_LABEL); /* Application Extension Label */ in gif_write_packet()
137 avio_w8(pb, 0x0b); /* Length of Application Block */ in gif_write_packet()
139 avio_w8(pb, 0x03); /* Length of Data Sub-Block */ in gif_write_packet()
140 avio_w8(pb, 0x01); in gif_write_packet()
142 avio_w8(pb, 0x00); /* Data Sub-block Terminator */ in gif_write_packet()
183 avio_w8(pb, GIF_TRAILER); in gif_write_trailer()
Did3v2enc.c34 avio_w8(pb, size >> 21 & 0x7f); in id3v2_put_size()
35 avio_w8(pb, size >> 14 & 0x7f); in id3v2_put_size()
36 avio_w8(pb, size >> 7 & 0x7f); in id3v2_put_size()
37 avio_w8(pb, size & 0x7f); in id3v2_put_size()
80 avio_w8(dyn_buf, enc); in id3v2_put_ttag()
124 avio_w8(dyn_buf, strtol(digits, NULL, 16)); in id3v2_put_priv()
211 avio_w8(pb, 0); in ff_id3v2_start()
212 avio_w8(pb, 0); /* flags */ in ff_id3v2_start()
272 avio_w8(dyn_bc, 0x03); in write_ctoc()
273 avio_w8(dyn_bc, s->nb_chapters); in write_ctoc()
[all …]
Davc.c187 avio_w8(pb, 1); /* version */ in ff_isom_write_avcc()
188 avio_w8(pb, sps[3]); /* profile */ in ff_isom_write_avcc()
189 avio_w8(pb, sps[4]); /* profile compat */ in ff_isom_write_avcc()
190 avio_w8(pb, sps[5]); /* level */ in ff_isom_write_avcc()
191 avio_w8(pb, 0xff); /* 6 bits reserved (111111) + 2 bits nal size length - 1 (11) */ in ff_isom_write_avcc()
192 avio_w8(pb, 0xe0 | nb_sps); /* 3 bits reserved (111) + 5 bits number of sps */ in ff_isom_write_avcc()
195 avio_w8(pb, nb_pps); /* number of pps */ in ff_isom_write_avcc()
204avio_w8(pb, 0xfc | seq.chroma_format_idc); /* 6 bits reserved (111111) + chroma_format_idc */ in ff_isom_write_avcc()
205avio_w8(pb, 0xf8 | (seq.bit_depth_luma - 8)); /* 5 bits reserved (11111) + bit_depth_luma_minus8 */ in ff_isom_write_avcc()
206avio_w8(pb, 0xf8 | (seq.bit_depth_chroma - 8)); /* 5 bits reserved (11111) + bit_depth_chroma_minu… in ff_isom_write_avcc()
[all …]
Dmpegenc.c567 avio_w8(pb, (id << 4) | (((timestamp >> 30) & 0x07) << 1) | 1); in put_timestamp()
606 avio_w8(pb, 0x0f); in put_padding_packet()
612 avio_w8(pb, 0xff); in put_padding_packet()
687 avio_w8(ctx->pb, 0x00); // substream ID, 00=PCI in flush_packet()
689 avio_w8(ctx->pb, 0x00); in flush_packet()
693 avio_w8(ctx->pb, 0x01); // substream ID, 01=DSI in flush_packet()
695 avio_w8(ctx->pb, 0x00); in flush_packet()
839 avio_w8(ctx->pb, 0xff); in flush_packet()
842 avio_w8(ctx->pb, 0x80); /* mpeg2 id */ in flush_packet()
859 avio_w8(ctx->pb, pes_flags); /* flags */ in flush_packet()
[all …]
Dicoenc.c150 avio_w8(pb, 0x00); // Write bitmask (opaque) in ico_write_packet()
167 avio_w8(pb, ico->images[i].width); in ico_write_trailer()
168 avio_w8(pb, ico->images[i].height); in ico_write_trailer()
172 avio_w8(pb, (ico->images[i].bits >= 8) ? 0 : 1 << ico->images[i].bits); in ico_write_trailer()
174 avio_w8(pb, 0); in ico_write_trailer()
177 avio_w8(pb, 0); // reserved in ico_write_trailer()
Dswfenc.c271 avio_w8(pb, version); in swf_write_header()
300 avio_w8(pb, 1); /* one fill style */ in swf_write_header()
301 avio_w8(pb, 0x41); /* clipped bitmap fill */ in swf_write_header()
306 avio_w8(pb, 0); /* no line style */ in swf_write_header()
353 avio_w8(s->pb, v); in swf_write_header()
355 avio_w8(s->pb, v); in swf_write_header()
385 avio_w8(pb, 0); in swf_write_video()
386 avio_w8(pb, codec_tag); in swf_write_video()
391 avio_w8(pb, 0x36); in swf_write_video()
397 avio_w8(pb, 0x00); in swf_write_video()
[all …]
Drtpdec_h261.c118 avio_w8(rtp_h261_ctx->buf, rtp_h261_ctx->endbyte); in h261_handle_packet()
126 avio_w8(rtp_h261_ctx->buf, rtp_h261_ctx->endbyte); in h261_handle_packet()
129 avio_w8(rtp_h261_ctx->buf, get_bits(&gb, 8)); in h261_handle_packet()
154 avio_w8(rtp_h261_ctx->buf, rtp_h261_ctx->endbyte); in h261_handle_packet()
Drtpenc.c295 avio_w8(s1->pb, RTP_VERSION << 6); in rtcp_send_sr()
296 avio_w8(s1->pb, RTCP_SR); in rtcp_send_sr()
307 avio_w8(s1->pb, (RTP_VERSION << 6) + 1); in rtcp_send_sr()
308 avio_w8(s1->pb, RTCP_SDES); in rtcp_send_sr()
312 avio_w8(s1->pb, 0x01); /* CNAME */ in rtcp_send_sr()
313 avio_w8(s1->pb, len); in rtcp_send_sr()
315 avio_w8(s1->pb, 0); /* END */ in rtcp_send_sr()
317 avio_w8(s1->pb, 0); in rtcp_send_sr()
321 avio_w8(s1->pb, (RTP_VERSION << 6) | 1); in rtcp_send_sr()
322 avio_w8(s1->pb, RTCP_BYE); in rtcp_send_sr()
[all …]
Drtpdec_h263_rfc2190.c141 avio_w8(data->buf, data->endbyte); in h263_handle_packet()
149 avio_w8(data->buf, data->endbyte); in h263_handle_packet()
152 avio_w8(data->buf, get_bits(&gb, 8)); in h263_handle_packet()
174 avio_w8(data->buf, data->endbyte); in h263_handle_packet()
Dasfenc.c466 avio_w8(pb, 1); /* ??? */ in asf_write_header1()
467 avio_w8(pb, 2); /* ??? */ in asf_write_header1()
498 avio_w8(pb, 6); in asf_write_header1()
672 avio_w8(pb, 0x01); in asf_write_header1()
681 avio_w8(pb, 0x00); in asf_write_header1()
685 avio_w8(pb, 2); /* ??? */ in asf_write_header1()
775 avio_w8(pb, 1); /* ??? */ in asf_write_header1()
776 avio_w8(pb, 1); /* ??? */ in asf_write_header1()
845 avio_w8(pb, ASF_PACKET_ERROR_CORRECTION_FLAGS); in put_payload_parsing_info()
847 avio_w8(pb, 0x0); in put_payload_parsing_info()
[all …]
Drtpdec.c337 avio_w8(pb, (RTP_VERSION << 6) + 1); /* 1 report block */ in ff_rtp_check_and_send_back_rr()
338 avio_w8(pb, RTCP_RR); in ff_rtp_check_and_send_back_rr()
378 avio_w8(pb, (RTP_VERSION << 6) + 1); /* 1 report block */ in ff_rtp_check_and_send_back_rr()
379 avio_w8(pb, RTCP_SDES); in ff_rtp_check_and_send_back_rr()
383 avio_w8(pb, 0x01); in ff_rtp_check_and_send_back_rr()
384 avio_w8(pb, len); in ff_rtp_check_and_send_back_rr()
386 avio_w8(pb, 0); /* END */ in ff_rtp_check_and_send_back_rr()
389 avio_w8(pb, 0); in ff_rtp_check_and_send_back_rr()
493 avio_w8(pb, (RTP_VERSION << 6) | 1); /* PLI */ in ff_rtp_send_rtcp_feedback()
494 avio_w8(pb, RTCP_PSFB); in ff_rtp_send_rtcp_feedback()
[all …]
Dhdsenc.c250 avio_w8(out, final ? 0 : 0x20); // profile, live, update in write_abst()
254 avio_w8(out, 0); // MovieIdentifer (null string) in write_abst()
255 avio_w8(out, 0); // ServerEntryCount in write_abst()
256 avio_w8(out, 0); // QualityEntryCount in write_abst()
257 avio_w8(out, 0); // DrmData (null string) in write_abst()
258 avio_w8(out, 0); // MetaData (null string) in write_abst()
259 avio_w8(out, 1); // SegmentRunTableCount in write_abst()
264 avio_w8(out, 0); // QualityEntryCount in write_abst()
269 avio_w8(out, 1); // FragmentRunTableCount in write_abst()
275 avio_w8(out, 0); // QualityEntryCount in write_abst()
Dmxfenc.c439 avio_w8(s->pb, type); in mxf_write_umid()
462 avio_w8(pb, len); in klv_encode_ber_length()
468 avio_w8(pb, 0x80 + size); in klv_encode_ber_length()
471 avio_w8(pb, len >> 8 * size & 0xff); in klv_encode_ber_length()
478 avio_w8(pb, 0x80 + 3); in klv_encode_ber4_length()
484 avio_w8(pb, 0x80 + 8); in klv_encode_ber9_length()
960 avio_w8(pb, !!(mxf->tc.flags & AV_TIMECODE_FLAG_DROPFRAME)); in mxf_write_timecode_component()
1211 avio_w8(pb, sc->color_siting); in mxf_write_cdci_common()
1236 avio_w8(pb, sc->signal_standard); in mxf_write_cdci_common()
1241 avio_w8(pb, sc->interlaced); in mxf_write_cdci_common()
[all …]
Dhevc.c906 avio_w8(pb, hvcc->configurationVersion); in hvcc_write()
913 avio_w8(pb, hvcc->general_profile_space << 6 | in hvcc_write()
925 avio_w8(pb, hvcc->general_level_idc); in hvcc_write()
937 avio_w8(pb, hvcc->parallelismType | 0xfc); in hvcc_write()
943 avio_w8(pb, hvcc->chromaFormat | 0xfc); in hvcc_write()
949 avio_w8(pb, hvcc->bitDepthLumaMinus8 | 0xf8); in hvcc_write()
955 avio_w8(pb, hvcc->bitDepthChromaMinus8 | 0xf8); in hvcc_write()
966 avio_w8(pb, hvcc->constantFrameRate << 6 | in hvcc_write()
972 avio_w8(pb, hvcc->numOfArrays); in hvcc_write()
980 avio_w8(pb, hvcc->array[i].array_completeness << 7 | in hvcc_write()
Dvorbiscomment.c88 avio_w8(pb, '='); in ff_vorbiscomment_write()
107 avio_w8(pb, '='); in ff_vorbiscomment_write()
123 avio_w8(pb, '='); in ff_vorbiscomment_write()
Daviobuf.c203 void avio_w8(AVIOContext *s, int b) in avio_w8() function
377 avio_w8(s, (uint8_t) val ); in avio_wl32()
378 avio_w8(s, (uint8_t)(val >> 8 )); in avio_wl32()
379 avio_w8(s, (uint8_t)(val >> 16)); in avio_wl32()
380 avio_w8(s, val >> 24 ); in avio_wl32()
385 avio_w8(s, val >> 24 ); in avio_wb32()
386 avio_w8(s, (uint8_t)(val >> 16)); in avio_wb32()
387 avio_w8(s, (uint8_t)(val >> 8 )); in avio_wb32()
388 avio_w8(s, (uint8_t) val ); in avio_wb32()
398 avio_w8(s, 0); in avio_put_str()
[all …]
Dmicrodvdenc.c39 avio_w8(s->pb, '\n'); in microdvd_write_header()
54 avio_w8(avf->pb, '\n'); in microdvd_write_packet()
Dmovenc.c299 avio_w8(pb, (leading << 6) | (dependent << 4) | in mov_write_sdtp_tag()
311 avio_w8(pb, 0); /* decoder version */ in mov_write_amr_tag()
314 avio_w8(pb, 0x00); /* Mode change period (no restriction) */ in mov_write_amr_tag()
315 avio_w8(pb, 0x01); /* Frames per sample */ in mov_write_amr_tag()
622 avio_w8(pb, tag); in put_descr()
624 avio_w8(pb, (size >> (7 * i)) | 0x80); in put_descr()
625 avio_w8(pb, size & 0x7F); in put_descr()
700 avio_w8(pb, 0x00); // flags (= no flags) in mov_write_esds_tag()
709 avio_w8(pb, 0x6B); // 11172-3 in mov_write_esds_tag()
711 avio_w8(pb, ff_codec_get_tag(ff_mp4_obj_type, track->par->codec_id)); in mov_write_esds_tag()
[all …]

123