Lines Matching refs:avio_wb32
139 avio_wb32(pb, curpos - pos); /* rewrite size */ in update_size()
174 avio_wb32(pb, 0); /* size */ in mov_write_stco_tag()
179 avio_wb32(pb, 0); /* version & flags */ in mov_write_stco_tag()
180 avio_wb32(pb, track->chunkCount); /* entry count */ in mov_write_stco_tag()
187 avio_wb32(pb, track->cluster[i].pos + track->data_offset); in mov_write_stco_tag()
199 avio_wb32(pb, 0); /* size */ in mov_write_stsz_tag()
201 avio_wb32(pb, 0); /* version & flags */ in mov_write_stsz_tag()
213 avio_wb32(pb, sSize); // sample size in mov_write_stsz_tag()
214 avio_wb32(pb, entries); // sample count in mov_write_stsz_tag()
216 avio_wb32(pb, 0); // sample size in mov_write_stsz_tag()
217 avio_wb32(pb, entries); // sample count in mov_write_stsz_tag()
220 avio_wb32(pb, track->cluster[i].size / in mov_write_stsz_tag()
235 avio_wb32(pb, 0); /* size */ in mov_write_stsc_tag()
237 avio_wb32(pb, 0); // version & flags in mov_write_stsc_tag()
239 avio_wb32(pb, track->chunkCount); // entry count in mov_write_stsc_tag()
242 avio_wb32(pb, track->cluster[i].chunkNum); // first chunk in mov_write_stsc_tag()
243 avio_wb32(pb, track->cluster[i].samples_in_chunk); // samples per chunk in mov_write_stsc_tag()
244 avio_wb32(pb, 0x1); // sample description index in mov_write_stsc_tag()
251 avio_wb32(pb, index); // rewrite size in mov_write_stsc_tag()
263 avio_wb32(pb, 0); // size in mov_write_stss_tag()
265 avio_wb32(pb, 0); // version & flags in mov_write_stss_tag()
267 avio_wb32(pb, track->entry); // entry count in mov_write_stss_tag()
270 avio_wb32(pb, i + 1); in mov_write_stss_tag()
276 avio_wb32(pb, index); // rewrite size in mov_write_stss_tag()
287 avio_wb32(pb, 0); // size in mov_write_sdtp_tag()
289 avio_wb32(pb, 0); // version & flags in mov_write_sdtp_tag()
307 avio_wb32(pb, 0x11); /* size */ in mov_write_amr_tag()
333 avio_wb32(pb, 11); in mov_write_ac3_tag()
584 avio_wb32(pb, size + 8); in mov_write_eac3_tag()
605 avio_wb32(pb, 10); in mov_write_enda_tag()
613 avio_wb32(pb, 10); in mov_write_enda_tag_be()
693 avio_wb32(pb, 0); // size in mov_write_esds_tag()
695 avio_wb32(pb, 0); // Version in mov_write_esds_tag()
723 avio_wb32(pb, bit_rates.max_bit_rate); // maxbitrate in mov_write_esds_tag()
724 avio_wb32(pb, bit_rates.avg_bit_rate); in mov_write_esds_tag()
758 avio_wb32(pb, 0); in mov_write_ms_tag()
770 avio_wb32(pb, 0); in mov_write_wfex_tag()
780 avio_wb32(pb, 0); in mov_write_dfla_tag()
801 avio_wb32(pb, 0); in mov_write_dops_tag()
816 avio_wb32(pb, AV_RL32(track->par->extradata + 12)); /* InputSampleRate */ in mov_write_dops_tag()
835 avio_wb32(pb, 0); in mov_write_dmlp_tag()
853 avio_wb32(pb, AV_RB32(track->vos_data + 8)); /* format_info */ in mov_write_dmlp_tag()
855 avio_wb32(pb, 0); /* reserved */ in mov_write_dmlp_tag()
877 avio_wb32(pb, 0); // Size in mov_write_chan_tag()
881 avio_wb32(pb, layout_tag); // mChannelLayoutTag in mov_write_chan_tag()
882 avio_wb32(pb, bitmap); // mChannelBitmap in mov_write_chan_tag()
883 avio_wb32(pb, 0); // mNumberChannelDescriptions in mov_write_chan_tag()
892 avio_wb32(pb, 0); /* size */ in mov_write_wave_tag()
896 avio_wb32(pb, 12); /* size */ in mov_write_wave_tag()
903 avio_wb32(pb, 12); /* size */ in mov_write_wave_tag()
905 avio_wb32(pb, 0); in mov_write_wave_tag()
925 avio_wb32(pb, 8); /* size */ in mov_write_wave_tag()
926 avio_wb32(pb, 0); /* null tag */ in mov_write_wave_tag()
1022 avio_wb32(pb, track->vos_len + 8 + sizeof(buf)); in mov_write_dvc1_tag()
1032 avio_wb32(pb, track->vos_len + 8); in mov_write_glbl_tag()
1117 avio_wb32(pb, 0); /* size */ in mov_write_btrt_tag()
1120 avio_wb32(pb, bit_rates.buffer_size); in mov_write_btrt_tag()
1121 avio_wb32(pb, bit_rates.max_bit_rate); in mov_write_btrt_tag()
1122 avio_wb32(pb, bit_rates.avg_bit_rate); in mov_write_btrt_tag()
1148 avio_wb32(pb, 0); /* size */ in mov_write_audio_tag()
1154 avio_wb32(pb, 0); /* Reserved */ in mov_write_audio_tag()
1161 avio_wb32(pb, 0); /* Reserved */ in mov_write_audio_tag()
1168 avio_wb32(pb, 0x00010000); in mov_write_audio_tag()
1169 avio_wb32(pb, 72); in mov_write_audio_tag()
1171 avio_wb32(pb, track->par->channels); in mov_write_audio_tag()
1172 avio_wb32(pb, 0x7F000000); in mov_write_audio_tag()
1173 avio_wb32(pb, av_get_bits_per_sample(track->par->codec_id)); in mov_write_audio_tag()
1174 avio_wb32(pb, mov_get_lpcm_flags(track->par->codec_id)); in mov_write_audio_tag()
1175 avio_wb32(pb, track->sample_size); in mov_write_audio_tag()
1176 avio_wb32(pb, get_samples_per_packet(track)); in mov_write_audio_tag()
1209 avio_wb32(pb, track->par->sample_rate); in mov_write_audio_tag()
1221 avio_wb32(pb, 1); /* must be 1 for uncompressed formats */ in mov_write_audio_tag()
1223 avio_wb32(pb, track->par->frame_size); /* Samples per packet */ in mov_write_audio_tag()
1224 avio_wb32(pb, track->sample_size / track->par->channels); /* Bytes per packet */ in mov_write_audio_tag()
1225 avio_wb32(pb, track->sample_size); /* Bytes per frame */ in mov_write_audio_tag()
1226 avio_wb32(pb, 2); /* Bytes per sample */ in mov_write_audio_tag()
1285 avio_wb32(pb, 0xf); /* size */ in mov_write_d263_tag()
1299 avio_wb32(pb, 0); in mov_write_av1c_tag()
1309 avio_wb32(pb, 0); in mov_write_avcc_tag()
1319 avio_wb32(pb, 0); in mov_write_vpcc_tag()
1331 avio_wb32(pb, 0); in mov_write_hvcc_tag()
1362 avio_wb32(pb, 24); /* size */ in mov_write_avid_tag()
1368 avio_wb32(pb, 1); /* Corresponds to 709 in official encoder */ in mov_write_avid_tag()
1370 avio_wb32(pb, 2); /* Corresponds to RGB in official encoder */ in mov_write_avid_tag()
1372 avio_wb32(pb, 0); /* unknown */ in mov_write_avid_tag()
1375 avio_wb32(pb, 32); in mov_write_avid_tag()
1378 avio_wb32(pb, cid); in mov_write_avid_tag()
1379 avio_wb32(pb, 0); /* unknown */ in mov_write_avid_tag()
1380 avio_wb32(pb, 1); /* unknown */ in mov_write_avid_tag()
1381 avio_wb32(pb, 0); /* unknown */ in mov_write_avid_tag()
1382 avio_wb32(pb, 0); /* unknown */ in mov_write_avid_tag()
1386 avio_wb32(pb, 24); /* size */ in mov_write_avid_tag()
1390 avio_wb32(pb, 1); /* unknown */ in mov_write_avid_tag()
1391 avio_wb32(pb, 0); /* unknown */ in mov_write_avid_tag()
1393 avio_wb32(pb, 120); /* size */ in mov_write_avid_tag()
1397 avio_wb32(pb, cid); /* dnxhd cid, some id ? */ in mov_write_avid_tag()
1401 avio_wb32(pb, display_width); in mov_write_avid_tag()
1404 avio_wb32(pb, track->par->height / 2); in mov_write_avid_tag()
1405 avio_wb32(pb, 2); /* unknown */ in mov_write_avid_tag()
1406 avio_wb32(pb, 0); /* unknown */ in mov_write_avid_tag()
1407 avio_wb32(pb, 4); /* unknown */ in mov_write_avid_tag()
1409 avio_wb32(pb, track->par->height); in mov_write_avid_tag()
1410 avio_wb32(pb, 1); /* unknown */ in mov_write_avid_tag()
1411 avio_wb32(pb, 0); /* unknown */ in mov_write_avid_tag()
1413 avio_wb32(pb, 5); /* unknown */ in mov_write_avid_tag()
1415 avio_wb32(pb, 6); /* unknown */ in mov_write_avid_tag()
1426 avio_wb32(pb, 12); in mov_write_dpxe_tag()
1430 avio_wb32(pb, track->par->extradata[11]); in mov_write_dpxe_tag()
1432 avio_wb32(pb, 1); in mov_write_dpxe_tag()
1769 avio_wb32(pb, 28); in mov_write_uuid_tag_ipod()
1771 avio_wb32(pb, 0x6b6840f2); in mov_write_uuid_tag_ipod()
1772 avio_wb32(pb, 0x5f244fc5); in mov_write_uuid_tag_ipod()
1773 avio_wb32(pb, 0xba39a51b); in mov_write_uuid_tag_ipod()
1774 avio_wb32(pb, 0xcf0323f3); in mov_write_uuid_tag_ipod()
1775 avio_wb32(pb, 0x0); in mov_write_uuid_tag_ipod()
1790 avio_wb32(pb, 10); in mov_write_fiel_tag()
1800 avio_wb32(pb, 0); /* size */ in mov_write_subtitle_tag()
1802 avio_wb32(pb, 0); /* Reserved */ in mov_write_subtitle_tag()
1841 avio_wb32(pb, 13); /* size */ in mov_write_st3d_tag()
1843 avio_wb32(pb, 0); /* version = 0 & flags = 0 */ in mov_write_st3d_tag()
1861 avio_wb32(pb, 0); /* size */ in mov_write_sv3d_tag()
1865 avio_wb32(pb, 0); /* size */ in mov_write_sv3d_tag()
1867 avio_wb32(pb, 0); /* version = 0 & flags = 0 */ in mov_write_sv3d_tag()
1872 avio_wb32(pb, 0); /* size */ in mov_write_sv3d_tag()
1875 avio_wb32(pb, 24); /* size */ in mov_write_sv3d_tag()
1877 avio_wb32(pb, 0); /* version = 0 & flags = 0 */ in mov_write_sv3d_tag()
1878 avio_wb32(pb, spherical_mapping->yaw); in mov_write_sv3d_tag()
1879 avio_wb32(pb, spherical_mapping->pitch); in mov_write_sv3d_tag()
1880 avio_wb32(pb, spherical_mapping->roll); in mov_write_sv3d_tag()
1885 avio_wb32(pb, 28); /* size */ in mov_write_sv3d_tag()
1887 avio_wb32(pb, 0); /* version = 0 & flags = 0 */ in mov_write_sv3d_tag()
1888 avio_wb32(pb, spherical_mapping->bound_top); in mov_write_sv3d_tag()
1889 avio_wb32(pb, spherical_mapping->bound_bottom); in mov_write_sv3d_tag()
1890 avio_wb32(pb, spherical_mapping->bound_left); in mov_write_sv3d_tag()
1891 avio_wb32(pb, spherical_mapping->bound_right); in mov_write_sv3d_tag()
1894 avio_wb32(pb, 20); /* size */ in mov_write_sv3d_tag()
1896 avio_wb32(pb, 0); /* version = 0 & flags = 0 */ in mov_write_sv3d_tag()
1897 avio_wb32(pb, 0); /* layout */ in mov_write_sv3d_tag()
1898 avio_wb32(pb, spherical_mapping->padding); /* padding */ in mov_write_sv3d_tag()
1908 avio_wb32(pb, 32); /* size = 8 + 24 */ in mov_write_dvcc_dvvc_tag()
1918 avio_wb32(pb, (dovi->dv_bl_signal_compatibility_id << 28) | 0); in mov_write_dvcc_dvvc_tag()
1920 avio_wb32(pb, 0); /* reserved */ in mov_write_dvcc_dvvc_tag()
1921 avio_wb32(pb, 0); /* reserved */ in mov_write_dvcc_dvvc_tag()
1922 avio_wb32(pb, 0); /* reserved */ in mov_write_dvcc_dvvc_tag()
1923 avio_wb32(pb, 0); /* reserved */ in mov_write_dvcc_dvvc_tag()
1938 avio_wb32(pb, 40); in mov_write_clap_tag()
1940 avio_wb32(pb, track->par->width); /* apertureWidth_N */ in mov_write_clap_tag()
1941 avio_wb32(pb, 1); /* apertureWidth_D (= 1) */ in mov_write_clap_tag()
1942 avio_wb32(pb, track->height); /* apertureHeight_N */ in mov_write_clap_tag()
1943 avio_wb32(pb, 1); /* apertureHeight_D (= 1) */ in mov_write_clap_tag()
1944 avio_wb32(pb, 0); /* horizOff_N (= 0) */ in mov_write_clap_tag()
1945 avio_wb32(pb, 1); /* horizOff_D (= 1) */ in mov_write_clap_tag()
1946 avio_wb32(pb, 0); /* vertOff_N (= 0) */ in mov_write_clap_tag()
1947 avio_wb32(pb, 1); /* vertOff_D (= 1) */ in mov_write_clap_tag()
1957 avio_wb32(pb, 16); in mov_write_pasp_tag()
1959 avio_wb32(pb, sar.num); in mov_write_pasp_tag()
1960 avio_wb32(pb, sar.den); in mov_write_pasp_tag()
1977 avio_wb32(pb, 12); in mov_write_gama_tag()
1979 avio_wb32(pb, gama); in mov_write_gama_tag()
2001 avio_wb32(pb, 12 + icc_profile_size); in mov_write_colr_tag()
2015 avio_wb32(pb, 0); /* size */ in mov_write_colr_tag()
2046 avio_wb32(pb, 12); // size in mov_write_clli_tag()
2071 avio_wb32(pb, 32); // size in mov_write_mdcv_tag()
2081 avio_wb32(pb, rescale_mdcv(metadata->max_luminance, luma_den)); in mov_write_mdcv_tag()
2082 avio_wb32(pb, rescale_mdcv(metadata->min_luminance, luma_den)); in mov_write_mdcv_tag()
2128 avio_wb32(pb, 0); /* size */ in mov_write_video_tag()
2134 avio_wb32(pb, 0); /* Reserved */ in mov_write_video_tag()
2147 avio_wb32(pb, 0); /* Temporal Quality */ in mov_write_video_tag()
2148 avio_wb32(pb, 0x400); /* Spatial Quality = lossless*/ in mov_write_video_tag()
2150 avio_wb32(pb, 0x200); /* Temporal Quality = normal */ in mov_write_video_tag()
2151 avio_wb32(pb, 0x200); /* Spatial Quality = normal */ in mov_write_video_tag()
2154 avio_wb32(pb, 0); /* Reserved */ in mov_write_video_tag()
2155 avio_wb32(pb, 0); /* Reserved */ in mov_write_video_tag()
2156 avio_wb32(pb, 0); /* Reserved */ in mov_write_video_tag()
2160 avio_wb32(pb, 0x00480000); /* Horizontal resolution 72dpi */ in mov_write_video_tag()
2161 avio_wb32(pb, 0x00480000); /* Vertical resolution 72dpi */ in mov_write_video_tag()
2162 avio_wb32(pb, 0); /* Data size (= 0) */ in mov_write_video_tag()
2182 avio_wb32(pb, 0); /* Color table seed */ in mov_write_video_tag()
2208 avio_wb32(pb, 0); in mov_write_video_tag()
2306 avio_wb32(pb, 0); in mov_write_video_tag()
2314 avio_wb32(pb, 0); /* size */ in mov_write_rtp_tag()
2316 avio_wb32(pb, 0); /* Reserved */ in mov_write_rtp_tag()
2322 avio_wb32(pb, track->max_packet_size); /* Max packet size */ in mov_write_rtp_tag()
2324 avio_wb32(pb, 12); /* size */ in mov_write_rtp_tag()
2326 avio_wb32(pb, track->timescale); in mov_write_rtp_tag()
2342 avio_wb32(pb, 0); /* size */ in mov_write_source_reference_tag()
2378 avio_wb32(pb, 0); /* size */ in mov_write_tmcd_tag()
2380 avio_wb32(pb, 0); /* Reserved */ in mov_write_tmcd_tag()
2381 avio_wb32(pb, 1); /* Data reference index */ in mov_write_tmcd_tag()
2382 avio_wb32(pb, 0); /* Flags */ in mov_write_tmcd_tag()
2383 avio_wb32(pb, track->timecode_flags); /* Flags (timecode) */ in mov_write_tmcd_tag()
2384 avio_wb32(pb, track->timescale); /* Timescale */ in mov_write_tmcd_tag()
2385 avio_wb32(pb, frame_duration); /* Frame duration */ in mov_write_tmcd_tag()
2396 avio_wb32(pb, 0); /* size */ in mov_write_tmcd_tag()
2398 avio_wb32(pb, 0); /* Reserved */ in mov_write_tmcd_tag()
2399 avio_wb32(pb, 1); /* Data reference index */ in mov_write_tmcd_tag()
2409 avio_wb32(pb, 0); /* size */ in mov_write_gpmd_tag()
2411 avio_wb32(pb, 0); /* Reserved */ in mov_write_gpmd_tag()
2414 avio_wb32(pb, 0); /* Reserved */ in mov_write_gpmd_tag()
2422 avio_wb32(pb, 0); /* size */ in mov_write_stsd_tag()
2424 avio_wb32(pb, 0); /* version & flags */ in mov_write_stsd_tag()
2425 avio_wb32(pb, 1); /* entry count */ in mov_write_stsd_tag()
2469 avio_wb32(pb, atom_size); /* size */ in mov_write_ctts_tag()
2476 avio_wb32(pb, entries); /* entry count */ in mov_write_ctts_tag()
2478 avio_wb32(pb, ctts_entries[i].count); in mov_write_ctts_tag()
2479 avio_wb32(pb, ctts_entries[i].duration); in mov_write_ctts_tag()
2519 avio_wb32(pb, atom_size); /* size */ in mov_write_stts_tag()
2521 avio_wb32(pb, 0); /* version & flags */ in mov_write_stts_tag()
2522 avio_wb32(pb, entries); /* entry count */ in mov_write_stts_tag()
2524 avio_wb32(pb, stts_entries[i].count); in mov_write_stts_tag()
2525 avio_wb32(pb, stts_entries[i].duration); in mov_write_stts_tag()
2533 avio_wb32(pb, 28); /* size */ in mov_write_dref_tag()
2535 avio_wb32(pb, 0); /* version & flags */ in mov_write_dref_tag()
2536 avio_wb32(pb, 1); /* entry count */ in mov_write_dref_tag()
2538 avio_wb32(pb, 0xc); /* size */ in mov_write_dref_tag()
2541 avio_wb32(pb, 1); /* version & flags */ in mov_write_dref_tag()
2614 avio_wb32(pb, 24 + (group * 2)); /* size */ in mov_preroll_write_stbl_atoms()
2616 avio_wb32(pb, 1 << 24); /* fullbox */ in mov_preroll_write_stbl_atoms()
2618 avio_wb32(pb, 2); /* default_length */ in mov_preroll_write_stbl_atoms()
2619 avio_wb32(pb, group); /* entry_count */ in mov_preroll_write_stbl_atoms()
2627 avio_wb32(pb, 20 + (entries * 8)); /* size */ in mov_preroll_write_stbl_atoms()
2629 avio_wb32(pb, 0); /* fullbox */ in mov_preroll_write_stbl_atoms()
2631 avio_wb32(pb, entries); /* entry_count */ in mov_preroll_write_stbl_atoms()
2633 avio_wb32(pb, sgpd_entries[i].count); /* sample_count */ in mov_preroll_write_stbl_atoms()
2634 avio_wb32(pb, sgpd_entries[i].group_description_index); /* group_description_index */ in mov_preroll_write_stbl_atoms()
2646 avio_wb32(pb, 0); /* size */ in mov_write_stbl_tag()
2682 avio_wb32(pb, 0); /* size */ in mov_write_dinf_tag()
2690 avio_wb32(pb, 12); in mov_write_nmhd_tag()
2692 avio_wb32(pb, 0); in mov_write_nmhd_tag()
2700 avio_wb32(pb, 0); /* size */ in mov_write_tcmi_tag()
2702 avio_wb32(pb, 0); /* version & flags */ in mov_write_tcmi_tag()
2721 avio_wb32(pb, 0); /* size */ in mov_write_gmhd_tag()
2723 avio_wb32(pb, 0x18); /* gmin size */ in mov_write_gmhd_tag()
2725 avio_wb32(pb, 0); /* version & flags */ in mov_write_gmhd_tag()
2740 avio_wb32(pb, 0x2C); /* size */ in mov_write_gmhd_tag()
2743 avio_wb32(pb, 0x00); in mov_write_gmhd_tag()
2744 avio_wb32(pb, 0x00); in mov_write_gmhd_tag()
2745 avio_wb32(pb, 0x00); in mov_write_gmhd_tag()
2746 avio_wb32(pb, 0x01); in mov_write_gmhd_tag()
2747 avio_wb32(pb, 0x00); in mov_write_gmhd_tag()
2748 avio_wb32(pb, 0x00); in mov_write_gmhd_tag()
2749 avio_wb32(pb, 0x00); in mov_write_gmhd_tag()
2750 avio_wb32(pb, 0x00004000); in mov_write_gmhd_tag()
2756 avio_wb32(pb, 0); /* size */ in mov_write_gmhd_tag()
2762 avio_wb32(pb, 0); /* size */ in mov_write_gmhd_tag()
2764 avio_wb32(pb, 0); /* version */ in mov_write_gmhd_tag()
2772 avio_wb32(pb, 16); /* size */ in mov_write_smhd_tag()
2774 avio_wb32(pb, 0); /* version & flags */ in mov_write_smhd_tag()
2782 avio_wb32(pb, 0x14); /* size (always 0x14) */ in mov_write_vmhd_tag()
2784 avio_wb32(pb, 0x01); /* version & flags */ in mov_write_vmhd_tag()
2855 avio_wb32(pb, 0); /* size */ in mov_write_hdlr_tag()
2857 avio_wb32(pb, 0); /* Version & flags */ in mov_write_hdlr_tag()
2860 avio_wb32(pb, 0); /* reserved */ in mov_write_hdlr_tag()
2861 avio_wb32(pb, 0); /* reserved */ in mov_write_hdlr_tag()
2862 avio_wb32(pb, 0); /* reserved */ in mov_write_hdlr_tag()
2875 avio_wb32(pb, 28); /* size */ in mov_write_hmhd_tag()
2877 avio_wb32(pb, 0); /* version, flags */ in mov_write_hmhd_tag()
2880 avio_wb32(pb, 0); /* maxbitrate */ in mov_write_hmhd_tag()
2881 avio_wb32(pb, 0); /* avgbitrate */ in mov_write_hmhd_tag()
2882 avio_wb32(pb, 0); /* reserved */ in mov_write_hmhd_tag()
2891 avio_wb32(pb, 0); /* size */ in mov_write_minf_tag()
2976 (version == 1) ? avio_wb32(pb, 44) : avio_wb32(pb, 32); /* size */ in mov_write_mdhd_tag()
2984 avio_wb32(pb, track->time); /* creation time */ in mov_write_mdhd_tag()
2985 avio_wb32(pb, track->time); /* modification time */ in mov_write_mdhd_tag()
2987 avio_wb32(pb, track->timescale); /* time scale (sample rate for audio) */ in mov_write_mdhd_tag()
2989 (version == 1) ? avio_wb64(pb, UINT64_C(0xffffffffffffffff)) : avio_wb32(pb, 0xffffffff); in mov_write_mdhd_tag()
2991 (version == 1) ? avio_wb64(pb, 0) : avio_wb32(pb, 0); in mov_write_mdhd_tag()
2993 (version == 1) ? avio_wb64(pb, duration) : avio_wb32(pb, duration); /* duration */ in mov_write_mdhd_tag()
3013 avio_wb32(pb, 0); /* size */ in mov_write_mdia_tag()
3029 avio_wb32(pb, a << 16); /* 16.16 format */ in write_matrix()
3030 avio_wb32(pb, b << 16); /* 16.16 format */ in write_matrix()
3031 avio_wb32(pb, 0); /* u in 2.30 format */ in write_matrix()
3032 avio_wb32(pb, c << 16); /* 16.16 format */ in write_matrix()
3033 avio_wb32(pb, d << 16); /* 16.16 format */ in write_matrix()
3034 avio_wb32(pb, 0); /* v in 2.30 format */ in write_matrix()
3035 avio_wb32(pb, tx << 16); /* 16.16 format */ in write_matrix()
3036 avio_wb32(pb, ty << 16); /* 16.16 format */ in write_matrix()
3037 avio_wb32(pb, 1 << 30); /* w in 2.30 format */ in write_matrix()
3073 (version == 1) ? avio_wb32(pb, 104) : avio_wb32(pb, 92); /* size */ in mov_write_tkhd_tag()
3081 avio_wb32(pb, track->time); /* creation time */ in mov_write_tkhd_tag()
3082 avio_wb32(pb, track->time); /* modification time */ in mov_write_tkhd_tag()
3084 avio_wb32(pb, track->track_id); /* track-id */ in mov_write_tkhd_tag()
3085 avio_wb32(pb, 0); /* reserved */ in mov_write_tkhd_tag()
3087 (version == 1) ? avio_wb64(pb, UINT64_C(0xffffffffffffffff)) : avio_wb32(pb, 0xffffffff); in mov_write_tkhd_tag()
3089 (version == 1) ? avio_wb64(pb, 0) : avio_wb32(pb, 0); in mov_write_tkhd_tag()
3091 (version == 1) ? avio_wb64(pb, duration) : avio_wb32(pb, duration); in mov_write_tkhd_tag()
3093 avio_wb32(pb, 0); /* reserved */ in mov_write_tkhd_tag()
3094 avio_wb32(pb, 0); /* reserved */ in mov_write_tkhd_tag()
3113 avio_wb32(pb, display_matrix[i]); in mov_write_tkhd_tag()
3144 avio_wb32(pb, track_width_1616); in mov_write_tkhd_tag()
3147 avio_wb32(pb, 0); in mov_write_tkhd_tag()
3149 avio_wb32(pb, track->height * 0x10000U); in mov_write_tkhd_tag()
3151 avio_wb32(pb, 0); in mov_write_tkhd_tag()
3152 avio_wb32(pb, 0); in mov_write_tkhd_tag()
3164 avio_wb32(pb, 0); /* size */ in mov_write_tapt_tag()
3167 avio_wb32(pb, 20); in mov_write_tapt_tag()
3169 avio_wb32(pb, 0); in mov_write_tapt_tag()
3170 avio_wb32(pb, width << 16); in mov_write_tapt_tag()
3171 avio_wb32(pb, track->par->height << 16); in mov_write_tapt_tag()
3173 avio_wb32(pb, 20); in mov_write_tapt_tag()
3175 avio_wb32(pb, 0); in mov_write_tapt_tag()
3176 avio_wb32(pb, width << 16); in mov_write_tapt_tag()
3177 avio_wb32(pb, track->par->height << 16); in mov_write_tapt_tag()
3179 avio_wb32(pb, 20); in mov_write_tapt_tag()
3181 avio_wb32(pb, 0); in mov_write_tapt_tag()
3182 avio_wb32(pb, track->par->width << 16); in mov_write_tapt_tag()
3183 avio_wb32(pb, track->par->height << 16); in mov_write_tapt_tag()
3221 avio_wb32(pb, size); in mov_write_edts_tag()
3223 avio_wb32(pb, size - 8); in mov_write_edts_tag()
3228 avio_wb32(pb, entry_count); in mov_write_edts_tag()
3239 avio_wb32(pb, delay); in mov_write_edts_tag()
3240 avio_wb32(pb, -1); in mov_write_edts_tag()
3242 avio_wb32(pb, 0x00010000); in mov_write_edts_tag()
3268 avio_wb32(pb, duration); in mov_write_edts_tag()
3269 avio_wb32(pb, start_ct); in mov_write_edts_tag()
3271 avio_wb32(pb, 0x00010000); in mov_write_edts_tag()
3277 avio_wb32(pb, 20); // size in mov_write_tref_tag()
3279 avio_wb32(pb, 12); // size (subatom) in mov_write_tref_tag()
3281 avio_wb32(pb, track->tref_id); in mov_write_tref_tag()
3288 avio_wb32(pb, 0x34); /* size ... reports as 28 in mp4box! */ in mov_write_uuid_tag_psp()
3291 avio_wb32(pb, 0x21d24fce); in mov_write_uuid_tag_psp()
3292 avio_wb32(pb, 0xbb88695c); in mov_write_uuid_tag_psp()
3293 avio_wb32(pb, 0xfac9c740); in mov_write_uuid_tag_psp()
3294 avio_wb32(pb, 0x1c); // another size here! in mov_write_uuid_tag_psp()
3296 avio_wb32(pb, 0x00010012); in mov_write_uuid_tag_psp()
3297 avio_wb32(pb, 0x0a); in mov_write_uuid_tag_psp()
3298 avio_wb32(pb, 0x55c40000); in mov_write_uuid_tag_psp()
3299 avio_wb32(pb, 0x1); in mov_write_uuid_tag_psp()
3300 avio_wb32(pb, 0x0); in mov_write_uuid_tag_psp()
3315 avio_wb32(pb, len + 24); in mov_write_udta_sdp()
3317 avio_wb32(pb, len + 16); in mov_write_udta_sdp()
3319 avio_wb32(pb, len + 8); in mov_write_udta_sdp()
3333 avio_wb32(pb, 0); /* size */ in mov_write_track_metadata()
3357 avio_wb32(pb, size + 8); in mov_write_track_udta_tag()
3379 avio_wb32(pb, 0); /* size */ in mov_write_trak_tag()
3435 avio_wb32(pb, 0x0); /* size */ in mov_write_iods_tag()
3437 avio_wb32(pb, 0); /* version & flags */ in mov_write_iods_tag()
3450 avio_wb32(pb, 0x20); /* size */ in mov_write_trex_tag()
3452 avio_wb32(pb, 0); /* version & flags */ in mov_write_trex_tag()
3453 avio_wb32(pb, track->track_id); /* track ID */ in mov_write_trex_tag()
3454 avio_wb32(pb, 1); /* default sample description index */ in mov_write_trex_tag()
3455 avio_wb32(pb, 0); /* default sample duration */ in mov_write_trex_tag()
3456 avio_wb32(pb, 0); /* default sample size */ in mov_write_trex_tag()
3457 avio_wb32(pb, 0); /* default sample flags */ in mov_write_trex_tag()
3465 avio_wb32(pb, 0x0); /* size */ in mov_write_mvex_tag()
3499 avio_wb32(pb, version == 1 ? 120 : 108); /* size */ in mov_write_mvhd_tag()
3508 avio_wb32(pb, mov->time); /* creation time */ in mov_write_mvhd_tag()
3509 avio_wb32(pb, mov->time); /* modification time */ in mov_write_mvhd_tag()
3511 avio_wb32(pb, MOV_TIMESCALE); in mov_write_mvhd_tag()
3512 …(version == 1) ? avio_wb64(pb, max_track_len) : avio_wb32(pb, max_track_len); /* duration of longe… in mov_write_mvhd_tag()
3514 avio_wb32(pb, 0x00010000); /* reserved (preferred rate) 1.0 = normal */ in mov_write_mvhd_tag()
3517 avio_wb32(pb, 0); /* reserved */ in mov_write_mvhd_tag()
3518 avio_wb32(pb, 0); /* reserved */ in mov_write_mvhd_tag()
3523 avio_wb32(pb, 0); /* reserved (preview time) */ in mov_write_mvhd_tag()
3524 avio_wb32(pb, 0); /* reserved (preview duration) */ in mov_write_mvhd_tag()
3525 avio_wb32(pb, 0); /* reserved (poster time) */ in mov_write_mvhd_tag()
3526 avio_wb32(pb, 0); /* reserved (selection time) */ in mov_write_mvhd_tag()
3527 avio_wb32(pb, 0); /* reserved (selection duration) */ in mov_write_mvhd_tag()
3528 avio_wb32(pb, 0); /* reserved (current time) */ in mov_write_mvhd_tag()
3529 avio_wb32(pb, max_track_id + 1); /* Next track id */ in mov_write_mvhd_tag()
3536 avio_wb32(pb, 33); /* size */ in mov_write_itunes_hdlr_tag()
3538 avio_wb32(pb, 0); in mov_write_itunes_hdlr_tag()
3539 avio_wb32(pb, 0); in mov_write_itunes_hdlr_tag()
3542 avio_wb32(pb, 0); in mov_write_itunes_hdlr_tag()
3543 avio_wb32(pb, 0); in mov_write_itunes_hdlr_tag()
3553 avio_wb32(pb, size); /* size */ in mov_write_string_data_tag()
3555 avio_wb32(pb, 1); in mov_write_string_data_tag()
3556 avio_wb32(pb, 0); in mov_write_string_data_tag()
3575 avio_wb32(pb, 0); /* size */ in mov_write_string_tag()
3626 avio_wb32(pb, size); in mov_write_tmpo_tag()
3628 avio_wb32(pb, size-8); /* size */ in mov_write_tmpo_tag()
3630 avio_wb32(pb, 0x15); //type specifier in mov_write_tmpo_tag()
3631 avio_wb32(pb, 0); in mov_write_tmpo_tag()
3673 avio_wb32(pb, 0); /* size */ in mov_write_loci_tag()
3675 avio_wb32(pb, 0); /* version + flags */ in mov_write_loci_tag()
3679 avio_wb32(pb, latitude_fix); in mov_write_loci_tag()
3680 avio_wb32(pb, longitude_fix); in mov_write_loci_tag()
3681 avio_wb32(pb, altitude_fix); in mov_write_loci_tag()
3701 avio_wb32(pb, 32); /* size */ in mov_write_trkn_tag()
3703 avio_wb32(pb, 24); /* size */ in mov_write_trkn_tag()
3705 avio_wb32(pb, 0); // 8 bytes empty in mov_write_trkn_tag()
3706 avio_wb32(pb, 0); in mov_write_trkn_tag()
3731 avio_wb32(pb, size); in mov_write_int8_metadata()
3733 avio_wb32(pb, size - 8); in mov_write_int8_metadata()
3735 avio_wb32(pb, 0x15); in mov_write_int8_metadata()
3736 avio_wb32(pb, 0); in mov_write_int8_metadata()
3737 if (len==4) avio_wb32(pb, num); in mov_write_int8_metadata()
3757 avio_wb32(pb, 0); in mov_write_covr()
3760 avio_wb32(pb, 16 + trk->cover_image->size); in mov_write_covr()
3762 avio_wb32(pb, trk->tag); in mov_write_covr()
3763 avio_wb32(pb , 0); in mov_write_covr()
3775 avio_wb32(pb, 0); /* size */ in mov_write_ilst_tag()
3814 avio_wb32(pb, 33); /* size */ in mov_write_mdta_hdlr_tag()
3816 avio_wb32(pb, 0); in mov_write_mdta_hdlr_tag()
3817 avio_wb32(pb, 0); in mov_write_mdta_hdlr_tag()
3819 avio_wb32(pb, 0); in mov_write_mdta_hdlr_tag()
3820 avio_wb32(pb, 0); in mov_write_mdta_hdlr_tag()
3821 avio_wb32(pb, 0); in mov_write_mdta_hdlr_tag()
3834 avio_wb32(pb, 0); /* size */ in mov_write_mdta_keys_tag()
3836 avio_wb32(pb, 0); in mov_write_mdta_keys_tag()
3838 avio_wb32(pb, 0); /* entry count */ in mov_write_mdta_keys_tag()
3841 avio_wb32(pb, strlen(t->key) + 8); in mov_write_mdta_keys_tag()
3848 avio_wb32(pb, count); // rewrite entry count in mov_write_mdta_keys_tag()
3861 avio_wb32(pb, 0); /* size */ in mov_write_mdta_ilst_tag()
3866 avio_wb32(pb, 0); /* size */ in mov_write_mdta_ilst_tag()
3867 avio_wb32(pb, count); /* key */ in mov_write_mdta_ilst_tag()
3881 avio_wb32(pb, 0); /* size */ in mov_write_meta_tag()
3883 avio_wb32(pb, 0); in mov_write_meta_tag()
3910 avio_wb32(pb, size); in mov_write_raw_metadata_tag()
3943 avio_wb32(pb, 0); /* size */ in mov_write_3gp_udta_tag()
3945 avio_wb32(pb, 0); /* version + flags */ in mov_write_3gp_udta_tag()
3963 avio_wb32(pb, 0); // size in mov_write_chpl_tag()
3965 avio_wb32(pb, 0x01000000); // version + flags in mov_write_chpl_tag()
3966 avio_wb32(pb, 0); // unknown in mov_write_chpl_tag()
4033 avio_wb32(pb, size + 8); in mov_write_udta_tag()
4049 avio_wb32(pb, type); /* type */ in mov_write_psp_udta_tag()
4062 avio_wb32(pb, 0); /* size placeholder*/ in mov_write_uuidusmt_tag()
4065 avio_wb32(pb, 0x21d24fce); /* 96 bit UUID */ in mov_write_uuidusmt_tag()
4066 avio_wb32(pb, 0xbb88695c); in mov_write_uuidusmt_tag()
4067 avio_wb32(pb, 0xfac9c740); in mov_write_uuidusmt_tag()
4070 avio_wb32(pb, 0); /* size placeholder*/ in mov_write_uuidusmt_tag()
4076 avio_wb32(pb, 0x0B); /* type */ in mov_write_uuidusmt_tag()
4167 avio_wb32(pb, 0); /* size placeholder*/ in mov_write_moov_tag()
4268 avio_wb32(pb, 0); in mov_write_isml_manifest()
4271 avio_wb32(pb, 0); in mov_write_isml_manifest()
4384 avio_wb32(pb, 16); in mov_write_mfhd_tag()
4386 avio_wb32(pb, 0); in mov_write_mfhd_tag()
4387 avio_wb32(pb, mov->fragments); in mov_write_mfhd_tag()
4426 avio_wb32(pb, 0); /* size placeholder */ in mov_write_tfhd_tag()
4431 avio_wb32(pb, track->track_id); /* track-id */ in mov_write_tfhd_tag()
4435 avio_wb32(pb, 1); in mov_write_tfhd_tag()
4439 avio_wb32(pb, track->default_duration); in mov_write_tfhd_tag()
4443 avio_wb32(pb, track->default_size); in mov_write_tfhd_tag()
4457 avio_wb32(pb, track->default_sample_flags); in mov_write_tfhd_tag()
4485 avio_wb32(pb, 0); /* size placeholder */ in mov_write_trun_tag()
4493 avio_wb32(pb, end - first); /* sample count */ in mov_write_trun_tag()
4497 avio_wb32(pb, 0); /* Later tracks follow immediately after the previous one */ in mov_write_trun_tag()
4499 avio_wb32(pb, moof_size + 8 + track->data_offset + in mov_write_trun_tag()
4502 avio_wb32(pb, get_sample_flags(track, &track->cluster[first])); in mov_write_trun_tag()
4506 avio_wb32(pb, get_cluster_duration(track, i)); in mov_write_trun_tag()
4508 avio_wb32(pb, track->cluster[i].size); in mov_write_trun_tag()
4510 avio_wb32(pb, get_sample_flags(track, &track->cluster[i])); in mov_write_trun_tag()
4512 avio_wb32(pb, track->cluster[i].cts); in mov_write_trun_tag()
4527 avio_wb32(pb, 0); /* size placeholder */ in mov_write_tfxd_tag()
4554 avio_wb32(pb, size); in mov_write_tfrf_tag()
4567 avio_wb32(pb, free_size); in mov_write_tfrf_tag()
4647 avio_wb32(pb, 0); /* size */ in mov_write_tfdt_tag()
4661 avio_wb32(pb, 0); /* size placeholder */ in mov_write_traf_tag()
4685 avio_wb32(pb, 8 + size); in mov_write_traf_tag()
4701 avio_wb32(pb, 0); /* size placeholder */ in mov_write_moof_tag_internal()
4746 avio_wb32(pb, 0); /* size */ in mov_write_sidx_tag()
4750 avio_wb32(pb, track->track_id); /* reference_ID */ in mov_write_sidx_tag()
4751 avio_wb32(pb, track->timescale); /* timescale */ in mov_write_sidx_tag()
4767 …avio_wb32(pb, (0 << 31) | (ref_size & 0x7fffffff)); /* reference_type (0 = media) | referenced_siz… in mov_write_sidx_tag()
4768 avio_wb32(pb, duration); /* subsegment_duration */ in mov_write_sidx_tag()
4769 …avio_wb32(pb, (starts_with_SAP << 31) | (0 << 28) | 0); /* starts_with_SAP | SAP_type | SAP_delta_… in mov_write_sidx_tag()
4855 avio_wb32(pb, 0); // Size place holder in mov_write_prft_tag()
4859 avio_wb32(pb, first_track->track_id); // reference track ID in mov_write_prft_tag()
4902 avio_wb32(pb, 0); /* size placeholder */ in mov_write_tfra_tag()
4907 avio_wb32(pb, track->track_id); in mov_write_tfra_tag()
4908 avio_wb32(pb, 0); /* length of traf/trun/sample num */ in mov_write_tfra_tag()
4909 avio_wb32(pb, track->nb_frag_info); in mov_write_tfra_tag()
4931 avio_wb32(mfra_pb, 0); /* size placeholder */ in mov_write_mfra_tag()
4944 avio_wb32(mfra_pb, 16); in mov_write_mfra_tag()
4946 avio_wb32(mfra_pb, 0); /* version + flags */ in mov_write_mfra_tag()
4947 avio_wb32(mfra_pb, avio_tell(mfra_pb) + 4); in mov_write_mfra_tag()
4961 avio_wb32(pb, 8); // placeholder for extended size field (64 bit) in mov_write_mdat_tag()
4965 avio_wb32(pb, 0); /* size placeholder*/ in mov_write_mdat_tag()
5005 avio_wb32(pb, minor); in mov_write_ftyp_tag_internal()
5027 avio_wb32(pb, 0); /* size */ in mov_write_ftyp_tag()
5095 avio_wb32(pb, 0x94); /* size */ in mov_write_uuidprof_tag()
5099 avio_wb32(pb, 0x21d24fce); /* 96 bit UUID */ in mov_write_uuidprof_tag()
5100 avio_wb32(pb, 0xbb88695c); in mov_write_uuidprof_tag()
5101 avio_wb32(pb, 0xfac9c740); in mov_write_uuidprof_tag()
5103 avio_wb32(pb, 0x0); /* ? */ in mov_write_uuidprof_tag()
5104 avio_wb32(pb, 0x3); /* 3 sections ? */ in mov_write_uuidprof_tag()
5106 avio_wb32(pb, 0x14); /* size */ in mov_write_uuidprof_tag()
5108 avio_wb32(pb, 0x0); /* ? */ in mov_write_uuidprof_tag()
5109 avio_wb32(pb, 0x0); /* ? */ in mov_write_uuidprof_tag()
5110 avio_wb32(pb, 0x0); /* ? */ in mov_write_uuidprof_tag()
5112 avio_wb32(pb, 0x2c); /* size */ in mov_write_uuidprof_tag()
5114 avio_wb32(pb, 0x0); in mov_write_uuidprof_tag()
5115 avio_wb32(pb, 0x2); /* TrackID */ in mov_write_uuidprof_tag()
5117 avio_wb32(pb, 0x20f); in mov_write_uuidprof_tag()
5118 avio_wb32(pb, 0x0); in mov_write_uuidprof_tag()
5119 avio_wb32(pb, audio_kbitrate); in mov_write_uuidprof_tag()
5120 avio_wb32(pb, audio_kbitrate); in mov_write_uuidprof_tag()
5121 avio_wb32(pb, audio_rate); in mov_write_uuidprof_tag()
5122 avio_wb32(pb, audio_par->channels); in mov_write_uuidprof_tag()
5124 avio_wb32(pb, 0x34); /* size */ in mov_write_uuidprof_tag()
5126 avio_wb32(pb, 0x0); in mov_write_uuidprof_tag()
5127 avio_wb32(pb, 0x1); /* TrackID */ in mov_write_uuidprof_tag()
5137 avio_wb32(pb, 0x0); in mov_write_uuidprof_tag()
5138 avio_wb32(pb, video_kbitrate); in mov_write_uuidprof_tag()
5139 avio_wb32(pb, video_kbitrate); in mov_write_uuidprof_tag()
5140 avio_wb32(pb, frame_rate); in mov_write_uuidprof_tag()
5141 avio_wb32(pb, frame_rate); in mov_write_uuidprof_tag()
5144 avio_wb32(pb, 0x010001); /* ? */ in mov_write_uuidprof_tag()
5397 avio_wb32(s->pb, buf_size + 8); in mov_flush_fragment()
5485 avio_wb32(s->pb, mdat_size + 8); in mov_flush_fragment()
5735 avio_wb32(pb, size); in ff_mov_write_packet()
6138 avio_wb32(pb, 0x01); // displayFlags in mov_create_chapter_track()
6161 avio_wb32(pb, 0x0D); // box size in mov_create_chapter_track()
7101 avio_wb32(pb, mov->mdat_size + 8); in mov_write_trailer()
7107 avio_wb32(pb, 1); in mov_write_trailer()
7130 avio_wb32(pb, size); in mov_write_trailer()