Libav
|
#include <stdint.h>
#include <inttypes.h>
#include "movenc.h"
#include "avformat.h"
#include "avio_internal.h"
#include "riff.h"
#include "avio.h"
#include "isom.h"
#include "avc.h"
#include "libavcodec/get_bits.h"
#include "libavcodec/put_bits.h"
#include "libavcodec/vc1_common.h"
#include "internal.h"
#include "libavutil/avstring.h"
#include "libavutil/intfloat.h"
#include "libavutil/mathematics.h"
#include "libavutil/opt.h"
#include "libavutil/dict.h"
#include "hevc.h"
#include "rtpenc.h"
#include "mov_chan.h"
Go to the source code of this file.
Macros | |
#define | MOV_CLASS(flavor) |
#define | READ_BLOCK |
Variables | |
static const AVOption | options [] |
static const AVCodecTag | codec_ipod_tags [] |
struct { | |
enum AVPixelFormat pix_fmt | |
uint32_t tag | |
unsigned bps | |
} | mov_pix_fmt_tags [] |
static const AVCodecTag | codec_3gp_tags [] |
static const AVCodecTag | codec_f4v_tags [] |
static const uint16_t | fiel_data [] |
#define MOV_CLASS | ( | flavor | ) |
Definition at line 79 of file movenc.c.
Referenced by mov_write_trailer().
#define READ_BLOCK |
Referenced by shift_data().
|
static |
Definition at line 87 of file movenc.c.
Referenced by mov_write_3gp_udta_tag(), mov_write_hdlr_tag(), mov_write_psp_udta_tag(), and mov_write_track_metadata().
|
static |
Definition at line 99 of file movenc.c.
Referenced by mov_write_3gp_udta_tag(), mov_write_audio_tag(), mov_write_avcc_tag(), mov_write_chan_tag(), mov_write_chpl_tag(), mov_write_dinf_tag(), mov_write_esds_tag(), mov_write_ftyp_tag(), mov_write_hdlr_tag(), mov_write_hvcc_tag(), mov_write_ilst_tag(), mov_write_iods_tag(), mov_write_isml_manifest(), mov_write_loci_tag(), mov_write_mdia_tag(), mov_write_meta_tag(), mov_write_mfra_tag(), mov_write_minf_tag(), mov_write_moof_tag_internal(), mov_write_moov_tag(), mov_write_ms_tag(), mov_write_mvex_tag(), mov_write_rtp_tag(), mov_write_sidx_tag(), mov_write_stbl_tag(), mov_write_stco_tag(), mov_write_string_tag(), mov_write_stsc_tag(), mov_write_stsd_tag(), mov_write_stss_tag(), mov_write_stsz_tag(), mov_write_subtitle_tag(), mov_write_tapt_tag(), mov_write_tfdt_tag(), mov_write_tfhd_tag(), mov_write_tfra_tag(), mov_write_tfxd_tag(), mov_write_tmcd_tag(), mov_write_track_metadata(), mov_write_traf_tag(), mov_write_trak_tag(), mov_write_trun_tag(), mov_write_uuidusmt_tag(), mov_write_video_tag(), mov_write_wave_tag(), and mov_write_wfex_tag().
|
static |
Definition at line 109 of file movenc.c.
Referenced by mov_write_stco_tag().
|
static |
Definition at line 117 of file movenc.c.
Referenced by mov_write_stbl_tag().
|
static |
Definition at line 139 of file movenc.c.
Referenced by mov_write_stbl_tag().
|
static |
Definition at line 175 of file movenc.c.
Referenced by mov_write_stbl_tag().
|
static |
Definition at line 204 of file movenc.c.
Referenced by mov_write_stbl_tag().
|
static |
Definition at line 227 of file movenc.c.
Referenced by mov_write_audio_tag(), and mov_write_wave_tag().
|
static |
Definition at line 241 of file movenc.c.
Referenced by mov_write_audio_tag(), and mov_write_wave_tag().
|
static |
This function writes extradata "as is".
Extradata must be formatted like a valid atom (with size and tag).
Definition at line 289 of file movenc.c.
Referenced by mov_write_audio_tag(), and mov_write_wave_tag().
|
static |
Definition at line 295 of file movenc.c.
Referenced by mov_write_esds_tag(), and mov_write_iods_tag().
|
static |
Definition at line 304 of file movenc.c.
Referenced by mov_write_audio_tag(), mov_write_subtitle_tag(), mov_write_video_tag(), and mov_write_wave_tag().
|
static |
Definition at line 362 of file movenc.c.
Referenced by mov_write_wave_tag().
|
static |
Definition at line 372 of file movenc.c.
Referenced by mov_write_audio_tag().
|
static |
Definition at line 381 of file movenc.c.
Referenced by mov_write_audio_tag().
|
static |
Definition at line 406 of file movenc.c.
Referenced by mov_write_audio_tag().
Definition at line 440 of file movenc.c.
Referenced by mov_write_dvc1_tag().
|
static |
Definition at line 523 of file movenc.c.
Referenced by mov_write_video_tag().
|
static |
Definition at line 539 of file movenc.c.
Referenced by mov_write_audio_tag(), and mov_write_video_tag().
|
static |
Compute flags for 'lpcm' tag.
See CoreAudioTypes and AudioStreamBasicDescription at Apple.
Definition at line 551 of file movenc.c.
Referenced by mov_write_audio_tag().
|
static |
Definition at line 576 of file movenc.c.
Referenced by get_samples_per_packet(), mov_flush_fragment(), mov_write_stts_tag(), mov_write_tfhd_tag(), and mov_write_trun_tag().
|
static |
Definition at line 591 of file movenc.c.
Referenced by mov_write_audio_tag().
|
static |
Definition at line 610 of file movenc.c.
Referenced by mov_write_stsd_tag().
|
static |
Definition at line 686 of file movenc.c.
Referenced by mov_write_video_tag().
|
static |
Definition at line 699 of file movenc.c.
Referenced by mov_write_video_tag().
|
static |
Definition at line 711 of file movenc.c.
Referenced by mov_write_video_tag().
|
static |
Definition at line 721 of file movenc.c.
Referenced by mov_write_video_tag().
|
static |
Definition at line 732 of file movenc.c.
Referenced by mov_write_video_tag().
|
static |
Definition at line 779 of file movenc.c.
Referenced by mov_find_codec_tag().
|
static |
Definition at line 810 of file movenc.c.
Referenced by mov_find_codec_tag().
|
static |
Definition at line 827 of file movenc.c.
Referenced by mov_get_codec_tag().
|
static |
Definition at line 873 of file movenc.c.
Referenced by mov_get_codec_tag().
|
static |
Definition at line 889 of file movenc.c.
Referenced by mov_find_codec_tag().
|
static |
Definition at line 947 of file movenc.c.
Referenced by mov_write_header().
|
static |
Write uuid atom.
Needed to make file play in iPods running newest firmware goes after avcC atom in moov.trak.mdia.minf.stbl.stsd.avc1
Definition at line 973 of file movenc.c.
Referenced by mov_write_video_tag().
|
static |
Definition at line 989 of file movenc.c.
Referenced by mov_write_video_tag().
|
static |
Definition at line 1002 of file movenc.c.
Referenced by mov_write_stsd_tag().
|
static |
Definition at line 1019 of file movenc.c.
Referenced by mov_write_video_tag().
|
static |
Definition at line 1032 of file movenc.c.
Referenced by mov_write_stsd_tag().
|
static |
Definition at line 1112 of file movenc.c.
Referenced by mov_write_stsd_tag().
|
static |
Definition at line 1132 of file movenc.c.
Referenced by mov_write_stsd_tag().
|
static |
Definition at line 1145 of file movenc.c.
Referenced by mov_write_stbl_tag().
|
static |
Definition at line 1165 of file movenc.c.
Referenced by mov_write_stbl_tag().
|
static |
Definition at line 1201 of file movenc.c.
Referenced by mov_write_stbl_tag().
|
static |
Definition at line 1246 of file movenc.c.
Referenced by mov_write_dinf_tag().
|
static |
Definition at line 1260 of file movenc.c.
Referenced by mov_write_minf_tag().
|
static |
Definition at line 1282 of file movenc.c.
Referenced by mov_write_minf_tag().
|
static |
Definition at line 1291 of file movenc.c.
Referenced by mov_write_minf_tag().
|
static |
Definition at line 1299 of file movenc.c.
Referenced by mov_write_minf_tag().
|
static |
Definition at line 1315 of file movenc.c.
Referenced by mov_write_minf_tag().
|
static |
Definition at line 1325 of file movenc.c.
Referenced by mov_write_minf_tag().
|
static |
Definition at line 1334 of file movenc.c.
Referenced by mov_write_hdlr_tag(), mov_write_minf_tag(), and mov_write_trak_tag().
|
static |
Definition at line 1340 of file movenc.c.
Referenced by mov_write_mdia_tag(), and mov_write_minf_tag().
|
static |
Definition at line 1410 of file movenc.c.
Referenced by mov_write_minf_tag().
|
static |
Definition at line 1425 of file movenc.c.
Referenced by mov_write_mdia_tag().
|
static |
Definition at line 1452 of file movenc.c.
Referenced by mov_write_mdia_tag().
|
static |
Definition at line 1491 of file movenc.c.
Referenced by mov_write_trak_tag().
|
static |
Definition at line 1503 of file movenc.c.
Referenced by mov_write_trak_tag().
|
static |
Definition at line 1600 of file movenc.c.
Referenced by mov_write_trak_tag().
|
static |
Definition at line 1632 of file movenc.c.
Referenced by mov_write_trak_tag().
|
static |
Definition at line 1702 of file movenc.c.
Referenced by mov_write_trak_tag().
|
static |
Definition at line 1713 of file movenc.c.
Referenced by mov_write_trak_tag().
|
static |
Definition at line 1731 of file movenc.c.
Referenced by mov_write_trak_tag().
|
static |
Definition at line 1752 of file movenc.c.
Referenced by mov_write_track_udta_tag().
|
static |
Definition at line 1766 of file movenc.c.
Referenced by mov_write_trak_tag().
|
static |
Definition at line 1793 of file movenc.c.
Referenced by mov_write_moov_tag().
|
static |
Definition at line 1838 of file movenc.c.
Referenced by mov_write_moov_tag().
|
static |
Definition at line 1867 of file movenc.c.
Referenced by mov_write_mvex_tag().
|
static |
Definition at line 1880 of file movenc.c.
Referenced by mov_write_moov_tag().
|
static |
Definition at line 1891 of file movenc.c.
Referenced by mov_write_moov_tag().
|
static |
Definition at line 1958 of file movenc.c.
Referenced by mov_write_meta_tag().
|
static |
Definition at line 1974 of file movenc.c.
Referenced by mov_write_string_tag().
|
static |
Definition at line 1994 of file movenc.c.
Referenced by mov_write_ilst_tag(), and mov_write_string_metadata().
|
static |
Definition at line 2008 of file movenc.c.
Referenced by mov_write_loci_tag(), and mov_write_string_metadata().
|
static |
Definition at line 2033 of file movenc.c.
Referenced by mov_write_ilst_tag(), and mov_write_udta_tag().
|
static |
Definition at line 2045 of file movenc.c.
Referenced by mov_write_udta_tag().
|
static |
Definition at line 2096 of file movenc.c.
Referenced by mov_write_ilst_tag().
|
static |
Definition at line 2118 of file movenc.c.
Referenced by mov_write_meta_tag().
|
static |
Definition at line 2149 of file movenc.c.
Referenced by mov_write_udta_tag().
|
static |
Definition at line 2163 of file movenc.c.
Referenced by mov_write_psp_udta_tag().
|
static |
Definition at line 2174 of file movenc.c.
Referenced by mov_write_3gp_udta_tag(), mov_write_psp_udta_tag(), and mov_write_uuidusmt_tag().
|
static |
Definition at line 2181 of file movenc.c.
Referenced by mov_write_udta_tag().
|
static |
Definition at line 2203 of file movenc.c.
Referenced by mov_write_udta_tag().
|
static |
Definition at line 2229 of file movenc.c.
Referenced by mov_write_moov_tag().
|
static |
Definition at line 2283 of file movenc.c.
Referenced by mov_write_uuidusmt_tag().
|
static |
Definition at line 2296 of file movenc.c.
Referenced by mov_write_moov_tag().
|
static |
Definition at line 2333 of file movenc.c.
Referenced by get_moov_size(), mov_flush_fragment(), mov_write_header(), and mov_write_trailer().
|
static |
Definition at line 2392 of file movenc.c.
Referenced by mov_write_isml_manifest().
|
static |
Definition at line 2397 of file movenc.c.
Referenced by mov_write_isml_manifest().
|
static |
Definition at line 2402 of file movenc.c.
Referenced by mov_write_isml_manifest().
|
static |
Definition at line 2411 of file movenc.c.
Referenced by mov_write_header().
|
static |
Definition at line 2497 of file movenc.c.
Referenced by mov_write_moof_tag_internal().
Definition at line 2506 of file movenc.c.
Referenced by mov_write_tfhd_tag(), and mov_write_trun_tag().
|
static |
Definition at line 2512 of file movenc.c.
Referenced by mov_write_traf_tag().
|
static |
Definition at line 2572 of file movenc.c.
Referenced by mov_write_traf_tag().
|
static |
Definition at line 2625 of file movenc.c.
Referenced by mov_write_traf_tag().
|
static |
Definition at line 2646 of file movenc.c.
Referenced by mov_write_tfrf_tags().
|
static |
Definition at line 2682 of file movenc.c.
Referenced by mov_add_tfra_entries().
|
static |
Definition at line 2696 of file movenc.c.
Referenced by mov_write_moof_tag().
|
static |
Definition at line 2736 of file movenc.c.
Referenced by mov_write_moof_tag().
|
static |
Definition at line 2750 of file movenc.c.
Referenced by mov_write_traf_tag().
|
static |
Definition at line 2762 of file movenc.c.
Referenced by mov_write_moof_tag_internal().
|
static |
Definition at line 2802 of file movenc.c.
Referenced by mov_write_moof_tag().
|
static |
Definition at line 2825 of file movenc.c.
Referenced by mov_write_sidx_tags().
|
static |
Definition at line 2886 of file movenc.c.
Referenced by get_sidx_size(), mov_write_moof_tag(), and mov_write_trailer().
|
static |
Definition at line 2921 of file movenc.c.
Referenced by mov_flush_fragment().
|
static |
Definition at line 2949 of file movenc.c.
Referenced by mov_write_mfra_tag().
|
static |
Definition at line 2973 of file movenc.c.
Referenced by mov_write_trailer().
|
static |
Definition at line 2999 of file movenc.c.
Referenced by mov_write_header().
|
static |
Definition at line 3011 of file movenc.c.
Referenced by mov_write_identification().
|
static |
Definition at line 3086 of file movenc.c.
Referenced by mov_write_identification().
|
static |
Definition at line 3149 of file movenc.c.
Referenced by mov_flush_fragment(), and mov_write_header().
|
static |
Definition at line 3163 of file movenc.c.
Referenced by ff_mov_write_packet().
Definition at line 3184 of file movenc.c.
Referenced by ff_mov_write_packet().
|
static |
Definition at line 3244 of file movenc.c.
Referenced by ff_mov_write_packet(), and mov_flush_fragment().
|
static |
Definition at line 3270 of file movenc.c.
Referenced by mov_auto_flush_fragment(), and mov_write_packet().
|
static |
Definition at line 3481 of file movenc.c.
Referenced by mov_write_packet(), and mov_write_trailer().
int ff_mov_write_packet | ( | AVFormatContext * | s, |
AVPacket * | pkt | ||
) |
Definition at line 3495 of file movenc.c.
Referenced by ff_mov_add_hinted_packet(), mov_create_chapter_track(), and mov_write_packet().
|
static |
Definition at line 3712 of file movenc.c.
Referenced by mov_write_trailer().
|
static |
Definition at line 3774 of file movenc.c.
Referenced by mov_write_header(), and mov_write_trailer().
|
static |
Definition at line 3836 of file movenc.c.
Referenced by mov_write_header().
|
static |
Definition at line 3877 of file movenc.c.
Referenced by mov_write_header(), and mov_write_trailer().
|
static |
Definition at line 3898 of file movenc.c.
Referenced by mov_create_dvd_sub_decoder_specific_info().
Definition at line 3914 of file movenc.c.
Referenced by mov_write_header().
|
static |
Definition at line 3963 of file movenc.c.
Referenced by mov_write_trailer().
|
static |
Definition at line 4217 of file movenc.c.
Referenced by compute_moov_size().
|
static |
Definition at line 4229 of file movenc.c.
Referenced by compute_sidx_size().
|
static |
Definition at line 4247 of file movenc.c.
Referenced by shift_data().
|
static |
Definition at line 4272 of file movenc.c.
Referenced by shift_data().
|
static |
Definition at line 4287 of file movenc.c.
Referenced by mov_write_trailer().
|
static |
|
static |
Definition at line 799 of file movenc.c.
Referenced by mov_write_trailer().
enum AVPixelFormat pix_fmt |
Definition at line 853 of file movenc.c.
Referenced by alloc_picture(), av_get_pix_fmt(), av_get_pix_fmt_name(), av_get_pix_fmt_string(), av_hwframe_ctx_init(), av_pix_fmt_desc_get(), avcodec_find_best_pix_fmt1(), dc1394_read_common(), decode_frame(), device_init(), fbdev_read_header(), ff_vda_default_init(), fmt_ff2v4l(), get_pix_fmt_internal(), hls_slice_header(), img_read_header(), init(), list_formats(), mpegvideo_extract_headers(), query_formats(), rawvideo_read_header(), set_sps(), show_pix_fmts(), sws_isSupportedEndiannessConversion(), sws_isSupportedInput(), sws_isSupportedOutput(), v4l2_read_header(), vaapi_build_decoder_config(), vdpau_transfer_data_from(), vdpau_transfer_data_to(), xwd_encode_frame(), and yuv4_read_header().
uint32_t tag |
Definition at line 854 of file movenc.c.
Referenced by aac_encode_frame(), add_input_streams(), aiff_read_header(), ape_read_header(), asf_write_header1(), av_codec_get_tag(), av_dict_set(), av_find_info_tag(), avi_load_index(), avi_read_header(), avi_read_idx1(), avi_read_nikon(), avi_stream2fourcc(), avi_write_header(), avi_write_idx1(), avi_write_ix(), avi_write_packet(), bwf_write_bext_string(), check_content_type(), check_stream_specifier(), copy_tag(), decode_frame(), decode_interframe_v4(), decode_interframe_v4a(), dump_metadata(), dxa_read_header(), dxv_decode(), ff_mov_read_esds(), ff_mp4_read_dec_config_descr(), ff_vorbiscomment_length(), ff_vorbiscomment_write(), get_swf_tag(), gxf_material_tags(), gxf_track_tags(), hq_hqa_decode_frame(), id3v1_create_tag(), id3v1_set_string(), id3v2_check_write_tag(), id3v2_parse(), ipod_get_codec_tag(), libschroedinger_decode_frame(), lz_unpack(), main(), matroska_convert_tags(), mkv_write_codecprivate(), mkv_write_header(), mkv_write_simpletag(), mkv_write_stereo_mode(), mkv_write_tag(), mkv_write_track(), mmf_read_header(), mov_get_dv_codec_tag(), mov_probe(), mov_read_custom(), mov_read_meta(), mov_read_replaygain(), mov_read_udta_string(), mov_write_audio_tag(), mp4_get_codec_tag(), mpc8_parse_seektable(), mpc8_read_header(), mpc8_read_packet(), new_output_stream(), ogm_header(), parse_fragment(), parse_mp4_descr(), parse_multipart_header(), parse_video_info(), pmt_cb(), process_line(), put_swf_end_tag(), put_swf_tag(), qcp_read_packet(), qt_rtp_parse_packet(), rdt_load_mdpr(), read_header(), read_moof_duration(), rm_read_header(), rv10_write_header(), set_codec_str(), siff_probe(), siff_read_header(), skip_tag(), smjpeg_write_header(), sol_read_header(), swf_read_header(), swf_read_packet(), tiff_decode_tag(), validate_codec_tag(), write_metadata(), xan_decode_frame(), xwma_read_header(), yop_decode_frame(), and yop_paint_block().
unsigned bps |
Definition at line 855 of file movenc.c.
Referenced by decode_element(), decode_subframe(), ff_audio_resample(), ff_put_wav_header(), ff_wma_init(), get_audio_frame_duration(), gxf_packet(), main(), nsv_read_chunk(), parse_waveformatex(), pcm_read_packet(), process_output(), rso_read_header(), rso_read_packet(), and swap_sample_fmts_on_filter().
const { ... } mov_pix_fmt_tags[] |
Referenced by mov_get_rawvideo_codec_tag().
|
static |
Definition at line 927 of file movenc.c.
Referenced by mov_write_trailer().
|
static |
Definition at line 938 of file movenc.c.
Referenced by mov_write_trailer().
|
static |
Definition at line 985 of file movenc.c.
Referenced by mov_write_fiel_tag().