#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 "rtpenc.h"
#include "mov_chan.h"
#include <assert.h>
Go to the source code of this file.
Macros | |
#define | MOV_CLASS(flavor) |
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 uint16_t | fiel_data [] |
#define MOV_CLASS | ( | flavor | ) |
|
static |
Definition at line 1851 of file movenc.c.
Referenced by mov_write_psp_udta_tag().
int ff_mov_write_packet | ( | AVFormatContext * | s, |
AVPacket * | pkt | ||
) |
Definition at line 2795 of file movenc.c.
Referenced by ff_mov_add_hinted_packet(), and mov_write_packet().
|
static |
Definition at line 536 of file movenc.c.
Referenced by get_samples_per_packet(), mov_write_stts_tag(), mov_write_tfhd_tag(), and mov_write_trun_tag().
Definition at line 2227 of file movenc.c.
Referenced by mov_write_trun_tag().
|
static |
Definition at line 551 of file movenc.c.
Referenced by mov_write_audio_tag().
|
static |
Definition at line 758 of file movenc.c.
Referenced by mov_find_codec_tag().
|
static |
Definition at line 1862 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 2963 of file movenc.c.
Referenced by mov_write_header().
|
static |
Definition at line 886 of file movenc.c.
Referenced by mov_write_header().
|
static |
Definition at line 2669 of file movenc.c.
Referenced by mov_write_packet(), and mov_write_trailer().
|
static |
Definition at line 837 of file movenc.c.
Referenced by mov_find_codec_tag().
|
static |
Definition at line 775 of file movenc.c.
Referenced by mov_get_codec_tag().
|
static |
Compute flags for 'lpcm' tag.
See CoreAudioTypes and AudioStreamBasicDescription at Apple.
Definition at line 511 of file movenc.c.
Referenced by mov_write_audio_tag().
|
static |
Definition at line 821 of file movenc.c.
Referenced by mov_get_codec_tag().
|
static |
Definition at line 2591 of file movenc.c.
Referenced by ff_mov_write_packet().
Definition at line 2612 of file movenc.c.
Referenced by ff_mov_write_packet().
|
static |
Definition at line 1867 of file movenc.c.
Referenced by mov_write_udta_tag().
|
static |
Definition at line 213 of file movenc.c.
Referenced by mov_write_audio_tag(), and mov_write_wave_tag().
|
static |
Definition at line 199 of file movenc.c.
Referenced by mov_write_audio_tag(), and mov_write_wave_tag().
|
static |
Definition at line 570 of file movenc.c.
Referenced by mov_write_stsd_tag().
|
static |
Definition at line 671 of file movenc.c.
Referenced by mov_write_video_tag().
|
static |
Definition at line 682 of file movenc.c.
Referenced by mov_write_video_tag().
|
static |
Definition at line 348 of file movenc.c.
Referenced by mov_write_audio_tag().
|
static |
Definition at line 1889 of file movenc.c.
Referenced by mov_write_udta_tag().
|
static |
Definition at line 1077 of file movenc.c.
Referenced by mov_write_stbl_tag().
|
static |
Definition at line 646 of file movenc.c.
Referenced by mov_write_video_tag().
|
static |
Definition at line 1188 of file movenc.c.
Referenced by mov_write_minf_tag().
|
static |
Definition at line 1152 of file movenc.c.
Referenced by mov_write_dinf_tag().
Definition at line 407 of file movenc.c.
Referenced by mov_write_dvc1_tag(), and mov_write_trailer().
|
static |
Definition at line 482 of file movenc.c.
Referenced by mov_write_video_tag().
|
static |
Definition at line 1463 of file movenc.c.
Referenced by mov_write_trak_tag().
|
static |
Definition at line 276 of file movenc.c.
Referenced by mov_write_audio_tag(), mov_write_video_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 261 of file movenc.c.
Referenced by mov_write_audio_tag(), and mov_write_wave_tag().
|
static |
Definition at line 926 of file movenc.c.
Referenced by mov_write_video_tag().
|
static |
Definition at line 2469 of file movenc.c.
Referenced by mov_write_header().
|
static |
Definition at line 499 of file movenc.c.
Referenced by mov_write_audio_tag(), and mov_write_video_tag().
|
static |
Definition at line 1205 of file movenc.c.
Referenced by mov_write_minf_tag().
|
static |
Definition at line 1240 of file movenc.c.
Referenced by mov_write_mdia_tag(), and mov_write_minf_tag().
|
static |
|
static |
Definition at line 1283 of file movenc.c.
Referenced by mov_write_minf_tag().
|
static |
Definition at line 1797 of file movenc.c.
Referenced by mov_write_meta_tag().
|
static |
Definition at line 1588 of file movenc.c.
Referenced by mov_write_moov_tag().
|
static |
Definition at line 2085 of file movenc.c.
Referenced by mov_write_header().
|
static |
Definition at line 1702 of file movenc.c.
Referenced by mov_write_meta_tag().
|
static |
Definition at line 2457 of file movenc.c.
Referenced by mov_write_header().
|
static |
Definition at line 1320 of file movenc.c.
Referenced by mov_write_mdia_tag().
|
static |
Definition at line 1356 of file movenc.c.
Referenced by mov_write_trak_tag().
|
static |
Definition at line 1826 of file movenc.c.
Referenced by mov_write_udta_tag().
|
static |
Definition at line 2171 of file movenc.c.
Referenced by mov_write_moof_tag().
|
static |
Definition at line 2431 of file movenc.c.
Referenced by mov_write_trailer().
|
static |
Definition at line 1298 of file movenc.c.
Referenced by mov_write_mdia_tag().
|
static |
Definition at line 2373 of file movenc.c.
Referenced by mov_flush_fragment().
|
static |
Definition at line 2018 of file movenc.c.
Referenced by mov_flush_fragment(), mov_write_header(), and mov_write_trailer().
|
static |
Definition at line 329 of file movenc.c.
Referenced by mov_write_wave_tag().
|
static |
Definition at line 1630 of file movenc.c.
Referenced by mov_write_moov_tag().
|
static |
Definition at line 1641 of file movenc.c.
Referenced by mov_write_moov_tag().
|
static |
Definition at line 1197 of file movenc.c.
Referenced by mov_write_minf_tag().
|
static |
|
static |
Definition at line 954 of file movenc.c.
Referenced by mov_write_video_tag().
|
static |
Definition at line 1968 of file movenc.c.
Referenced by mov_write_uuidusmt_tag().
|
static |
Definition at line 1039 of file movenc.c.
Referenced by mov_write_stsd_tag().
|
static |
Definition at line 1221 of file movenc.c.
Referenced by mov_write_minf_tag().
|
static |
Definition at line 1166 of file movenc.c.
Referenced by mov_write_minf_tag().
|
static |
Definition at line 85 of file movenc.c.
Referenced by mov_write_stbl_tag().
|
static |
Definition at line 1718 of file movenc.c.
Referenced by mov_write_string_tag().
|
static |
Definition at line 1750 of file movenc.c.
Referenced by mov_write_ilst_tag(), and mov_write_udta_tag().
|
static |
Definition at line 1738 of file movenc.c.
Referenced by mov_write_ilst_tag(), and mov_write_string_metadata().
|
static |
Definition at line 146 of file movenc.c.
Referenced by mov_write_stbl_tag().
|
static |
Definition at line 1059 of file movenc.c.
Referenced by mov_write_stbl_tag().
|
static |
Definition at line 176 of file movenc.c.
Referenced by mov_write_stbl_tag().
|
static |
Definition at line 108 of file movenc.c.
Referenced by mov_write_stbl_tag().
|
static |
Definition at line 1111 of file movenc.c.
Referenced by mov_write_stbl_tag().
|
static |
Definition at line 939 of file movenc.c.
Referenced by mov_write_stsd_tag().
|
static |
Definition at line 659 of file movenc.c.
Referenced by mov_write_video_tag().
|
static |
Definition at line 1437 of file movenc.c.
Referenced by mov_write_trak_tag().
|
static |
Definition at line 2180 of file movenc.c.
Referenced by mov_write_traf_tag().
|
static |
Definition at line 2407 of file movenc.c.
Referenced by mov_write_mfra_tag().
|
static |
Definition at line 2297 of file movenc.c.
Referenced by mov_write_tfrf_tags().
|
static |
Definition at line 2333 of file movenc.c.
Referenced by mov_flush_fragment().
|
static |
Definition at line 2277 of file movenc.c.
Referenced by mov_write_traf_tag().
|
static |
Definition at line 1367 of file movenc.c.
Referenced by mov_write_trak_tag().
|
static |
Definition at line 2347 of file movenc.c.
Referenced by mov_write_moof_tag().
|
static |
|
static |
Definition at line 1561 of file movenc.c.
Referenced by mov_write_moov_tag().
|
static |
Definition at line 1510 of file movenc.c.
Referenced by mov_write_trak_tag().
|
static |
Definition at line 1617 of file movenc.c.
Referenced by mov_write_mvex_tag().
|
static |
Definition at line 1775 of file movenc.c.
Referenced by mov_write_ilst_tag().
|
static |
Definition at line 2233 of file movenc.c.
Referenced by mov_write_traf_tag().
|
static |
Definition at line 1539 of file movenc.c.
Referenced by mov_write_trak_tag().
|
static |
Definition at line 1915 of file movenc.c.
Referenced by mov_write_moov_tag().
|
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 910 of file movenc.c.
Referenced by mov_write_video_tag().
|
static |
Definition at line 1521 of file movenc.c.
Referenced by mov_write_trak_tag().
|
static |
Definition at line 2530 of file movenc.c.
Referenced by mov_write_header().
|
static |
Definition at line 1981 of file movenc.c.
Referenced by mov_write_moov_tag().
|
static |
Definition at line 967 of file movenc.c.
Referenced by mov_write_stsd_tag().
|
static |
Definition at line 1231 of file movenc.c.
Referenced by mov_write_minf_tag().
|
static |
Definition at line 373 of file movenc.c.
Referenced by mov_write_audio_tag().
|
static |
Definition at line 339 of file movenc.c.
Referenced by mov_write_audio_tag().
|
static |
Definition at line 729 of file movenc.c.
Referenced by mov_find_codec_tag().
|
static |
Definition at line 2076 of file movenc.c.
Referenced by mov_write_isml_manifest().
|
static |
Definition at line 2066 of file movenc.c.
Referenced by mov_write_isml_manifest().
|
static |
Definition at line 2071 of file movenc.c.
Referenced by mov_write_isml_manifest().
|
static |
Definition at line 267 of file movenc.c.
Referenced by mov_write_esds_tag(), and mov_write_iods_tag().
|
static |
Definition at line 74 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_dinf_tag(), mov_write_esds_tag(), mov_write_ftyp_tag(), mov_write_hdlr_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(), 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_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 1840 of file movenc.c.
Referenced by mov_write_3gp_udta_tag(), and mov_write_psp_udta_tag().
unsigned bps |
Definition at line 803 of file movenc.c.
Referenced by av_get_audio_frame_duration(), decode_element(), decode_subframe(), ff_wma_init(), gxf_packet(), main(), nsv_read_chunk(), pcm_read_packet(), rso_read_header(), rso_read_packet(), swap_sample_fmts_on_filter(), and tta_read_header().
|
static |
|
static |
|
static |
Definition at line 922 of file movenc.c.
Referenced by mov_write_fiel_tag().
struct { ... } mov_pix_fmt_tags[] |
Referenced by mov_get_rawvideo_codec_tag().
|
static |
enum AVPixelFormat pix_fmt |
Definition at line 801 of file movenc.c.
Referenced by 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(), fmt_ff2v4l(), get_pix_fmt_internal(), img_read_header(), init(), list_formats(), make_format_list(), query_formats(), rawvideo_read_header(), show_pix_fmts(), sws_isSupportedInput(), sws_isSupportedOutput(), v4l2_read_header(), xwd_encode_frame(), and yuv4_read_header().
uint32_t tag |
Definition at line 802 of file movenc.c.
Referenced by aac_encode_frame(), 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(), copy_tag(), decode_frame(), dump_metadata(), dxa_read_header(), ff_id3v2_parse(), ff_mov_get_channel_layout_tag(), ff_mov_read_esds(), ff_mp4_read_dec_config_descr(), ff_vorbiscomment_length(), ff_vorbiscomment_write(), ffm_read_header(), flv_write_header(), get_swf_tag(), gxf_material_tags(), gxf_track_tags(), id3v1_create_tag(), id3v1_set_string(), id3v2_check_write_tag(), ipod_get_codec_tag(), libschroedinger_decode_frame(), lz_unpack(), main(), matroska_convert_tags(), mkv_write_codecprivate(), mkv_write_header(), mkv_write_simpletag(), mkv_write_tag(), mkv_write_tracks(), 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_meta(), 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(), wv_read_block_header(), xan_decode_frame(), xwma_read_header(), yop_decode_frame(), and yop_paint_block().