Platforms to show: All Mac Windows Linux Cross-Platform
CVPixelBufferMBS class
Super class: CVImageBufferMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Applications generating frames, compressing or decompressing video, or using Core Image can all make use of Core Video pixel buffers.
Subclass of the CVImageBufferMBS class.
- 8 properties
- property BaseAddress as Ptr
- property BytesPerRow as Integer
- property DataSize as Integer
- property Height as Integer
- property IsPlanar as Boolean
- property PixelFormatType as String
- property PlaneCount as Integer
- property Width as Integer
- 17 methods
- method BaseAddressOfPlane(planeIndex as Integer) as Ptr
- method BytesPerRowOfPlane(planeIndex as Integer) as Integer
- method CIImage as Variant
- method Constructor(pic as picture)
- method Constructor(Width as Integer, Height as Integer, PixelFormat as Integer, data as MemoryBlock, bytesPerRow as Integer, pixelBufferAttributes as Dictionary)
- method Constructor(Width as Integer, Height as Integer, PixelFormat as Integer, pixelBufferAttributes as Dictionary)
- method Constructor(Width as Integer, Height as Integer, PixelFormat as String, data as MemoryBlock, bytesPerRow as Integer, pixelBufferAttributes as Dictionary)
- method Constructor(Width as Integer, Height as Integer, PixelFormat as String, pixelBufferAttributes as Dictionary)
- method FillExtendedPixels
- method Flush
- method GetExtendedPixels(byref extraColumnsOnLeft as Integer, byref extraColumnsOnRight as Integer, byref extraRowsOnTop as Integer, byref extraRowsOnBottom as Integer)
- method HeightOfPlane(planeIndex as Integer) as Integer
- method LockBaseAddress(flags as Integer = 0)
- method PixelData as MemoryBlock
- method SetPixelData(data as MemoryBlock) as Boolean
- method UnlockBaseAddress(flags as Integer = 0)
- method WidthOfPlane(planeIndex as Integer) as Integer
- 20 shared methods
- shared method kCVPixelBufferBytesPerRowAlignmentKey as string
- shared method kCVPixelBufferCGBitmapContextCompatibilityKey as string
- shared method kCVPixelBufferCGImageCompatibilityKey as string
- shared method kCVPixelBufferExtendedPixelsBottomKey as string
- shared method kCVPixelBufferExtendedPixelsLeftKey as string
- shared method kCVPixelBufferExtendedPixelsRightKey as string
- shared method kCVPixelBufferExtendedPixelsTopKey as string
- shared method kCVPixelBufferHeightKey as string
- shared method kCVPixelBufferIOSurfaceCoreAnimationCompatibilityKey as string
- shared method kCVPixelBufferIOSurfaceOpenGLFBOCompatibilityKey as string
- shared method kCVPixelBufferIOSurfaceOpenGLTextureCompatibilityKey as string
- shared method kCVPixelBufferIOSurfacePropertiesKey as string
- shared method kCVPixelBufferMemoryAllocatorKey as string
- shared method kCVPixelBufferOpenGLCompatibilityKey as string
- shared method kCVPixelBufferPixelFormatTypeKey as string
- shared method kCVPixelBufferPlaneAlignmentKey as string
- shared method kCVPixelBufferWidthKey as string
- shared method PixelBufferWithCGImage(CGImage as Variant) as CVPixelBufferMBS
- shared method PixelBufferWithHandle(Handle as Integer) as CVPixelBufferMBS
- shared method PixelBufferWithPicture(pic as picture) as CVPixelBufferMBS
- 65 constants
Super class CVImageBufferMBS
- 7 properties
- 2 methods
- method Constructor Private
- method JPEG(CompressionFactor as Double = 0.8) as Memoryblock
This class has no sub classes.
Some methods using this class:
- AVAssetWriterInputPixelBufferAdaptorMBS.appendPixelBuffer(pixelBuffer as CVPixelBufferMBS, presentationTime as CMTimeMBS) as boolean
- AVAsynchronousVideoCompositionRequestMBS.finishWithComposedVideoFrame(composedVideoFrame as CVPixelBufferMBS)
- AVAsynchronousVideoCompositionRequestMBS.sourceFrameByTrackID(trackID as Integer) as CVPixelBufferMBS
- AVPlayerItemVideoOutputMBS.copyPixelBufferForItemTime(time as CMTimeMBS) as CVPixelBufferMBS
- AVPlayerItemVideoOutputMBS.copyPixelBufferForItemTime(time as CMTimeMBS, byref outItemTimeForDisplay as CMTimeMBS) as CVPixelBufferMBS
- AVVideoCompositionRenderContextMBS.newPixelBuffer as CVPixelBufferMBS
Some examples using this class:
- /AVFoundation/CVPixelBuffer test
- /AVFoundation/Extract video frames
- /AVFoundation/Live Barcode Detection
- /AVFoundation/Live Barcode Detection iOS/Live Barcode Detection iOS
- /AVFoundation/Live Barcode Detection with Vision/Live Barcode Detection with Vision
- /AVFoundation/Live picture processing
- /AVFoundation/Make Video From Images
- /AVFoundation/Make Video From Images with transparency
Blog Entries
- MBS Xojo Plugins, version 22.3pr4
- MBS Xojo Plugins, version 21.5pr3
- MBS Xojo Plugins, version 21.2pr1
- MonkeyBread Software Releases the MBS Xojo Plugins in version 19.4
- MBS Xojo Plugins, version 19.4pr4
- MBS Xojo Plugins, version 19.4pr2
- MBS Xojo / Real Studio Plugins, version 14.5pr4
Xojo Developer Magazine
Release notes
- Version 22.3
- Implemented Constructor taking picture for CVPixelBufferMBS to work on iOS.
- Version 21.5
- Fixed problem in VNTargetedImageRequestMBS with passing CVImageBufferMBS as CVPixelBufferMBS.
- Version 21.2
- Changed functions returning CVImageBufferMBS to return CVPixelBufferMBS if the image buffer contains pixels.
- Version 19.4
- Added CIImage function to CVPixelBufferMBS class.
- Added more methods to CVPixelBufferMBS to create them with data, copy data and use more pixel types.
The items on this page are in the following plugins: MBS AVFoundation Plugin.
CVImageBufferMBS - CWChannelMBS