Lines Matching refs:pixelBuffer
98 CVPixelBufferRef pixelBuffer) {
99 RTC_DCHECK(pixelBuffer);
100 RTC_DCHECK_EQ(CVPixelBufferGetPixelFormatType(pixelBuffer), kNV12PixelFormat);
101 RTC_DCHECK_EQ(CVPixelBufferGetHeightOfPlane(pixelBuffer, 0), frameBuffer.height);
102 RTC_DCHECK_EQ(CVPixelBufferGetWidthOfPlane(pixelBuffer, 0), frameBuffer.width);
104 CVReturn cvRet = CVPixelBufferLockBaseAddress(pixelBuffer, 0);
109 uint8_t *dstY = reinterpret_cast<uint8_t *>(CVPixelBufferGetBaseAddressOfPlane(pixelBuffer, 0));
110 int dstStrideY = CVPixelBufferGetBytesPerRowOfPlane(pixelBuffer, 0);
111 uint8_t *dstUV = reinterpret_cast<uint8_t *>(CVPixelBufferGetBaseAddressOfPlane(pixelBuffer, 1));
112 int dstStrideUV = CVPixelBufferGetBytesPerRowOfPlane(pixelBuffer, 1);
126 CVPixelBufferUnlockBaseAddress(pixelBuffer, 0);
404 CVPixelBufferRef pixelBuffer = nullptr;
414 pixelBuffer = rtcPixelBuffer.pixelBuffer;
415 CVBufferRetain(pixelBuffer);
418 pixelBuffer = CreatePixelBuffer(_pixelBufferPool);
419 if (!pixelBuffer) {
422 int dstWidth = CVPixelBufferGetWidth(pixelBuffer);
423 int dstHeight = CVPixelBufferGetHeight(pixelBuffer);
432 if (![rtcPixelBuffer cropAndScaleTo:pixelBuffer withTempBuffer:_frameScaleBuffer.data()]) {
433 CVBufferRelease(pixelBuffer);
439 if (!pixelBuffer) {
441 pixelBuffer = CreatePixelBuffer(_pixelBufferPool);
442 if (!pixelBuffer) {
445 RTC_DCHECK(pixelBuffer);
446 if (!CopyVideoFrameToNV12PixelBuffer([frame.buffer toI420], pixelBuffer)) {
448 CVBufferRelease(pixelBuffer);
485 pixelBuffer,
494 if (pixelBuffer) {
495 CVBufferRelease(pixelBuffer);
550 return CVPixelBufferGetPixelFormatType(rtcPixelBuffer.pixelBuffer);