MobileFFmpeg iOS / tvOS API
4.4
|
Go to the documentation of this file.
44 #ifndef FFTOOLS_FFMPEG_H
45 #define FFTOOLS_FFMPEG_H
53 #include "libavformat/avformat.h"
54 #include "libavformat/avio.h"
56 #include "libavcodec/avcodec.h"
58 #include "libavfilter/avfilter.h"
60 #include "libavutil/avutil.h"
61 #include "libavutil/dict.h"
62 #include "libavutil/eval.h"
63 #include "libavutil/fifo.h"
64 #include "libavutil/hwcontext.h"
65 #include "libavutil/pixfmt.h"
66 #include "libavutil/rational.h"
67 #include "libavutil/thread.h"
68 #include "libavutil/threadmessage.h"
70 #include "libswresample/swresample.h"
73 #define VSYNC_PASSTHROUGH 0
76 #define VSYNC_VSCFR 0xfe
77 #define VSYNC_DROP 0xff
79 #define MAX_STREAMS 1024
99 enum AVHWDeviceType
type;
263 enum AVMediaType
type;
290 enum AVMediaType
type;
324 #define DECODING_FOR_OST 1
325 #define DECODING_FOR_FILTER 2
439 AVThreadMessageQueue *in_thread_queue;
443 int thread_queue_size;
456 #define ABORT_ON_FLAG_EMPTY_OUTPUT (1 << 0)
637 extern __thread
const AVIOInterruptCB
int_cb;
642 extern __thread
char *qsv_device;
659 enum AVPixelFormat
choose_pixel_fmt(AVStream *st, AVCodecContext *avctx, AVCodec *codec,
enum AVPixelFormat target);
689 void set_report_callback(
void (*callback)(
int,
float,
float, int64_t,
int,
double,
double));
693 int opt_map(
void *optctx,
const char *opt,
const char *arg);
698 int opt_target(
void *optctx,
const char *opt,
const char *arg);
699 int opt_vsync(
void *optctx,
const char *opt,
const char *arg);
700 int opt_abort_on(
void *optctx,
const char *opt,
const char *arg);
701 int opt_qscale(
void *optctx,
const char *opt,
const char *arg);
702 int opt_profile(
void *optctx,
const char *opt,
const char *arg);
705 int opt_attach(
void *optctx,
const char *opt,
const char *arg);
708 int opt_sameq(
void *optctx,
const char *opt,
const char *arg);
709 int opt_timecode(
void *optctx,
const char *opt,
const char *arg);
712 int opt_vstats(
void *optctx,
const char *opt,
const char *arg);
714 int opt_old2new(
void *optctx,
const char *opt,
const char *arg);
715 int opt_streamid(
void *optctx,
const char *opt,
const char *arg);
716 int opt_bitrate(
void *optctx,
const char *opt,
const char *arg);
717 int show_hwaccels(
void *optctx,
const char *opt,
const char *arg);
723 int opt_preset(
void *optctx,
const char *opt,
const char *arg);
728 int opt_sdp_file(
void *optctx,
const char *opt,
const char *arg);
729 int opt_data_codec(
void *optctx,
const char *opt,
const char *arg);
739 void parse_meta_type(
char *arg,
char *type,
int *index,
const char **stream_spec);
741 AVCodec *
find_codec_or_die(
const char *name,
enum AVMediaType type,
int encoder);
744 int get_preset_file_2(
const char *preset_name,
const char *codec_name, AVIOContext **s);
SpecifierOpt * disposition
SpecifierOpt * hwaccel_output_formats
double rotate_override_value
AVCodecParameters * ref_par
const char ** attachments
char * filters
filtergraph associated to the -filter option
AVFifoBuffer * muxing_queue
int nb_audio_channel_maps
SpecifierOpt * enc_time_bases
SpecifierOpt * chroma_intra_matrices
SpecifierOpt * dump_attachment
SpecifierOpt * sample_fmts
SpecifierOpt * filter_scripts
SpecifierOpt * top_field_first
int audio_channels_mapped
const char * attachment_filename
SpecifierOpt * rc_overrides
int metadata_chapters_manual
SpecifierOpt * frame_rates
SpecifierOpt * forced_key_frames
SpecifierOpt * guess_layout_max
int max_muxing_queue_size
SpecifierOpt * frame_aspect_ratios
double forced_keyframes_expr_const_values[FKF_NB]
struct FilterGraph * graph
int nb_copy_initial_nonkeyframes
AVExpr * forced_keyframes_pexpr
SpecifierOpt * max_frames
enum AVPixelFormat pix_fmt
SpecifierOpt * max_muxing_queue_size
SpecifierOpt * audio_sample_rate
int64_t recording_time
desired length of the resulting file in microseconds == AV_TIME_BASE units
int metadata_global_manual
AudioChannelMap * audio_channel_maps
int64_t forced_kf_ref_pts
SpecifierOpt * passlogfiles
SpecifierOpt * hwaccel_devices
SpecifierOpt * frame_pix_fmts
AVDictionary * resample_opts
SpecifierOpt * bitstream_filters
SpecifierOpt * autorotate
SpecifierOpt * inter_matrices
SpecifierOpt * frame_sizes
struct InputStream * sync_ist
SpecifierOpt * metadata_map
int nb_frame_aspect_ratios
int nb_max_muxing_queue_size
SpecifierOpt * time_bases
SpecifierOpt * intra_matrices
SpecifierOpt * copy_initial_nonkeyframes
SpecifierOpt * copy_prior_start
SpecifierOpt * codec_names
SpecifierOpt * fix_sub_duration
SpecifierOpt * reinit_filters
char * filters_script
filtergraph script associated to the -filter_script option
int(* init)(AVCodecContext *s)
SpecifierOpt * canvas_sizes
AVRational frame_aspect_ratio
int metadata_streams_manual
SpecifierOpt * audio_channels
int64_t start_time
start time in microseconds == AV_TIME_BASE units
int nb_hwaccel_output_formats
int copy_initial_nonkeyframes
AVDictionary * encoder_opts
int nb_chroma_intra_matrices
struct OutputStream * ost
uint64_t * channel_layouts
SpecifierOpt * codec_tags