Lines Matching refs:pixelBuffer
15 void DrawGradientInRGBPixelBuffer(CVPixelBufferRef pixelBuffer) {
16 CVPixelBufferLockBaseAddress(pixelBuffer, kCVPixelBufferLock_ReadOnly);
17 void* baseAddr = CVPixelBufferGetBaseAddress(pixelBuffer);
18 size_t width = CVPixelBufferGetWidth(pixelBuffer);
19 size_t height = CVPixelBufferGetHeight(pixelBuffer);
21 int byteOrder = CVPixelBufferGetPixelFormatType(pixelBuffer) == kCVPixelFormatType_32ARGB ?
28 CVPixelBufferGetBytesPerRow(pixelBuffer),
47 CVPixelBufferUnlockBaseAddress(pixelBuffer, kCVPixelBufferLock_ReadOnly);
70 CVPixelBufferRef pixelBuffer) {
71 CVPixelBufferLockBaseAddress(pixelBuffer, 0);
73 const OSType pixelFormat = CVPixelBufferGetPixelFormatType(pixelBuffer);
77 uint8_t* dstY = static_cast<uint8_t*>(CVPixelBufferGetBaseAddressOfPlane(pixelBuffer, 0));
78 const int dstYStride = CVPixelBufferGetBytesPerRowOfPlane(pixelBuffer, 0);
79 uint8_t* dstUV = static_cast<uint8_t*>(CVPixelBufferGetBaseAddressOfPlane(pixelBuffer, 1));
80 const int dstUVStride = CVPixelBufferGetBytesPerRowOfPlane(pixelBuffer, 1);
95 uint8_t* dst = static_cast<uint8_t*>(CVPixelBufferGetBaseAddress(pixelBuffer));
96 const int bytesPerRow = CVPixelBufferGetBytesPerRow(pixelBuffer);
125 CVPixelBufferUnlockBaseAddress(pixelBuffer, 0);