Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CGSize frameSize = CGSizeMake(180,240);
- CVPixelBufferRef pixelBuffer = NULL;
- NSDictionary *pixelAttributes = @{(id)kCVPixelBufferIOSurfaceOpenGLESFBOCompatibilityKey : (id)kCFBooleanTrue,
- (id)kCVPixelBufferIOSurfaceCoreAnimationCompatibilityKey : (id)kCFBooleanTrue,
- (id)kCVPixelBufferIOSurfaceOpenGLESTextureCompatibilityKey : (id)kCFBooleanTrue,
- (id)kCVPixelBufferOpenGLESCompatibilityKey: (id)kCFBooleanTrue};
- CVReturn result = CVPixelBufferCreate(NULL, frameSize.width, frameSize.height, kCVPixelFormatType_420YpCbCr8BiPlanarFullRange, (__bridge CFDictionaryRef _Nullable)(pixelAttributes), &pixelBuffer);
Add Comment
Please, Sign In to add comment