AVSampleFormat

public typealias AVSampleFormat = CFFmpeg.AVSampleFormat

Undocumented

  • Undocumented

    Declaration

    Swift

    public static let none: AVSampleFormat
  • u8

    unsigned 8 bits

    Declaration

    Swift

    public static let u8: AVSampleFormat
  • s16

    signed 16 bits

    Declaration

    Swift

    public static let s16: AVSampleFormat
  • s32

    signed 32 bits

    Declaration

    Swift

    public static let s32: AVSampleFormat
  • flt

    float

    Declaration

    Swift

    public static let flt: AVSampleFormat
  • dbl

    double

    Declaration

    Swift

    public static let dbl: AVSampleFormat
  • u8p

    unsigned 8 bits, planar

    Declaration

    Swift

    public static let u8p: AVSampleFormat
  • signed 16 bits, planar

    Declaration

    Swift

    public static let s16p: AVSampleFormat
  • signed 32 bits, planar

    Declaration

    Swift

    public static let s32p: AVSampleFormat
  • float, planar

    Declaration

    Swift

    public static let fltp: AVSampleFormat
  • double, planar

    Declaration

    Swift

    public static let dblp: AVSampleFormat
  • s64

    signed 64 bits

    Declaration

    Swift

    public static let s64: AVSampleFormat
  • signed 64 bits, planar

    Declaration

    Swift

    public static let s64p: AVSampleFormat
  • nb

    Number of sample formats. DO NOT USE if linking dynamically.

    Declaration

    Swift

    public static let nb: AVSampleFormat
  • Return a sample format corresponding to name, or nil if the sample format does not exist.

    Declaration

    Swift

    public init?(name: String)

    Parameters

    name

    The name of the sample format.

  • The name of the sample format, or nil if sample format is not recognized.

    Declaration

    Swift

    public var name: String? { get }
  • The number of bytes per sample or zero if unknown for the given sample format.

    Declaration

    Swift

    public var bytesPerSample: Int { get }
  • A Boolean value indicating whether the sample format is planar.

    Declaration

    Swift

    public var isPlanar: Bool { get }
  • A Boolean value indicating whether the sample format is packed.

    Declaration

    Swift

    public var isPacked: Bool { get }
  • Return the planar alternative form of the given sample format, or nil if the planar sample format does not exist.

    If the passed sample format is already in planar format, the format returned is the same as the input.

    Declaration

    Swift

    public func toPlanar() -> AVSampleFormat?
  • Return the packed alternative form of the given sample format, or nil if the packed sample format does not exist.

    If the passed sample format is already in packed format, the format returned is the same as the input.

    Declaration

    Swift

    public func toPacked() -> AVSampleFormat?
  • Declaration

    Swift

    public var description: String { get }