Flag

public struct Flag : OptionSet

Encoding support

These flags can be passed in AVCodecContext.flags before initialization.

  • Allow decoders to produce frames with data planes that are not aligned to CPU requirements (e.g. due to cropping).

    Declaration

    Swift

    public static let unaligned: AVCodecContext.Flag
  • Use fixed qscale.

    Declaration

    Swift

    public static let qscale: AVCodecContext.Flag
  • 4 MV per MB allowed / advanced prediction for H.263.

    Declaration

    Swift

    public static let p4mv: AVCodecContext.Flag
  • Output even those frames that might be corrupted.

    Declaration

    Swift

    public static let outputCorrupted: AVCodecContext.Flag
  • Use qpel MC.

    Declaration

    Swift

    public static let qpel: AVCodecContext.Flag
  • Use internal 2pass ratecontrol in first pass mode.

    Declaration

    Swift

    public static let pass1: AVCodecContext.Flag
  • Use internal 2pass ratecontrol in second pass mode.

    Declaration

    Swift

    public static let pass2: AVCodecContext.Flag
  • loop filter.

    Declaration

    Swift

    public static let loopFilter: AVCodecContext.Flag
  • Only decode/encode grayscale.

    Declaration

    Swift

    public static let gray: AVCodecContext.Flag
  • error[?] variables will be set during encoding.

    Declaration

    Swift

    public static let psnr: AVCodecContext.Flag
  • Input bitstream might be truncated at a random location instead of only at frame boundaries.

    Declaration

    Swift

    public static let truncated: AVCodecContext.Flag
  • Use interlaced DCT.

    Declaration

    Swift

    public static let interlacedDCT: AVCodecContext.Flag
  • Force low delay.

    Declaration

    Swift

    public static let lowDelay: AVCodecContext.Flag
  • Place global headers in extradata instead of every keyframe.

    Declaration

    Swift

    public static let globalHeader: AVCodecContext.Flag
  • Use only bitexact stuff (except (I)DCT).

    Declaration

    Swift

    public static let bitexact: AVCodecContext.Flag
  • H.263 advanced intra coding / MPEG-4 AC prediction

    Declaration

    Swift

    public static let acPred: AVCodecContext.Flag
  • interlaced motion estimation

    Declaration

    Swift

    public static let interlacedME: AVCodecContext.Flag
  • Undocumented

    Declaration

    Swift

    public static let closedGOP: AVCodecContext.Flag
  • Declaration

    Swift

    public let rawValue: UInt32
  • Declaration

    Swift

    public init(rawValue: UInt32)
  • Declaration

    Swift

    public var description: String { get }