Platforms to show: All Mac Windows Linux Cross-Platform

Back to CVPixelBufferMBS class.

CVPixelBufferMBS.kCVPixelBufferBytesPerRowAlignmentKey as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the attribute keys.

Indicates the number of bytes per row in the pixel buffer (type Number).

CVPixelBufferMBS.kCVPixelBufferCGBitmapContextCompatibilityKey as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the attribute keys.

Indicates whether the pixel buffer is compatible with Core Graphics bitmap contexts (type Boolean).

Some examples using this method:

CVPixelBufferMBS.kCVPixelBufferCGImageCompatibilityKey as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the attribute keys.

Indicates whether the pixel buffer is compatible with CGImage types (type Boolean).

Some examples using this method:

CVPixelBufferMBS.kCVPixelBufferExtendedPixelsBottomKey as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the attribute keys.

The number of pixels padding the bottom of the image (type Number).

CVPixelBufferMBS.kCVPixelBufferExtendedPixelsLeftKey as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the attribute keys.

The number of pixels padding the left of the image (type Number).

CVPixelBufferMBS.kCVPixelBufferExtendedPixelsRightKey as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the attribute keys.

The number of pixels padding the right of the image (type Number).

CVPixelBufferMBS.kCVPixelBufferExtendedPixelsTopKey as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the attribute keys.

The number of pixels padding the top of the image (type Number).

CVPixelBufferMBS.kCVPixelBufferHeightKey as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the attribute keys.

The height of the pixel buffer (type Number).

Some examples using this method:

CVPixelBufferMBS.kCVPixelBufferIOSurfaceCoreAnimationCompatibilityKey as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the attribute keys.

A boolean value

CVPixelBufferMBS.kCVPixelBufferIOSurfaceOpenGLFBOCompatibilityKey as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the attribute keys.

Ensures that the CVPixelBuffer's IOSurfaceRef can be displayed in an CoreAnimation CALayer.

CVPixelBufferMBS.kCVPixelBufferIOSurfaceOpenGLTextureCompatibilityKey as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the attribute keys.

Ensures that CGLTexImageIOSurface2D() will succeed in creating a valid texture object from the CVPixelBuffer's IOSurface AND that the resulting texture may be used as a color buffer attachment to a OpenGL frame buffer object.

CVPixelBufferMBS.kCVPixelBufferIOSurfacePropertiesKey as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the attribute keys.

Indicates optional properties in the IOSurface framework (type Dictionary). An empty dictionary indicates default values.
Presence of this key requests allocation via the IOSurface framework.

CVPixelBufferMBS.kCVPixelBufferMemoryAllocatorKey as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the attribute keys.

The allocator used with this buffer (type CFAllocatorRef).

CVPixelBufferMBS.kCVPixelBufferOpenGLCompatibilityKey as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the attribute keys.

Indicates whether the pixel buffer is compatible with Core Graphics bitmap contexts (type Boolean).

CVPixelBufferMBS.kCVPixelBufferPixelFormatTypeKey as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the attribute keys.

The pixel format for this buffer (type Number, or type Array containing an array of Number types (actually type OSType)). For a listing of common pixel formats, see the QuickTime Ice Floe Dispatch 20.

Some examples using this method:

CVPixelBufferMBS.kCVPixelBufferPlaneAlignmentKey as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the attribute keys.

Specifies the alignment of the planes within the buffer. Planes will start on a byte number which is a multiple of this value. (type Number).

CVPixelBufferMBS.kCVPixelBufferWidthKey as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the attribute keys.

The width of the pixel buffer (type Number).

Some examples using this method:

CVPixelBufferMBS.PixelBufferWithCGImage(CGImage as Variant) as CVPixelBufferMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates a pixel buffer for a CGImage by making a copy of the picture.

Image parameter must be a CGImageMBS object.
For Carbon and Cocoa.
Returns nil on any error.

CVPixelBufferMBS.PixelBufferWithHandle(Handle as Integer) as CVPixelBufferMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 19.4 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates pixel buffer object with handle.

Handle must be a CVPixelBufferRef, which we retain.

CVPixelBufferMBS.PixelBufferWithPicture(pic as picture) as CVPixelBufferMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates a pixel buffer for a picture by making a copy of the picture.
Example
dim p as new Picture(300, 200)
dim b as CVPixelBufferMBS = CVPixelBufferMBS.PixelBufferWithPicture(p)
MsgBox str(b.Width)+" x "+str(b.Height)

For Carbon and Cocoa.
Returns nil on any error.

The items on this page are in the following plugins: MBS AVFoundation Plugin.


The biggest plugin in space...