Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/examples/ios/camera/
DCameraExampleViewController.mm251 CVPixelBufferRef pixelBuffer = CMSampleBufferGetImageBuffer(sampleBuffer);
252 CFRetain(pixelBuffer);
253 [self runCNNOnFrame:pixelBuffer];
254 CFRelease(pixelBuffer);
257 - (void)runCNNOnFrame:(CVPixelBufferRef)pixelBuffer {
258 assert(pixelBuffer != NULL);
260 OSType sourcePixelFormat = CVPixelBufferGetPixelFormatType(pixelBuffer);
270 const int sourceRowBytes = (int)CVPixelBufferGetBytesPerRow(pixelBuffer);
271 const int image_width = (int)CVPixelBufferGetWidth(pixelBuffer);
272 const int fullHeight = (int)CVPixelBufferGetHeight(pixelBuffer);
[all …]
/external/tensorflow/tensorflow/lite/examples/ios/camera/
DCameraExampleViewController.mm273 CVPixelBufferRef pixelBuffer = CMSampleBufferGetImageBuffer(sampleBuffer);
274 CFRetain(pixelBuffer);
275 [self runModelOnFrame:pixelBuffer];
276 CFRelease(pixelBuffer);
279 - (void)runModelOnFrame:(CVPixelBufferRef)pixelBuffer {
280 assert(pixelBuffer != NULL);
282 OSType sourcePixelFormat = CVPixelBufferGetPixelFormatType(pixelBuffer);
286 const int sourceRowBytes = (int)CVPixelBufferGetBytesPerRow(pixelBuffer);
287 const int image_width = (int)CVPixelBufferGetWidth(pixelBuffer);
288 const int fullHeight = (int)CVPixelBufferGetHeight(pixelBuffer);
[all …]
/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/multiview/
DvktMultiViewRenderTests.cpp287 …void setPoint (const tcu::PixelBufferAccess& pixelBuffer, const tcu::Vec4& pointColor, co…
288 …void fillTriangle (const tcu::PixelBufferAccess& pixelBuffer, const tcu::Vec4& color, cons…
289 …void fillLayer (const tcu::PixelBufferAccess& pixelBuffer, const tcu::Vec4& color, const …
290 …void fillQuarter (const tcu::PixelBufferAccess& pixelBuffer, const tcu::Vec4& color, cons…
1202 void MultiViewRenderTestInstance::setPoint (const tcu::PixelBufferAccess& pixelBuffer, const tcu::V… in setPoint() argument
1212 pixelBuffer.setPixel(pointColor, offsetX + x, offsetY + y, layerNdx); in setPoint()
1215 void MultiViewRenderTestInstance::fillTriangle (const tcu::PixelBufferAccess& pixelBuffer, const tc… in fillTriangle() argument
1225 pixelBuffer.setPixel(color, offsetX + x, offsetY + (maxY - 1) - y, layerNdx); in fillTriangle()
1228 pixelBuffer.setPixel(multisampledColor, offsetX + y, offsetY + (maxY - 1) - y, layerNdx); in fillTriangle()
1232 void MultiViewRenderTestInstance::fillLayer (const tcu::PixelBufferAccess& pixelBuffer, const tcu::… in fillLayer() argument
[all …]
/external/deqp/external/vulkancts/modules/vulkan/sparse_resources/
DvktSparseResourcesImageSparseResidency.cpp590 …const tcu::ConstPixelBufferAccess pixelBuffer = tcu::ConstPixelBufferAccess(m_format, gridSize.x()… in iterate() local
630 const tcu::UVec4 outputValue = pixelBuffer.getPixelUint(offsetX, offsetY, offsetZ); in iterate()
643 const tcu::UVec4 outputValue = pixelBuffer.getPixelUint(offsetX, offsetY, offsetZ); in iterate()
661 const tcu::UVec4 outputValue = pixelBuffer.getPixelUint(offsetX, offsetY, offsetZ); in iterate()
DvktSparseResourcesImageMemoryAliasing.cpp638 …const tcu::ConstPixelBufferAccess pixelBuffer = tcu::ConstPixelBufferAccess(m_format, gridSize.x()… in iterate() local
646 const tcu::UVec4 outputValue = pixelBuffer.getPixelUint(offsetX, offsetY, offsetZ); in iterate()
/external/deqp/external/vulkancts/modules/vulkan/spirv_assembly/
DvktSpvAsmGraphicsShaderTestUtil.cpp3882 …const tcu::ConstPixelBufferAccess pixelBuffer(tcu::TextureFormat(tcu::TextureFormat::RGBA, tcu::Te… in runAndVerifyDefaultPipeline() local
3886 context.getTestContext().getLog() << TestLog::Image("Result", "Result", pixelBuffer); in runAndVerifyDefaultPipeline()
3921 const RGBA upperLeft(pixelBuffer.getPixel(1, 1)); in runAndVerifyDefaultPipeline()
3925 const RGBA upperRight(pixelBuffer.getPixel(pixelBuffer.getWidth() - 1, 1)); in runAndVerifyDefaultPipeline()
3929 const RGBA lowerLeft(pixelBuffer.getPixel(1, pixelBuffer.getHeight() - 1)); in runAndVerifyDefaultPipeline()
3933 …const RGBA lowerRight(pixelBuffer.getPixel(pixelBuffer.getWidth() - 1, pixelBuffer.getHeight() - 1… in runAndVerifyDefaultPipeline()
/external/deqp/external/vulkancts/modules/vulkan/api/
DvktApiBufferViewAccessTests.cpp439 tcu::ConstPixelBufferAccess pixelBuffer = resultLevel->getAccess(); in checkResult() local
442 tcu::IVec4 pixel = pixelBuffer.getPixelInt(i, i); in checkResult()
/external/deqp/external/openglcts/modules/common/
DglcInternalformatTests.cpp1102 …tcu::PixelBufferAccess pixelBuffer(tcu::TextureFormat(tcu::TextureFormat::RGBA, tcu::TextureFormat… in iterate() local
1104 glu::readPixels(renderContext, 0, 0, pixelBuffer); in iterate()
1106 convertUInt_2_10_10_10_rev(pixelBuffer, testSurface[0][loop].getAccess()); in iterate()
1108 convertUInt(pixelBuffer, testSurface[0][loop].getAccess()); in iterate()