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.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"
#include <assert.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 | ) |
#define READ_BLOCK |
Referenced by shift_data().
|
static |
Definition at line 81 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 93 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_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_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_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 103 of file movenc.c.
Referenced by mov_write_stco_tag().
|
static |
Definition at line 111 of file movenc.c.
Referenced by mov_write_stbl_tag().
|
static |
Definition at line 133 of file movenc.c.
Referenced by mov_write_stbl_tag().
|
static |
Definition at line 169 of file movenc.c.
Referenced by mov_write_stbl_tag().
|
static |
Definition at line 198 of file movenc.c.
Referenced by mov_write_stbl_tag().
|
static |
Definition at line 221 of file movenc.c.
Referenced by mov_write_audio_tag(), and mov_write_wave_tag().
|
static |
Definition at line 235 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 283 of file movenc.c.
Referenced by mov_write_audio_tag(), and mov_write_wave_tag().
|
static |
Definition at line 289 of file movenc.c.
Referenced by mov_write_esds_tag(), and mov_write_iods_tag().
|
static |
Definition at line 298 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 353 of file movenc.c.
Referenced by mov_write_wave_tag().
|
static |
Definition at line 363 of file movenc.c.
Referenced by mov_write_audio_tag().
|
static |
Definition at line 372 of file movenc.c.
Referenced by mov_write_audio_tag().
|
static |
Definition at line 397 of file movenc.c.
Referenced by mov_write_audio_tag().
Definition at line 431 of file movenc.c.
Referenced by mov_write_dvc1_tag(), and mov_write_trailer().
|
static |
Definition at line 512 of file movenc.c.
Referenced by mov_write_video_tag().
|
static |
Definition at line 529 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 541 of file movenc.c.
Referenced by mov_write_audio_tag().
|
static |
Definition at line 566 of file movenc.c.
Referenced by get_samples_per_packet(), mov_write_stts_tag(), mov_write_tfhd_tag(), and mov_write_trun_tag().
|
static |
Definition at line 581 of file movenc.c.
Referenced by mov_write_audio_tag().
|
static |
Definition at line 600 of file movenc.c.
Referenced by mov_write_stsd_tag().
|
static |
Definition at line 676 of file movenc.c.
Referenced by mov_write_video_tag().
|
static |
Definition at line 689 of file movenc.c.
Referenced by mov_write_video_tag().
|
static |
Definition at line 701 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 722 of file movenc.c.
Referenced by mov_write_video_tag().
|
static |
Definition at line 769 of file movenc.c.
Referenced by mov_find_codec_tag().
|
static |
Definition at line 800 of file movenc.c.
Referenced by mov_find_codec_tag().
|
static |
Definition at line 817 of file movenc.c.
Referenced by mov_get_codec_tag().
|
static |
Definition at line 863 of file movenc.c.
Referenced by mov_get_codec_tag().
|
static |
Definition at line 879 of file movenc.c.
Referenced by mov_find_codec_tag().
|
static |
Definition at line 937 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 963 of file movenc.c.
Referenced by mov_write_video_tag().
|
static |
Definition at line 979 of file movenc.c.
Referenced by mov_write_video_tag().
|
static |
Definition at line 992 of file movenc.c.
Referenced by mov_write_stsd_tag().
|
static |
Definition at line 1009 of file movenc.c.
Referenced by mov_write_video_tag().
|
static |
Definition at line 1022 of file movenc.c.
Referenced by mov_write_stsd_tag().
|
static |
Definition at line 1102 of file movenc.c.
Referenced by mov_write_stsd_tag().
|
static |
Definition at line 1122 of file movenc.c.
Referenced by mov_write_stsd_tag().
|
static |
Definition at line 1135 of file movenc.c.
Referenced by mov_write_stbl_tag().
|
static |
Definition at line 1155 of file movenc.c.
Referenced by mov_write_stbl_tag().
|
static |
Definition at line 1189 of file movenc.c.
Referenced by mov_write_stbl_tag().
|
static |
Definition at line 1230 of file movenc.c.
Referenced by mov_write_dinf_tag().
|
static |
Definition at line 1244 of file movenc.c.
Referenced by mov_write_minf_tag().
|
static |
Definition at line 1266 of file movenc.c.
Referenced by mov_write_minf_tag().
|
static |
Definition at line 1275 of file movenc.c.
Referenced by mov_write_minf_tag().
|
static |
Definition at line 1283 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 1309 of file movenc.c.
Referenced by mov_write_minf_tag().
|
static |
Definition at line 1318 of file movenc.c.
Referenced by mov_write_hdlr_tag(), mov_write_minf_tag(), and mov_write_trak_tag().
|
static |
Definition at line 1324 of file movenc.c.
Referenced by mov_write_mdia_tag(), and mov_write_minf_tag().
|
static |
Definition at line 1394 of file movenc.c.
Referenced by mov_write_minf_tag().
|
static |
Definition at line 1409 of file movenc.c.
Referenced by mov_write_mdia_tag().
|
static |
Definition at line 1436 of file movenc.c.
Referenced by mov_write_mdia_tag().
|
static |
Definition at line 1472 of file movenc.c.
Referenced by mov_write_trak_tag().
|
static |
Definition at line 1483 of file movenc.c.
Referenced by mov_write_trak_tag().
|
static |
Definition at line 1566 of file movenc.c.
Referenced by mov_write_trak_tag().
|
static |
Definition at line 1598 of file movenc.c.
Referenced by mov_write_trak_tag().
|
static |
Definition at line 1645 of file movenc.c.
Referenced by mov_write_trak_tag().
|
static |
Definition at line 1656 of file movenc.c.
Referenced by mov_write_trak_tag().
|
static |
Definition at line 1674 of file movenc.c.
Referenced by mov_write_trak_tag().
|
static |
Definition at line 1695 of file movenc.c.
Referenced by mov_write_track_udta_tag().
|
static |
Definition at line 1709 of file movenc.c.
Referenced by mov_write_trak_tag().
|
static |
Definition at line 1736 of file movenc.c.
Referenced by mov_write_moov_tag().
|
static |
Definition at line 1771 of file movenc.c.
Referenced by mov_write_moov_tag().
|
static |
Definition at line 1800 of file movenc.c.
Referenced by mov_write_mvex_tag().
|
static |
Definition at line 1813 of file movenc.c.
Referenced by mov_write_moov_tag().
|
static |
Definition at line 1824 of file movenc.c.
Referenced by mov_write_moov_tag().
|
static |
Definition at line 1885 of file movenc.c.
Referenced by mov_write_meta_tag().
|
static |
Definition at line 1901 of file movenc.c.
Referenced by mov_write_string_tag().
|
static |
Definition at line 1921 of file movenc.c.
Referenced by mov_write_ilst_tag(), and mov_write_string_metadata().
|
static |
Definition at line 1935 of file movenc.c.
Referenced by mov_write_ilst_tag(), and mov_write_udta_tag().
|
static |
Definition at line 1960 of file movenc.c.
Referenced by mov_write_ilst_tag().
|
static |
Definition at line 1982 of file movenc.c.
Referenced by mov_write_meta_tag().
|
static |
Definition at line 2013 of file movenc.c.
Referenced by mov_write_udta_tag().
|
static |
Definition at line 2027 of file movenc.c.
Referenced by mov_write_psp_udta_tag().
|
static |
Definition at line 2038 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 2045 of file movenc.c.
Referenced by mov_write_udta_tag().
|
static |
Definition at line 2067 of file movenc.c.
Referenced by mov_write_udta_tag().
|
static |
Definition at line 2093 of file movenc.c.
Referenced by mov_write_moov_tag().
|
static |
Definition at line 2142 of file movenc.c.
Referenced by mov_write_uuidusmt_tag().
|
static |
Definition at line 2155 of file movenc.c.
Referenced by mov_write_moov_tag().
|
static |
Definition at line 2192 of file movenc.c.
Referenced by get_moov_size(), mov_flush_fragment(), mov_write_header(), and mov_write_trailer().
|
static |
Definition at line 2240 of file movenc.c.
Referenced by mov_write_isml_manifest().
|
static |
Definition at line 2245 of file movenc.c.
Referenced by mov_write_isml_manifest().
|
static |
Definition at line 2250 of file movenc.c.
Referenced by mov_write_isml_manifest().
|
static |
Definition at line 2259 of file movenc.c.
Referenced by mov_write_header().
|
static |
Definition at line 2345 of file movenc.c.
Referenced by mov_write_moof_tag_internal().
|
static |
Definition at line 2354 of file movenc.c.
Referenced by mov_write_traf_tag().
Definition at line 2405 of file movenc.c.
Referenced by mov_write_trun_tag().
|
static |
Definition at line 2411 of file movenc.c.
Referenced by mov_write_traf_tag().
|
static |
Definition at line 2461 of file movenc.c.
Referenced by mov_write_traf_tag().
|
static |
Definition at line 2481 of file movenc.c.
Referenced by mov_write_tfrf_tags().
|
static |
Definition at line 2517 of file movenc.c.
Referenced by mov_flush_fragment().
|
static |
Definition at line 2531 of file movenc.c.
Referenced by mov_write_moof_tag_internal().
|
static |
Definition at line 2558 of file movenc.c.
Referenced by mov_write_moof_tag().
|
static |
Definition at line 2580 of file movenc.c.
Referenced by mov_flush_fragment().
|
static |
Definition at line 2592 of file movenc.c.
Referenced by mov_write_mfra_tag().
|
static |
Definition at line 2616 of file movenc.c.
Referenced by mov_write_trailer().
|
static |
Definition at line 2642 of file movenc.c.
Referenced by mov_write_header().
|
static |
Definition at line 2654 of file movenc.c.
Referenced by mov_write_header().
|
static |
Definition at line 2719 of file movenc.c.
Referenced by mov_write_header().
|
static |
Definition at line 2782 of file movenc.c.
Referenced by ff_mov_write_packet().
Definition at line 2803 of file movenc.c.
Referenced by ff_mov_write_packet().
|
static |
Definition at line 2860 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 2990 of file movenc.c.
Referenced by ff_mov_add_hinted_packet(), mov_create_chapter_track(), and mov_write_packet().
|
static |
|
static |
Definition at line 3168 of file movenc.c.
Referenced by mov_write_header(), and mov_write_trailer().
|
static |
Definition at line 3230 of file movenc.c.
Referenced by mov_write_header().
|
static |
Definition at line 3271 of file movenc.c.
Referenced by mov_write_header(), and mov_write_trailer().
|
static |
Definition at line 3295 of file movenc.c.
Referenced by mov_create_dvd_sub_decoder_specific_info().
Definition at line 3311 of file movenc.c.
Referenced by mov_write_header().
|
static |
|
static |
Definition at line 3580 of file movenc.c.
Referenced by compute_moov_size().
|
static |
Definition at line 3598 of file movenc.c.
Referenced by shift_data().
|
static |
Definition at line 3623 of file movenc.c.
Referenced by mov_write_trailer().
|
static |
|
static |
|
static |
enum AVPixelFormat pix_fmt |
Definition at line 843 of file movenc.c.
Referenced by alloc_picture(), av_get_pix_fmt(), av_get_pix_fmt_name(), av_get_pix_fmt_string(), 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(), img_read_header(), init(), list_formats(), query_formats(), rawvideo_read_header(), show_pix_fmts(), sws_isSupportedEndiannessConversion(), sws_isSupportedInput(), sws_isSupportedOutput(), v4l2_read_header(), xwd_encode_frame(), and yuv4_read_header().
uint32_t tag |
Definition at line 844 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(), av_get_audio_frame_duration(), 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_stream_specifier(), copy_tag(), decode_frame(), decode_interframe_v4(), decode_interframe_v4a(), dump_metadata(), dxa_read_header(), ff_mov_get_channel_layout_tag(), ff_mov_read_esds(), ff_mp4_read_dec_config_descr(), ff_vorbiscomment_length(), ff_vorbiscomment_write(), flv_write_header(), get_swf_tag(), gxf_material_tags(), gxf_track_tags(), 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(), metasound_decode_init(), mkv_write_codecprivate(), mkv_write_header(), mkv_write_simpletag(), mkv_write_stereo_mode(), mkv_write_tag(), mkv_write_track(), mmf_read_header(), mov_find_codec_tag(), mov_get_codec_tag(), mov_get_dv_codec_tag(), mov_get_rawvideo_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(), pmt_cb(), process_line(), put_swf_end_tag(), put_swf_tag(), qcp_read_packet(), qt_rtp_parse_packet(), rdt_load_mdpr(), read_header(), rm_read_header(), rv10_write_header(), siff_probe(), siff_read_header(), smjpeg_write_header(), sol_read_header(), srt_to_ass(), swf_read_header(), swf_read_packet(), tiff_decode_tag(), validate_codec_tag(), xan_decode_frame(), xwma_read_header(), yop_decode_frame(), and yop_paint_block().
unsigned bps |
Definition at line 845 of file movenc.c.
Referenced by av_get_audio_frame_duration(), decode_element(), decode_subframe(), ff_audio_resample(), ff_put_wav_header(), ff_wma_init(), gxf_packet(), main(), nsv_read_chunk(), parse_waveformatex(), pcm_read_packet(), process_output(), rso_read_header(), rso_read_packet(), swap_sample_fmts_on_filter(), and tta_read_header().
const { ... } mov_pix_fmt_tags[] |
Referenced by mov_get_rawvideo_codec_tag().
|
static |
|
static |
|
static |
Definition at line 975 of file movenc.c.
Referenced by mov_write_fiel_tag().