mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-04-17 14:00:06 +00:00
fixed the ffmpeg build size
This commit is contained in:
@@ -194,7 +194,7 @@
|
||||
* the @ref AVStream.codec "stream codec context" information, such as the
|
||||
* codec @ref AVCodecContext.codec_type "type", @ref AVCodecContext.codec_id
|
||||
* "id" and other parameters (e.g. width / height, the pixel or sample format,
|
||||
* etc.) as known. The @ref AVCodecContext.time_base "codec timebase" should
|
||||
* etc.) as known. The @ref AVStream.time_base "stream timebase" should
|
||||
* be set to the timebase that the caller desires to use for this stream (note
|
||||
* that the timebase actually used by the muxer can be different, as will be
|
||||
* described later).
|
||||
@@ -218,8 +218,8 @@
|
||||
* a single muxing context, they should not be mixed). Do note that the timing
|
||||
* information on the packets sent to the muxer must be in the corresponding
|
||||
* AVStream's timebase. That timebase is set by the muxer (in the
|
||||
* avformat_write_header() step) and may be different from the timebase the
|
||||
* caller set on the codec context.
|
||||
* avformat_write_header() step) and may be different from the timebase
|
||||
* requested by the caller.
|
||||
*
|
||||
* Once all the data has been written, the caller must call av_write_trailer()
|
||||
* to flush any buffered packets and finalize the output file, then close the IO
|
||||
@@ -262,6 +262,7 @@
|
||||
struct AVFormatContext;
|
||||
|
||||
struct AVDeviceInfoList;
|
||||
struct AVDeviceCapabilitiesQuery;
|
||||
|
||||
/**
|
||||
* @defgroup metadata_api Public Metadata API
|
||||
@@ -367,6 +368,7 @@ int av_get_packet(AVIOContext *s, AVPacket *pkt, int size);
|
||||
*/
|
||||
int av_append_packet(AVIOContext *s, AVPacket *pkt, int size);
|
||||
|
||||
#if FF_API_LAVF_FRAC
|
||||
/*************************************************/
|
||||
/* fractional numbers for exact pts handling */
|
||||
|
||||
@@ -377,6 +379,7 @@ int av_append_packet(AVIOContext *s, AVPacket *pkt, int size);
|
||||
typedef struct AVFrac {
|
||||
int64_t val, num, den;
|
||||
} AVFrac;
|
||||
#endif
|
||||
|
||||
/*************************************************/
|
||||
/* input/output formats */
|
||||
@@ -531,6 +534,16 @@ typedef struct AVOutputFormat {
|
||||
* @see avdevice_list_devices() for more details.
|
||||
*/
|
||||
int (*get_device_list)(struct AVFormatContext *s, struct AVDeviceInfoList *device_list);
|
||||
/**
|
||||
* Initialize device capabilities submodule.
|
||||
* @see avdevice_capabilities_create() for more details.
|
||||
*/
|
||||
int (*create_device_capabilities)(struct AVFormatContext *s, struct AVDeviceCapabilitiesQuery *caps);
|
||||
/**
|
||||
* Free device capabilities submodule.
|
||||
* @see avdevice_capabilities_free() for more details.
|
||||
*/
|
||||
int (*free_device_capabilities)(struct AVFormatContext *s, struct AVDeviceCapabilitiesQuery *caps);
|
||||
} AVOutputFormat;
|
||||
/**
|
||||
* @}
|
||||
@@ -665,6 +678,18 @@ typedef struct AVInputFormat {
|
||||
* @see avdevice_list_devices() for more details.
|
||||
*/
|
||||
int (*get_device_list)(struct AVFormatContext *s, struct AVDeviceInfoList *device_list);
|
||||
|
||||
/**
|
||||
* Initialize device capabilities submodule.
|
||||
* @see avdevice_capabilities_create() for more details.
|
||||
*/
|
||||
int (*create_device_capabilities)(struct AVFormatContext *s, struct AVDeviceCapabilitiesQuery *caps);
|
||||
|
||||
/**
|
||||
* Free device capabilities submodule.
|
||||
* @see avdevice_capabilities_free() for more details.
|
||||
*/
|
||||
int (*free_device_capabilities)(struct AVFormatContext *s, struct AVDeviceCapabilitiesQuery *caps);
|
||||
} AVInputFormat;
|
||||
/**
|
||||
* @}
|
||||
@@ -762,19 +787,25 @@ typedef struct AVStream {
|
||||
AVCodecContext *codec;
|
||||
void *priv_data;
|
||||
|
||||
#if FF_API_LAVF_FRAC
|
||||
/**
|
||||
* encoding: pts generation when outputting stream
|
||||
* @deprecated this field is unused
|
||||
*/
|
||||
attribute_deprecated
|
||||
struct AVFrac pts;
|
||||
#endif
|
||||
|
||||
/**
|
||||
* This is the fundamental unit of time (in seconds) in terms
|
||||
* of which frame timestamps are represented.
|
||||
*
|
||||
* decoding: set by libavformat
|
||||
* encoding: set by libavformat in avformat_write_header. The muxer may use the
|
||||
* user-provided value of @ref AVCodecContext.time_base "codec->time_base"
|
||||
* as a hint.
|
||||
* encoding: May be set by the caller before avformat_write_header() to
|
||||
* provide a hint to the muxer about the desired timebase. In
|
||||
* avformat_write_header(), the muxer will overwrite this field
|
||||
* with the timebase that will actually be used for the timestamps
|
||||
* written into the file (which may or may not be related to the
|
||||
* user-provided one, depending on the format).
|
||||
*/
|
||||
AVRational time_base;
|
||||
|
||||
@@ -812,6 +843,10 @@ typedef struct AVStream {
|
||||
|
||||
/**
|
||||
* Average framerate
|
||||
*
|
||||
* - demuxing: May be set by libavformat when creating the stream or in
|
||||
* avformat_find_stream_info().
|
||||
* - muxing: May be set by the caller before avformat_write_header().
|
||||
*/
|
||||
AVRational avg_frame_rate;
|
||||
|
||||
@@ -824,6 +859,30 @@ typedef struct AVStream {
|
||||
*/
|
||||
AVPacket attached_pic;
|
||||
|
||||
/**
|
||||
* An array of side data that applies to the whole stream (i.e. the
|
||||
* container does not allow it to change between packets).
|
||||
*
|
||||
* There may be no overlap between the side data in this array and side data
|
||||
* in the packets. I.e. a given side data is either exported by the muxer
|
||||
* (demuxing) / set by the caller (muxing) in this array, then it never
|
||||
* appears in the packets, or the side data is exported / sent through
|
||||
* the packets (always in the first packet where the value becomes known or
|
||||
* changes), then it does not appear in this array.
|
||||
*
|
||||
* - demuxing: Set by libavformat when the stream is created.
|
||||
* - muxing: May be set by the caller before avformat_write_header().
|
||||
*
|
||||
* Freed by libavformat in avformat_free_context().
|
||||
*
|
||||
* @see av_format_inject_global_side_data()
|
||||
*/
|
||||
AVPacketSideData *side_data;
|
||||
/**
|
||||
* The number of elements in the AVStream.side_data array.
|
||||
*/
|
||||
int nb_side_data;
|
||||
|
||||
/*****************************************************************
|
||||
* All fields below this line are not part of the public API. They
|
||||
* may not be used outside of libavformat and can be changed and
|
||||
@@ -844,6 +903,12 @@ typedef struct AVStream {
|
||||
double (*duration_error)[2][MAX_STD_TIMEBASES];
|
||||
int64_t codec_info_duration;
|
||||
int64_t codec_info_duration_fields;
|
||||
|
||||
/**
|
||||
* 0 -> decoder has not been searched for yet.
|
||||
* >0 -> decoder found
|
||||
* <0 -> decoder with codec_id == -found_decoder has not been found
|
||||
*/
|
||||
int found_decoder;
|
||||
|
||||
int64_t last_duration;
|
||||
@@ -995,10 +1060,23 @@ typedef struct AVStream {
|
||||
uint8_t dts_ordered;
|
||||
uint8_t dts_misordered;
|
||||
|
||||
/**
|
||||
* Internal data to inject global side data
|
||||
*/
|
||||
int inject_global_side_data;
|
||||
|
||||
} AVStream;
|
||||
|
||||
AVRational av_stream_get_r_frame_rate(const AVStream *s);
|
||||
void av_stream_set_r_frame_rate(AVStream *s, AVRational r);
|
||||
struct AVCodecParserContext *av_stream_get_parser(const AVStream *s);
|
||||
|
||||
/**
|
||||
* Returns the pts of the last muxed packet + its duration
|
||||
*
|
||||
* the retuned value is undefined when used with a demuxer.
|
||||
*/
|
||||
int64_t av_stream_get_end_pts(const AVStream *st);
|
||||
|
||||
#define AV_PROGRAM_RUNNING 1
|
||||
|
||||
@@ -1117,7 +1195,11 @@ typedef struct AVFormatContext {
|
||||
AVIOContext *pb;
|
||||
|
||||
/* stream info */
|
||||
int ctx_flags; /**< Format-specific flags, see AVFMTCTX_xx */
|
||||
/**
|
||||
* Flags signalling stream properties. A combination of AVFMTCTX_*.
|
||||
* Set by libavformat.
|
||||
*/
|
||||
int ctx_flags;
|
||||
|
||||
/**
|
||||
* Number of elements in AVFormatContext.streams.
|
||||
@@ -1175,6 +1257,10 @@ typedef struct AVFormatContext {
|
||||
unsigned int packet_size;
|
||||
int max_delay;
|
||||
|
||||
/**
|
||||
* Flags modifying the (de)muxer behaviour. A combination of AVFMT_FLAG_*.
|
||||
* Set by the user before avformat_open_input() / avformat_write_header().
|
||||
*/
|
||||
int flags;
|
||||
#define AVFMT_FLAG_GENPTS 0x0001 ///< Generate missing pts even if it requires parsing future frames.
|
||||
#define AVFMT_FLAG_IGNIDX 0x0002 ///< Ignore index.
|
||||
@@ -1186,6 +1272,13 @@ typedef struct AVFormatContext {
|
||||
#define AVFMT_FLAG_CUSTOM_IO 0x0080 ///< The caller has supplied a custom AVIOContext, don't avio_close() it.
|
||||
#define AVFMT_FLAG_DISCARD_CORRUPT 0x0100 ///< Discard frames marked corrupted
|
||||
#define AVFMT_FLAG_FLUSH_PACKETS 0x0200 ///< Flush the AVIOContext every packet.
|
||||
/**
|
||||
* When muxing, try to avoid writing any random/volatile data to the output.
|
||||
* This includes any random IDs, real-time timestamps/dates, muxer version, etc.
|
||||
*
|
||||
* This flag is mainly intended for testing.
|
||||
*/
|
||||
#define AVFMT_FLAG_BITEXACT 0x0400
|
||||
#define AVFMT_FLAG_MP4A_LATM 0x8000 ///< Enable RTP MP4A-LATM payload
|
||||
#define AVFMT_FLAG_SORT_DTS 0x10000 ///< try to interleave outputted packets by dts (using this flag can slow demuxing down)
|
||||
#define AVFMT_FLAG_PRIV_OPT 0x20000 ///< Enable use of private options by delaying codec open (this could be made default once all code is converted)
|
||||
@@ -1199,10 +1292,9 @@ typedef struct AVFormatContext {
|
||||
unsigned int probesize;
|
||||
|
||||
/**
|
||||
* Maximum duration (in AV_TIME_BASE units) of the data read
|
||||
* from input in avformat_find_stream_info().
|
||||
* Demuxing only, set by the caller before avformat_find_stream_info().
|
||||
* @deprecated deprecated in favor of max_analyze_duration2
|
||||
*/
|
||||
attribute_deprecated
|
||||
int max_analyze_duration;
|
||||
|
||||
const uint8_t *key;
|
||||
@@ -1275,7 +1367,12 @@ typedef struct AVFormatContext {
|
||||
* Start time of the stream in real world time, in microseconds
|
||||
* since the Unix epoch (00:00 1st January 1970). That is, pts=0 in the
|
||||
* stream was captured at this real world time.
|
||||
* Muxing only, set by the caller before avformat_write_header().
|
||||
* - muxing: Set by the caller before avformat_write_header(). If set to
|
||||
* either 0 or AV_NOPTS_VALUE, then the current wall-time will
|
||||
* be used.
|
||||
* - demuxing: Set by libavformat. AV_NOPTS_VALUE if unknown. Note that
|
||||
* the value may become known after some number of frames
|
||||
* have been received.
|
||||
*/
|
||||
int64_t start_time_realtime;
|
||||
|
||||
@@ -1328,6 +1425,12 @@ typedef struct AVFormatContext {
|
||||
*/
|
||||
int64_t max_interleave_delta;
|
||||
|
||||
/**
|
||||
* Allow non-standard and experimental extension
|
||||
* @see AVCodecContext.strict_std_compliance
|
||||
*/
|
||||
int strict_std_compliance;
|
||||
|
||||
/**
|
||||
* Transport stream id.
|
||||
* This will be moved into demuxer private options. Thus no API/ABI compatibility
|
||||
@@ -1397,7 +1500,7 @@ typedef struct AVFormatContext {
|
||||
* - encoding: unused
|
||||
* - decoding: Set by user via AVOptions (NO direct access)
|
||||
*/
|
||||
unsigned int skip_initial_bytes;
|
||||
int64_t skip_initial_bytes;
|
||||
|
||||
/**
|
||||
* Correct single timestamp overflows
|
||||
@@ -1429,6 +1532,13 @@ typedef struct AVFormatContext {
|
||||
*/
|
||||
int probe_score;
|
||||
|
||||
/**
|
||||
* number of bytes to read maximally to identify format.
|
||||
* - encoding: unused
|
||||
* - decoding: set by user through AVOPtions (NO direct access)
|
||||
*/
|
||||
int format_probesize;
|
||||
|
||||
/*****************************************************************
|
||||
* All fields below this line are not part of the public API. They
|
||||
* may not be used outside of libavformat and can be changed and
|
||||
@@ -1541,6 +1651,15 @@ typedef struct AVFormatContext {
|
||||
* Muxing: set by user via AVOptions (NO direct access)
|
||||
*/
|
||||
int64_t output_ts_offset;
|
||||
|
||||
/**
|
||||
* Maximum duration (in AV_TIME_BASE units) of the data read
|
||||
* from input in avformat_find_stream_info().
|
||||
* Demuxing only, set by the caller before avformat_find_stream_info()
|
||||
* via AVOptions (NO direct access).
|
||||
* Can be set to 0 to let avformat choose using a heuristic.
|
||||
*/
|
||||
int64_t max_analyze_duration2;
|
||||
} AVFormatContext;
|
||||
|
||||
int av_format_get_probe_score(const AVFormatContext *s);
|
||||
@@ -1557,6 +1676,12 @@ void av_format_set_opaque(AVFormatContext *s, void *opaque);
|
||||
av_format_control_message av_format_get_control_message_cb(const AVFormatContext *s);
|
||||
void av_format_set_control_message_cb(AVFormatContext *s, av_format_control_message callback);
|
||||
|
||||
/**
|
||||
* This function will cause global side data to be injected in the next packet
|
||||
* of each stream as well as after any subsequent seek.
|
||||
*/
|
||||
void av_format_inject_global_side_data(AVFormatContext *s);
|
||||
|
||||
/**
|
||||
* Returns the method used to set ctx->duration.
|
||||
*
|
||||
@@ -1678,6 +1803,17 @@ const AVClass *avformat_get_class(void);
|
||||
*/
|
||||
AVStream *avformat_new_stream(AVFormatContext *s, const AVCodec *c);
|
||||
|
||||
/**
|
||||
* Get side information from stream.
|
||||
*
|
||||
* @param stream stream
|
||||
* @param type desired side information type
|
||||
* @param size pointer for side information size to store (optional)
|
||||
* @return pointer to data if present or NULL otherwise
|
||||
*/
|
||||
uint8_t *av_stream_get_side_data(AVStream *stream,
|
||||
enum AVPacketSideDataType type, int *size);
|
||||
|
||||
AVProgram *av_new_program(AVFormatContext *s, int id);
|
||||
|
||||
/**
|
||||
@@ -2271,7 +2407,7 @@ void av_hex_dump_log(void *avcl, int level, const uint8_t *buf, int size);
|
||||
* @param dump_payload True if the payload must be displayed, too.
|
||||
* @param st AVStream that the packet belongs to
|
||||
*/
|
||||
void av_pkt_dump2(FILE *f, AVPacket *pkt, int dump_payload, AVStream *st);
|
||||
void av_pkt_dump2(FILE *f, const AVPacket *pkt, int dump_payload, const AVStream *st);
|
||||
|
||||
|
||||
/**
|
||||
@@ -2285,8 +2421,8 @@ void av_pkt_dump2(FILE *f, AVPacket *pkt, int dump_payload, AVStream *st);
|
||||
* @param dump_payload True if the payload must be displayed, too.
|
||||
* @param st AVStream that the packet belongs to
|
||||
*/
|
||||
void av_pkt_dump_log2(void *avcl, int level, AVPacket *pkt, int dump_payload,
|
||||
AVStream *st);
|
||||
void av_pkt_dump_log2(void *avcl, int level, const AVPacket *pkt, int dump_payload,
|
||||
const AVStream *st);
|
||||
|
||||
/**
|
||||
* Get the AVCodecID for the given codec tag tag.
|
||||
@@ -2372,6 +2508,16 @@ void av_url_split(char *proto, int proto_size,
|
||||
const char *url);
|
||||
|
||||
|
||||
/**
|
||||
* Print detailed information about the input or output format, such as
|
||||
* duration, bitrate, streams, container, programs, metadata, side data,
|
||||
* codec and time base.
|
||||
*
|
||||
* @param ic the context to analyze
|
||||
* @param index index of the stream to dump information about
|
||||
* @param url the URL to print, such as source or destination file
|
||||
* @param is_output Select whether the specified context is an input(0) or output(1)
|
||||
*/
|
||||
void av_dump_format(AVFormatContext *ic,
|
||||
int index,
|
||||
const char *url,
|
||||
|
||||
@@ -146,6 +146,13 @@ typedef struct AVIOContext {
|
||||
* This field is internal to libavformat and access from outside is not allowed.
|
||||
*/
|
||||
int writeout_count;
|
||||
|
||||
/**
|
||||
* Original buffer size
|
||||
* used internally after probing and ensure seekback to reset the buffer size
|
||||
* This field is internal to libavformat and access from outside is not allowed.
|
||||
*/
|
||||
int orig_buffer_size;
|
||||
} AVIOContext;
|
||||
|
||||
/* unbuffered I/O */
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
#include "libavutil/version.h"
|
||||
|
||||
#define LIBAVFORMAT_VERSION_MAJOR 55
|
||||
#define LIBAVFORMAT_VERSION_MINOR 33
|
||||
#define LIBAVFORMAT_VERSION_MINOR 48
|
||||
#define LIBAVFORMAT_VERSION_MICRO 100
|
||||
|
||||
#define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \
|
||||
@@ -51,6 +51,15 @@
|
||||
#ifndef FF_API_REFERENCE_DTS
|
||||
#define FF_API_REFERENCE_DTS (LIBAVFORMAT_VERSION_MAJOR < 56)
|
||||
#endif
|
||||
#ifndef FF_API_LAVF_BITEXACT
|
||||
#define FF_API_LAVF_BITEXACT (LIBAVFORMAT_VERSION_MAJOR < 56)
|
||||
#endif
|
||||
#ifndef FF_API_LAVF_FRAC
|
||||
#define FF_API_LAVF_FRAC (LIBAVFORMAT_VERSION_MAJOR < 57)
|
||||
#endif
|
||||
#ifndef FF_API_LAVF_CODEC_TB
|
||||
#define FF_API_LAVF_CODEC_TB (LIBAVFORMAT_VERSION_MAJOR < 57)
|
||||
#endif
|
||||
|
||||
#ifndef FF_API_ALLOC_OUTPUT_CONTEXT
|
||||
#define FF_API_ALLOC_OUTPUT_CONTEXT (LIBAVFORMAT_VERSION_MAJOR < 56)
|
||||
|
||||
Reference in New Issue
Block a user