-
Undocumented
Declaration
Swift
public static let none: AVPixelFormat
-
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
Declaration
Swift
public static let YUV420P: AVPixelFormat
-
packed YUV 4:2:2, 16bpp, Y0 Cb Y1 Cr
Declaration
Swift
public static let YUYV422: AVPixelFormat
-
packed RGB 8:8:8, 24bpp, RGBRGB…
Declaration
Swift
public static let RGB24: AVPixelFormat
-
packed RGB 8:8:8, 24bpp, BGRBGR…
Declaration
Swift
public static let BGR24: AVPixelFormat
-
planar YUV 4:2:2, 16bpp, (1 Cr & Cb sample per 2x1 Y samples)
Declaration
Swift
public static let YUV422P: AVPixelFormat
-
planar YUV 4:4:4, 24bpp, (1 Cr & Cb sample per 1x1 Y samples)
Declaration
Swift
public static let YUV444P: AVPixelFormat
-
planar YUV 4:1:0, 9bpp, (1 Cr & Cb sample per 4x4 Y samples)
Declaration
Swift
public static let YUV410P: AVPixelFormat
-
planar YUV 4:1:1, 12bpp, (1 Cr & Cb sample per 4x1 Y samples)
Declaration
Swift
public static let YUV411P: AVPixelFormat
-
Y , 8bpp
Declaration
Swift
public static let GRAY8: AVPixelFormat
-
Y , 1bpp, 0 is white, 1 is black, in each byte pixels are ordered from the msb to the lsb
Declaration
Swift
public static let MONOWHITE: AVPixelFormat
-
Y , 1bpp, 0 is black, 1 is white, in each byte pixels are ordered from the msb to the lsb
Declaration
Swift
public static let MONOBLACK: AVPixelFormat
-
8 bits with AV_PIX_FMT_RGB32 palette
Declaration
Swift
public static let PAL8: AVPixelFormat
-
packed YUV 4:2:2, 16bpp, Cb Y0 Cr Y1
Declaration
Swift
public static let UYVY422: AVPixelFormat
-
packed YUV 4:1:1, 12bpp, Cb Y0 Y1 Cr Y2 Y3
Declaration
Swift
public static let UYYVYY411: AVPixelFormat
-
packed RGB 3:3:2, 8bpp, (msb)2B 3G 3R(lsb)
Declaration
Swift
public static let BGR8: AVPixelFormat
-
packed RGB 1:2:1 bitstream, 4bpp, (msb)1B 2G 1R(lsb), a byte contains two pixels, the first pixel in the byte is the one composed by the 4 msb bits
Declaration
Swift
public static let BGR4: AVPixelFormat
-
packed RGB 1:2:1, 8bpp, (msb)1B 2G 1R(lsb)
Declaration
Swift
public static let BGR4_BYTE: AVPixelFormat
-
packed RGB 3:3:2, 8bpp, (msb)2R 3G 3B(lsb)
Declaration
Swift
public static let RGB8: AVPixelFormat
-
packed RGB 1:2:1 bitstream, 4bpp, (msb)1R 2G 1B(lsb), a byte contains two pixels, the first pixel in the byte is the one composed by the 4 msb bits
Declaration
Swift
public static let RGB4: AVPixelFormat
-
packed RGB 1:2:1, 8bpp, (msb)1R 2G 1B(lsb)
Declaration
Swift
public static let RGB4_BYTE: AVPixelFormat
-
planar YUV 4:2:0, 12bpp, 1 plane for Y and 1 plane for the UV components, which are interleaved (first byte U and the following byte V)
Declaration
Swift
public static let NV12: AVPixelFormat
-
as above, but U and V bytes are swapped
Declaration
Swift
public static let NV21: AVPixelFormat
-
packed ARGB 8:8:8:8, 32bpp, ARGBARGB…
Declaration
Swift
public static let ARGB: AVPixelFormat
-
packed RGBA 8:8:8:8, 32bpp, RGBARGBA…
Declaration
Swift
public static let RGBA: AVPixelFormat
-
packed ABGR 8:8:8:8, 32bpp, ABGRABGR…
Declaration
Swift
public static let ABGR: AVPixelFormat
-
packed BGRA 8:8:8:8, 32bpp, BGRABGRA…
Declaration
Swift
public static let BGRA: AVPixelFormat
-
Y , 16bpp, big-endian
Declaration
Swift
public static let GRAY16BE: AVPixelFormat
-
Y , 16bpp, little-endian
Declaration
Swift
public static let GRAY16LE: AVPixelFormat
-
planar YUV 4:4:0 (1 Cr & Cb sample per 1x2 Y samples)
Declaration
Swift
public static let YUV440P: AVPixelFormat
-
planar YUV 4:2:0, 20bpp, (1 Cr & Cb sample per 2x2 Y & A samples)
Declaration
Swift
public static let YUVA420P: AVPixelFormat
-
packed RGB 16:16:16, 48bpp, 16R, 16G, 16B, the 2-byte value for each R/G/B component is stored as big-endian
Declaration
Swift
public static let RGB48BE: AVPixelFormat
-
packed RGB 16:16:16, 48bpp, 16R, 16G, 16B, the 2-byte value for each R/G/B component is stored as little-endian
Declaration
Swift
public static let RGB48LE: AVPixelFormat
-
packed RGB 5:6:5, 16bpp, (msb) 5R 6G 5B(lsb), big-endian
Declaration
Swift
public static let RGB565BE: AVPixelFormat
-
packed RGB 5:6:5, 16bpp, (msb) 5R 6G 5B(lsb), little-endian
Declaration
Swift
public static let RGB565LE: AVPixelFormat
-
packed RGB 5:5:5, 16bpp, (msb)1X 5R 5G 5B(lsb), big-endian , X=unused/undefined
Declaration
Swift
public static let RGB555BE: AVPixelFormat
-
packed RGB 5:5:5, 16bpp, (msb)1X 5R 5G 5B(lsb), little-endian, X=unused/undefined
Declaration
Swift
public static let RGB555LE: AVPixelFormat
-
packed BGR 5:6:5, 16bpp, (msb) 5B 6G 5R(lsb), big-endian
Declaration
Swift
public static let BGR565BE: AVPixelFormat
-
packed BGR 5:6:5, 16bpp, (msb) 5B 6G 5R(lsb), little-endian
Declaration
Swift
public static let BGR565LE: AVPixelFormat
-
packed BGR 5:5:5, 16bpp, (msb)1X 5B 5G 5R(lsb), big-endian , X=unused/undefined
Declaration
Swift
public static let BGR555BE: AVPixelFormat
-
packed BGR 5:5:5, 16bpp, (msb)1X 5B 5G 5R(lsb), little-endian, X=unused/undefined
Declaration
Swift
public static let BGR555LE: AVPixelFormat
-
planar YUV 4:2:0, 24bpp, (1 Cr & Cb sample per 2x2 Y samples), little-endian
Declaration
Swift
public static let YUV420P16LE: AVPixelFormat
-
< planar YUV 4:2:0, 24bpp, (1 Cr & Cb sample per 2x2 Y samples), big-endian
Declaration
Swift
public static let YUV420P16BE: AVPixelFormat
-
planar YUV 4:2:2, 32bpp, (1 Cr & Cb sample per 2x1 Y samples), little-endian
Declaration
Swift
public static let YUV422P16LE: AVPixelFormat
-
planar YUV 4:2:2, 32bpp, (1 Cr & Cb sample per 2x1 Y samples), big-endian
Declaration
Swift
public static let YUV422P16BE: AVPixelFormat
-
planar YUV 4:4:4, 48bpp, (1 Cr & Cb sample per 1x1 Y samples), little-endian
Declaration
Swift
public static let YUV444P16LE: AVPixelFormat
-
planar YUV 4:4:4, 48bpp, (1 Cr & Cb sample per 1x1 Y samples), big-endian
Declaration
Swift
public static let YUV444P16BE: AVPixelFormat
-
HW decoding through DXVA2, Picture.data[3] contains a LPDIRECT3DSURFACE9 pointer
Declaration
Swift
public static let DXVA2_VLD: AVPixelFormat
-
packed RGB 4:4:4, 16bpp, (msb)4X 4R 4G 4B(lsb), little-endian, X=unused/undefined
Declaration
Swift
public static let RGB444LE: AVPixelFormat
-
packed RGB 4:4:4, 16bpp, (msb)4X 4R 4G 4B(lsb), big-endian, X=unused/undefined
Declaration
Swift
public static let RGB444BE: AVPixelFormat
-
packed BGR 4:4:4, 16bpp, (msb)4X 4B 4G 4R(lsb), little-endian, X=unused/undefined
Declaration
Swift
public static let BGR444LE: AVPixelFormat
-
packed BGR 4:4:4, 16bpp, (msb)4X 4B 4G 4R(lsb), big-endian, X=unused/undefined
Declaration
Swift
public static let BGR444BE: AVPixelFormat
-
8 bits gray, 8 bits alpha
Declaration
Swift
public static let YA8: AVPixelFormat
-
alias for AV_PIX_FMT_YA8
Declaration
Swift
public static let Y400A: AVPixelFormat
-
alias for AV_PIX_FMT_YA8
Declaration
Swift
public static let GRAY8A: AVPixelFormat
-
packed RGB 16:16:16, 48bpp, 16B, 16G, 16R, the 2-byte value for each R/G/B component is stored as big-endian
Declaration
Swift
public static let BGR48BE: AVPixelFormat
-
packed RGB 16:16:16, 48bpp, 16B, 16G, 16R, the 2-byte value for each R/G/B component is stored as little-endian
Declaration
Swift
public static let BGR48LE: AVPixelFormat
-
hardware decoding through VideoToolbox
Declaration
Swift
public static let videoToolbox: AVPixelFormat
-
number of pixel formats, DO NOT USE THIS if you want to link with shared
libav*
because the number of formats might differ between versionsDeclaration
Swift
public static let nb: AVPixelFormat
-
Return the pixel format corresponding to name.
If there is no pixel format with name name, then looks for a pixel format with the name corresponding to the native endian format of name. For example in a little-endian system, first looks for
gray16
, then forgray16le
.Finally if no pixel format has been found, returns
nil
.Declaration
Swift
public init?(name: String)
-
Undocumented
Declaration
Swift
public var name: String { get }
-
The number of planes in the pixel format.
Declaration
Swift
public var planeCount: Int { get }
-
Declaration
Swift
public var description: String { get }