Flag
public struct Flag : OptionSet
Flags used to modify the (de)muxer behaviour.
-
Generate missing pts even if it requires parsing future frames.
Declaration
Swift
public static let genPTS: AVFormatContext.Flag -
Ignore index.
Declaration
Swift
public static let ignIdx: AVFormatContext.Flag -
Do not block when reading packets from input.
Declaration
Swift
public static let nonBlock: AVFormatContext.Flag -
Ignore DTS on frames that contain both DTS & PTS.
Declaration
Swift
public static let ignDTS: AVFormatContext.Flag -
Do not infer any values from other values, just return what is stored in the container.
Declaration
Swift
public static let noFillIn: AVFormatContext.Flag -
Do not use AVParsers, you also must set
noFillInas the fillin code works on frames and no parsing -> no frames. Also seeking to frames can not work if parsing to find frame boundaries has been disabled.Declaration
Swift
public static let noParse: AVFormatContext.Flag -
Do not buffer frames when possible.
Declaration
Swift
public static let noBuffer: AVFormatContext.Flag -
The caller has supplied a custom AVIOContext, don’t avio_close() it.
Declaration
Swift
public static let customIO: AVFormatContext.Flag -
Discard frames marked corrupted.
Declaration
Swift
public static let discardCorrupt: AVFormatContext.Flag -
Flush the
AVIOContextevery packet.Declaration
Swift
public static let flushPackets: AVFormatContext.Flag -
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.
Declaration
Swift
public static let bitexact: AVFormatContext.Flag -
Try to interleave outputted packets by dts (using this flag can slow demuxing down).
Declaration
Swift
public static let sortDTS: AVFormatContext.Flag -
Enable use of private Flag by delaying codec open (this could be made default once all code is converted).
Declaration
Swift
public static let privOpt: AVFormatContext.Flag -
Enable fast, but inaccurate seeks for some formats.
Declaration
Swift
public static let fastSeek: AVFormatContext.Flag -
Stop muxing when the shortest stream stops.
Declaration
Swift
public static let shortest: AVFormatContext.Flag -
Add bitstream filters as requested by the muxer.
Declaration
Swift
public static let autoBSF: AVFormatContext.Flag -
Declaration
Swift
public let rawValue: Int32 -
Declaration
Swift
public init(rawValue: Int32)
-
Declaration
Swift
public var description: String { get }
View on GitHub
Install in Dash
Flag Structure Reference