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_setThrows
AVErrorDeclaration
Swift
public func set( _ value: String, forKey key: String, searchFlags: AVOptionSearchFlag = .children ) throwsParameters
valueThe value to set.
keyThe name of the field to set.
searchFlagsThe flags passed to
av_opt_find2. -
set(_:forKey:searchFlags:)Extension methodav_opt_set_intDeclaration
Swift
public func set<T: FixedWidthInteger>( _ value: T, forKey key: String, searchFlags: AVOptionSearchFlag = .children ) throws -
set(_:forKey:searchFlags:)Extension methodav_opt_set_doubleDeclaration
Swift
public func set( _ value: Double, forKey key: String, searchFlags: AVOptionSearchFlag = .children ) throws -
set(_:forKey:searchFlags:)Extension methodav_opt_set_qDeclaration
Swift
public func set( _ value: AVRational, forKey key: String, searchFlags: AVOptionSearchFlag = .children ) throws -
set(_:forKey:searchFlags:)Extension methodav_opt_set_binDeclaration
Swift
public func set( _ value: UnsafeBufferPointer<UInt8>, forKey key: String, searchFlags: AVOptionSearchFlag = .children ) throws -
set(_:forKey:searchFlags:)Extension methodav_opt_set_image_sizeDeclaration
Swift
public func set( _ size: (width: Int, height: Int), forKey key: String, searchFlags: AVOptionSearchFlag = .children ) throws -
set(_:forKey:searchFlags:)Extension methodav_opt_set_pixel_fmtDeclaration
Swift
public func set( _ value: AVPixelFormat, forKey key: String, searchFlags: AVOptionSearchFlag = .children ) throws -
set(_:forKey:searchFlags:)Extension methodav_opt_set_sample_fmtDeclaration
Swift
public func set( _ value: AVSampleFormat, forKey key: String, searchFlags: AVOptionSearchFlag = .children ) throws -
setVideoRate(_:forKey:searchFlags:)Extension methodav_opt_set_video_rateDeclaration
Swift
public func setVideoRate( _ value: AVRational, forKey key: String, searchFlags: AVOptionSearchFlag = .children ) throws -
set(_:forKey:searchFlags:)Extension methodav_opt_set_channel_layoutDeclaration
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_listDeclaration
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_getThrows
AVErrorDeclaration
Swift
public func string( forKey key: String, searchFlags: AVOptionSearchFlag = .children ) throws -> StringParameters
keyThe name of the option to get.
searchFlagsThe flags passed to av_opt_find2.
Return Value
value of the option
-
integer(forKey:searchFlags:)Extension methodav_opt_get_intDeclaration
Swift
public func integer<T: FixedWidthInteger>( forKey key: String, searchFlags: AVOptionSearchFlag = .children ) throws -> T -
double(forKey:searchFlags:)Extension methodav_opt_get_doubleDeclaration
Swift
public func double( forKey key: String, searchFlags: AVOptionSearchFlag = .children ) throws -> Double -
rational(forKey:searchFlags:)Extension methodav_opt_get_qDeclaration
Swift
public func rational( forKey key: String, searchFlags: AVOptionSearchFlag = .children ) throws -> AVRational -
size(forKey:searchFlags:)Extension methodav_opt_get_image_sizeDeclaration
Swift
public func size( forKey key: String, searchFlags: AVOptionSearchFlag = .children ) throws -> (Int, Int) -
pixelFormat(forKey:searchFlags:)Extension methodav_opt_get_pixel_fmtDeclaration
Swift
public func pixelFormat( forKey key: String, searchFlags: AVOptionSearchFlag = .children ) throws -> AVPixelFormat -
sampleFormat(forKey:searchFlags:)Extension methodav_opt_get_sample_fmtDeclaration
Swift
public func sampleFormat( forKey key: String, searchFlags: AVOptionSearchFlag = .children ) throws -> AVSampleFormat -
videoRate(forKey:searchFlags:)Extension methodav_opt_get_video_rateDeclaration
Swift
public func videoRate( forKey key: String, searchFlags: AVOptionSearchFlag = .children ) throws -> AVRational -
channelLayout(forKey:searchFlags:)Extension methodav_opt_get_channel_layoutDeclaration
Swift
public func channelLayout( forKey key: String, searchFlags: AVOptionSearchFlag = .children ) throws -> Int64 -
supportedOptionsExtension methodReturns an array of the options supported by the type.
Declaration
Swift
public var supportedOptions: [AVOption] { get }
View on GitHub
Install in Dash
AVOptionAccessor Protocol Reference