AVOptionAccessor
public protocol AVOptionAccessor
Undocumented
-
Undocumented
Declaration
Swift
func withUnsafeObjectPointer<T>(_ body: (UnsafeMutableRawPointer) throws -> T) rethrows -> T
-
set(_:forKey:searchFlags:)
Extension methodSet the field of obj with the given name to value.
av_opt_set
Throws
AVErrorDeclaration
Swift
public func set( _ value: String, forKey key: String, searchFlags: AVOptionSearchFlag = .children ) throws
Parameters
value
The value to set.
key
The name of the field to set.
searchFlags
The flags passed to
av_opt_find2
. -
set(_:forKey:searchFlags:)
Extension methodav_opt_set_int
Declaration
Swift
public func set<T: FixedWidthInteger>( _ value: T, forKey key: String, searchFlags: AVOptionSearchFlag = .children ) throws
-
set(_:forKey:searchFlags:)
Extension methodav_opt_set_double
Declaration
Swift
public func set( _ value: Double, forKey key: String, searchFlags: AVOptionSearchFlag = .children ) throws
-
set(_:forKey:searchFlags:)
Extension methodav_opt_set_q
Declaration
Swift
public func set( _ value: AVRational, forKey key: String, searchFlags: AVOptionSearchFlag = .children ) throws
-
set(_:forKey:searchFlags:)
Extension methodav_opt_set_bin
Declaration
Swift
public func set( _ value: UnsafeBufferPointer<UInt8>, forKey key: String, searchFlags: AVOptionSearchFlag = .children ) throws
-
set(_:forKey:searchFlags:)
Extension methodav_opt_set_image_size
Declaration
Swift
public func set( _ size: (width: Int, height: Int), forKey key: String, searchFlags: AVOptionSearchFlag = .children ) throws
-
set(_:forKey:searchFlags:)
Extension methodav_opt_set_pixel_fmt
Declaration
Swift
public func set( _ value: AVPixelFormat, forKey key: String, searchFlags: AVOptionSearchFlag = .children ) throws
-
set(_:forKey:searchFlags:)
Extension methodav_opt_set_sample_fmt
Declaration
Swift
public func set( _ value: AVSampleFormat, forKey key: String, searchFlags: AVOptionSearchFlag = .children ) throws
-
setVideoRate(_:forKey:searchFlags:)
Extension methodav_opt_set_video_rate
Declaration
Swift
public func setVideoRate( _ value: AVRational, forKey key: String, searchFlags: AVOptionSearchFlag = .children ) throws
-
set(_:forKey:searchFlags:)
Extension methodav_opt_set_channel_layout
Declaration
Swift
public func set( _ value: AVChannelLayout, forKey key: String, searchFlags: AVOptionSearchFlag = .children ) throws
-
set(_:forKey:searchFlags:)
Extension methodSet a binary option to an integer list.
av_opt_set_int_list
Declaration
Swift
public func set<T: FixedWidthInteger>( _ value: [T], forKey key: String, searchFlags: AVOptionSearchFlag = .children ) throws
-
string(forKey:searchFlags:)
Extension methodGet a value of the option with the given name from an object.
av_opt_get
Throws
AVErrorDeclaration
Swift
public func string( forKey key: String, searchFlags: AVOptionSearchFlag = .children ) throws -> String
Parameters
key
The name of the option to get.
searchFlags
The flags passed to av_opt_find2.
Return Value
value of the option
-
integer(forKey:searchFlags:)
Extension methodav_opt_get_int
Declaration
Swift
public func integer<T: FixedWidthInteger>( forKey key: String, searchFlags: AVOptionSearchFlag = .children ) throws -> T
-
double(forKey:searchFlags:)
Extension methodav_opt_get_double
Declaration
Swift
public func double( forKey key: String, searchFlags: AVOptionSearchFlag = .children ) throws -> Double
-
rational(forKey:searchFlags:)
Extension methodav_opt_get_q
Declaration
Swift
public func rational( forKey key: String, searchFlags: AVOptionSearchFlag = .children ) throws -> AVRational
-
size(forKey:searchFlags:)
Extension methodav_opt_get_image_size
Declaration
Swift
public func size( forKey key: String, searchFlags: AVOptionSearchFlag = .children ) throws -> (Int, Int)
-
pixelFormat(forKey:searchFlags:)
Extension methodav_opt_get_pixel_fmt
Declaration
Swift
public func pixelFormat( forKey key: String, searchFlags: AVOptionSearchFlag = .children ) throws -> AVPixelFormat
-
sampleFormat(forKey:searchFlags:)
Extension methodav_opt_get_sample_fmt
Declaration
Swift
public func sampleFormat( forKey key: String, searchFlags: AVOptionSearchFlag = .children ) throws -> AVSampleFormat
-
videoRate(forKey:searchFlags:)
Extension methodav_opt_get_video_rate
Declaration
Swift
public func videoRate( forKey key: String, searchFlags: AVOptionSearchFlag = .children ) throws -> AVRational
-
channelLayout(forKey:searchFlags:)
Extension methodav_opt_get_channel_layout
Declaration
Swift
public func channelLayout( forKey key: String, searchFlags: AVOptionSearchFlag = .children ) throws -> Int64
-
supportedOptions
Extension methodReturns an array of the options supported by the type.
Declaration
Swift
public var supportedOptions: [AVOption] { get }