Method

public struct Method : OptionSet

Flags used by methods.

  • The codec supports this format via the AVCodecContext.hwDeviceContext interface.

    When selecting this format, AVCodecContext.hwDeviceContext should have been set to a device of the specified type before calling AVCodecContext.openCodec(options:).

    Declaration

    Swift

    public static let hwDeviceContext: AVCodecHWConfig.Method
  • The codec supports this format via the AVCodecContext.hwFramesContext interface.

    When selecting this format for a decoder, AVCodecContext.hwFramesContext should be set to a suitable frames context inside the AVCodecContext.getFormat callback. The frames context must have been created on a device of the specified type.

    Declaration

    Swift

    public static let hwFramesContext: AVCodecHWConfig.Method
  • The codec supports this format by some internal method.

    This format can be selected without any additional configuration - no device or frames context is required.

    Declaration

    Swift

    public static let `internal`: AVCodecHWConfig.Method
  • The codec supports this format by some ad-hoc method.

    Additional settings and/or function calls are required. See the codec-specific documentation for details. (Methods requiring this sort of configuration are deprecated and others should be used in preference.)

    Declaration

    Swift

    public static let adHoc: AVCodecHWConfig.Method
  • Declaration

    Swift

    public let rawValue: Int32
  • Declaration

    Swift

    public init(rawValue: Int32)
  • Declaration

    Swift

    public var description: String { get }