Home
last modified time | relevance | path

Searched refs:pixelBuffer (Results 1 – 25 of 35) sorted by relevance

12

/external/webrtc/sdk/objc/unittests/
Dframe_buffer_helpers.mm15 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);
[all …]
DObjCVideoTrackSource_xctest.mm185 XCTAssertEqual(buffer.pixelBuffer, outputBuffer.pixelBuffer);
221 XCTAssertEqual(buffer.pixelBuffer, outputBuffer.pixelBuffer);
257 XCTAssertEqual(buffer.pixelBuffer, outputBuffer.pixelBuffer);
302 XCTAssertEqual(buffer.pixelBuffer, outputBuffer.pixelBuffer);
346 XCTAssertEqual(buffer.pixelBuffer, outputBuffer.pixelBuffer);
390 XCTAssertEqual(buffer.pixelBuffer, outputBuffer.pixelBuffer);
Dframe_buffer_helpers.h15 void DrawGradientInRGBPixelBuffer(CVPixelBufferRef pixelBuffer);
22 CVPixelBufferRef pixelBuffer);
DRTCCameraVideoCapturerTests.mm33 CVPixelBufferRef pixelBuffer = nullptr;
35 &pixelBuffer);
51 CMVideoFormatDescriptionCreateForImageBuffer(NULL, pixelBuffer, &description);
54 CMSampleBufferCreateForImageBuffer(kCFAllocatorDefault, pixelBuffer, YES, NULL, NULL, description,
56 CFRelease(pixelBuffer);
/external/webrtc/sdk/objc/components/renderer/metal/
DRTCMTLRGBRenderer.mm97 RTC_OBJC_TYPE(RTCCVPixelBuffer) *pixelBuffer = (RTC_OBJC_TYPE(RTCCVPixelBuffer) *)frame.buffer;
98 *width = CVPixelBufferGetWidth(pixelBuffer.pixelBuffer);
99 *height = CVPixelBufferGetHeight(pixelBuffer.pixelBuffer);
100 *cropWidth = pixelBuffer.cropWidth;
101 *cropHeight = pixelBuffer.cropHeight;
102 *cropX = pixelBuffer.cropX;
103 *cropY = pixelBuffer.cropY;
111 CVPixelBufferRef pixelBuffer = ((RTC_OBJC_TYPE(RTCCVPixelBuffer) *)frame.buffer).pixelBuffer;
117 int width = CVPixelBufferGetWidth(pixelBuffer);
118 int height = CVPixelBufferGetHeight(pixelBuffer);
[all …]
DRTCMTLNV12Renderer.mm99 RTC_OBJC_TYPE(RTCCVPixelBuffer) *pixelBuffer = (RTC_OBJC_TYPE(RTCCVPixelBuffer) *)frame.buffer;
100 *width = CVPixelBufferGetWidth(pixelBuffer.pixelBuffer);
101 *height = CVPixelBufferGetHeight(pixelBuffer.pixelBuffer);
102 *cropWidth = pixelBuffer.cropWidth;
103 *cropHeight = pixelBuffer.cropHeight;
104 *cropX = pixelBuffer.cropX;
105 *cropY = pixelBuffer.cropY;
113 CVPixelBufferRef pixelBuffer = ((RTC_OBJC_TYPE(RTCCVPixelBuffer) *)frame.buffer).pixelBuffer;
120 int lumaWidth = CVPixelBufferGetWidthOfPlane(pixelBuffer, 0);
121 int lumaHeight = CVPixelBufferGetHeightOfPlane(pixelBuffer, 0);
[all …]
/external/webrtc/sdk/objc/components/renderer/opengl/
DRTCNV12TextureCache.m49 pixelBuffer:(CVPixelBufferRef)pixelBuffer
52 const int width = CVPixelBufferGetWidthOfPlane(pixelBuffer, planeIndex);
53 const int height = CVPixelBufferGetHeightOfPlane(pixelBuffer, planeIndex);
60 kCFAllocatorDefault, _textureCache, pixelBuffer, NULL, GL_TEXTURE_2D, pixelFormat, width,
83 CVPixelBufferRef pixelBuffer = rtcPixelBuffer.pixelBuffer;
85 pixelBuffer:pixelBuffer
89 pixelBuffer:pixelBuffer
/external/webrtc/sdk/objc/components/video_codec/
DRTCVideoEncoderH264.mm98 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);
[all …]
/external/angle/src/tests/egl_tests/
DEGLDirectCompositionTest.cpp279 uint8_t *pixelBuffer = static_cast<uint8_t *>(malloc(WINDOWWIDTH * WINDOWHEIGHT * 4)); in TEST_P() local
280 ZeroMemory(pixelBuffer, WINDOWWIDTH * WINDOWHEIGHT * 4); in TEST_P()
285 bool success = mOSWindow->takeScreenshot(pixelBuffer); in TEST_P()
289 ASSERT_EGL_TRUE(pixelBuffer[(50 * 50 * 4)] == 255); in TEST_P()
290 ASSERT_EGL_TRUE(pixelBuffer[(50 * 50 * 4) + 1] == 0); in TEST_P()
291 ASSERT_EGL_TRUE(pixelBuffer[(50 * 50 * 4) + 2] == 0); in TEST_P()
292 ASSERT_EGL_TRUE(pixelBuffer[(50 * 50 * 4) + 3] == 255); in TEST_P()
/external/webrtc/sdk/objc/components/video_frame_buffer/
DRTCCVPixelBuffer.h22 @property(nonatomic, readonly) CVPixelBufferRef pixelBuffer;
30 - (instancetype)initWithPixelBuffer:(CVPixelBufferRef)pixelBuffer;
31 - (instancetype)initWithPixelBuffer:(CVPixelBufferRef)pixelBuffer
DRTCCVPixelBuffer.mm34 @synthesize pixelBuffer = _pixelBuffer;
48 - (instancetype)initWithPixelBuffer:(CVPixelBufferRef)pixelBuffer {
49 return [self initWithPixelBuffer:pixelBuffer
50 adaptedWidth:CVPixelBufferGetWidth(pixelBuffer)
51 adaptedHeight:CVPixelBufferGetHeight(pixelBuffer)
52 cropWidth:CVPixelBufferGetWidth(pixelBuffer)
53 cropHeight:CVPixelBufferGetHeight(pixelBuffer)
58 - (instancetype)initWithPixelBuffer:(CVPixelBufferRef)pixelBuffer
68 _pixelBuffer = pixelBuffer;
/external/angle/src/tests/gl_tests/
DProvokingVertexTest.cpp221 std::vector<GLint> pixelBuffer(getWindowWidth() * getWindowHeight() * 4, 0); in TEST_P() local
223 &pixelBuffer[0]); in TEST_P()
244 EXPECT_EQ(vertexData[provokingVertexIndex], pixelBuffer[pixelIndex * 4]); in TEST_P()
270 std::vector<GLint> pixelBuffer(getWindowWidth() * getWindowHeight() * 4, 0); in TEST_P() local
272 &pixelBuffer[0]); in TEST_P()
300 EXPECT_EQ(vertexData[provokingVertexIndex], pixelBuffer[pixelIndex * 4]); in TEST_P()
/external/webrtc/examples/objc/AppRTCMobile/
DARDExternalSampleCapturer.m30 CVPixelBufferRef pixelBuffer = CMSampleBufferGetImageBuffer(sampleBuffer);
31 if (pixelBuffer == nil) {
36 [[RTC_OBJC_TYPE(RTCCVPixelBuffer) alloc] initWithPixelBuffer:pixelBuffer];
/external/tensorflow/tensorflow/lite/examples/ios/camera/
DCameraExampleViewController.mm274 CVPixelBufferRef pixelBuffer = CMSampleBufferGetImageBuffer(sampleBuffer);
275 CFRetain(pixelBuffer);
276 [self runModelOnFrame:pixelBuffer];
277 CFRelease(pixelBuffer);
280 - (void)runModelOnFrame:(CVPixelBufferRef)pixelBuffer {
281 assert(pixelBuffer != NULL);
283 OSType sourcePixelFormat = CVPixelBufferGetPixelFormatType(pixelBuffer);
287 const int sourceRowBytes = (int)CVPixelBufferGetBytesPerRow(pixelBuffer);
288 const int image_width = (int)CVPixelBufferGetWidth(pixelBuffer);
289 const int fullHeight = (int)CVPixelBufferGetHeight(pixelBuffer);
[all …]
/external/webrtc/sdk/objc/base/
DRTCVideoFrame.h53 - (instancetype)initWithPixelBuffer:(CVPixelBufferRef)pixelBuffer
62 - (instancetype)initWithPixelBuffer:(CVPixelBufferRef)pixelBuffer
DRTCVideoFrame.mm46 - (instancetype)initWithPixelBuffer:(CVPixelBufferRef)pixelBuffer
53 - (instancetype)initWithPixelBuffer:(CVPixelBufferRef)pixelBuffer
/external/deqp/external/vulkancts/modules/vulkan/sparse_resources/
DvktSparseResourcesImageSparseResidency.cpp767 …tcu::ConstPixelBufferAccess pixelBuffer = vk::getChannelAccess(compatibleFormatDescription, co… in iterate() local
770 m_context.getTestContext().getLog() << tcu::LogImage(str.str(), str.str(), pixelBuffer);; in iterate()
795 …tcu::ConstPixelBufferAccess pixelBuffer = vk::getChannelAccess(compatibleFormatDescription, c… in iterate() local
797 tcu::IVec3 pixelDivider = pixelBuffer.getDivider(); in iterate()
861 …const tcu::UVec4 outputValue = pixelBuffer.getPixelUint(offsetX * pixelDivider.x(), offsetY * pixe… in iterate()
873 …const tcu::Vec4 outputValue = pixelBuffer.getPixel(offsetX * pixelDivider.x(), offsetY * pixelDivi… in iterate()
882 …const tcu::Vec4 outputValue = pixelBuffer.getPixel(offsetX * pixelDivider.x(), offsetY * pixelDivi… in iterate()
906 …const tcu::UVec4 outputValue = pixelBuffer.getPixelUint(offsetX * pixelDivider.x(), offsetY * pixe… in iterate()
918 …const tcu::Vec4 outputValue = pixelBuffer.getPixel(offsetX * pixelDivider.x(), offsetY * pixelDivi… in iterate()
927 …const tcu::Vec4 outputValue = pixelBuffer.getPixel(offsetX * pixelDivider.x(), offsetY * pixelDivi… in iterate()
[all …]
DvktSparseResourcesImageMemoryAliasing.cpp747 …const tcu::ConstPixelBufferAccess pixelBuffer = vk::getChannelAccess(formatDescription, gridSize… in iterate() local
748 tcu::IVec3 pixelDivider = pixelBuffer.getDivider(); in iterate()
779 …const tcu::UVec4 outputValue = pixelBuffer.getPixelUint(offsetX * pixelDivider.x(), offsetY * pixe… in iterate()
791 …const tcu::Vec4 outputValue = pixelBuffer.getPixel(offsetX * pixelDivider.x(), offsetY * pixelDivi… in iterate()
800 …const tcu::Vec4 outputValue = pixelBuffer.getPixel(offsetX * pixelDivider.x(), offsetY * pixelDivi… in iterate()
/external/webrtc/sdk/objc/components/capturer/
DRTCFileVideoCapturer.m177 CVPixelBufferRef pixelBuffer = CMSampleBufferGetImageBuffer(sampleBuffer);
178 if (!pixelBuffer) {
187 [[RTC_OBJC_TYPE(RTCCVPixelBuffer) alloc] initWithPixelBuffer:pixelBuffer];
DRTCCameraVideoCapturer.m248 CVPixelBufferRef pixelBuffer = CMSampleBufferGetImageBuffer(sampleBuffer);
249 if (pixelBuffer == nil) {
292 [[RTC_OBJC_TYPE(RTCCVPixelBuffer) alloc] initWithPixelBuffer:pixelBuffer];
/external/deqp/modules/gles3/functional/
Des3fPixelBufferObjectTests.cpp541 GLuint pixelBuffer = (GLuint)-1; in iterate() local
543 GLU_CHECK_CALL(glGenBuffers(1, &pixelBuffer)); in iterate()
544 GLU_CHECK_CALL(glBindBuffer(GL_PIXEL_PACK_BUFFER, pixelBuffer)); in iterate()
582 GLU_CHECK_CALL(glBindBuffer(GL_PIXEL_PACK_BUFFER, pixelBuffer)); in iterate()
584 GLU_CHECK_CALL(glDeleteBuffers(1, &pixelBuffer)); in iterate()
/external/deqp/external/vulkancts/modules/vulkan/ycbcr/
DvktYCbCrStorageImageWriteTests.cpp365 …tcu::ConstPixelBufferAccess pixelBuffer = vk::getChannelAccess(compatibleFormatDescription, co… in testStorageImageWrite() local
368 context.getTestContext().getLog() << tcu::LogImage(str.str(), str.str(), pixelBuffer);; in testStorageImageWrite()
383 …tcu::ConstPixelBufferAccess pixelBuffer = vk::getChannelAccess(compatibleFormatDescription, … in testStorageImageWrite() local
385 tcu::IVec3 pixelDivider = pixelBuffer.getDivider(); in testStorageImageWrite()
420 …tcu::UVec4 outputValue = pixelBuffer.getPixelUint(offsetX * pixelDivider.x(), offsetY * pixelDivid… in testStorageImageWrite()
432 …tcu::Vec4 outputValue = pixelBuffer.getPixel(offsetX * pixelDivider.x(), offsetY * pixelDivider.y(… in testStorageImageWrite()
441 …const tcu::Vec4 outputValue = pixelBuffer.getPixel(offsetX * pixelDivider.x(), offsetY * pixelDivi… in testStorageImageWrite()
/external/deqp/external/vulkancts/modules/vulkan/multiview/
DvktMultiViewRenderTests.cpp290 …void setPoint (const tcu::PixelBufferAccess& pixelBuffer, const tcu::Vec4& pointColor, co…
291 …void fillTriangle (const tcu::PixelBufferAccess& pixelBuffer, const tcu::Vec4& color, cons…
292 …void fillLayer (const tcu::PixelBufferAccess& pixelBuffer, const tcu::Vec4& color, const …
293 …void fillQuarter (const tcu::PixelBufferAccess& pixelBuffer, const tcu::Vec4& color, cons…
1198 void MultiViewRenderTestInstance::setPoint (const tcu::PixelBufferAccess& pixelBuffer, const tcu::V… in setPoint() argument
1208 pixelBuffer.setPixel(pointColor, offsetX + x, offsetY + y, layerNdx); in setPoint()
1211 void MultiViewRenderTestInstance::fillTriangle (const tcu::PixelBufferAccess& pixelBuffer, const tc… in fillTriangle() argument
1221 pixelBuffer.setPixel(color, offsetX + x, offsetY + (maxY - 1) - y, layerNdx); in fillTriangle()
1224 pixelBuffer.setPixel(multisampledColor, offsetX + y, offsetY + (maxY - 1) - y, layerNdx); in fillTriangle()
1228 void MultiViewRenderTestInstance::fillLayer (const tcu::PixelBufferAccess& pixelBuffer, const tcu::… in fillLayer() argument
[all …]
/external/angle/src/libANGLE/renderer/gl/
Drenderergl_utils.h146 const gl::Buffer *pixelBuffer,
/external/deqp/external/openglcts/modules/common/
DglcInternalformatTests.cpp1235 …tcu::PixelBufferAccess pixelBuffer(tcu::TextureFormat(tcu::TextureFormat::sRGBA, tcu::TextureForma… in iterate() local
1237 glu::readPixels(renderContext, 0, 0, pixelBuffer); in iterate()
1239 convertsRGBA(pixelBuffer, testSurface[0][loop].getAccess()); in iterate()
1241 convertsRGB(pixelBuffer, testSurface[0][loop].getAccess()); in iterate()
1248 …tcu::PixelBufferAccess pixelBuffer(tcu::TextureFormat(tcu::TextureFormat::RGBA, tcu::TextureFormat… in iterate() local
1250 glu::readPixels(renderContext, 0, 0, pixelBuffer); in iterate()
1252 convertUInt_2_10_10_10_rev(pixelBuffer, testSurface[0][loop].getAccess()); in iterate()
1254 convertUInt(pixelBuffer, testSurface[0][loop].getAccess()); in iterate()

12