Home
last modified time | relevance | path

Searched refs:gb (Results 1 – 15 of 15) sorted by relevance

/frameworks/native/libs/ui/tests/
DGraphicBuffer_test.cpp40 sp<GraphicBuffer> gb(new GraphicBuffer(kTestWidth, kTestHeight, format, kTestLayerCount, in TEST_F() local
42 ASSERT_EQ(NO_ERROR, gb->initCheck()); in TEST_F()
49 sp<GraphicBuffer> gb(new GraphicBuffer(width, height, format, kTestLayerCount, kTestUsage, in TEST_F() local
51 ASSERT_EQ(BAD_VALUE, gb->initCheck()); in TEST_F()
61 sp<GraphicBuffer> gb(new GraphicBuffer(std::move(b1))); in TEST_F() local
62 EXPECT_TRUE(gb->isBufferHubBuffer()); in TEST_F()
64 EXPECT_EQ(gb->getWidth(), kTestWidth); in TEST_F()
65 EXPECT_EQ(gb->getHeight(), kTestHeight); in TEST_F()
66 EXPECT_EQ(static_cast<uint32_t>(gb->getPixelFormat()), kTestFormat); in TEST_F()
67 EXPECT_EQ(gb->getUsage(), kTestUsage); in TEST_F()
[all …]
/frameworks/av/services/camera/libcameraservice/device3/
DCamera3BufferManager.h130 int streamId, int streamSetId, sp<GraphicBuffer>* gb, int* fenceFd,
210 explicit GraphicBufferEntry(const sp<GraphicBuffer>& gb = 0, int fd = -1) :
211 graphicBuffer(gb), in graphicBuffer()
DCamera3StreamSplitter.cpp420 sp<GraphicBuffer> gb(static_cast<GraphicBuffer*>(anb)); in attachBufferToOutputs() local
421 uint64_t bufferId = gb->getId(); in attachBufferToOutputs()
424 auto tracker = std::make_unique<BufferTracker>(gb, surface_ids); in attachBufferToOutputs()
432 int slot = getSlotForOutputLocked(gbp, gb); in attachBufferToOutputs()
442 res = gbp->attachBuffer(&slot, gb); in attachBufferToOutputs()
470 SP_LOGV("%s: Attached buffer %p to slot %d on output %p.",__FUNCTION__, gb.get(), in attachBufferToOutputs()
472 outputSlots[slot] = gb; in attachBufferToOutputs()
740 const sp<GraphicBuffer>& gb) { in getSlotForOutputLocked() argument
744 if (outputSlots[i] == gb) { in getSlotForOutputLocked()
749 SP_LOGV("%s: Cannot find slot for gb %p on output %p", __FUNCTION__, gb.get(), in getSlotForOutputLocked()
DCamera3OutputStream.cpp529 sp<GraphicBuffer> gb; in getBufferLockedCommon() local
530 res = mBufferManager->getBufferForStream(getId(), getStreamSetId(), &gb, fenceFd); in getBufferLockedCommon()
534 *anb = gb.get(); in getBufferLockedCommon()
582 sp<GraphicBuffer> gb; in getBufferLockedCommon() local
584 getId(), getStreamSetId(), &gb, fenceFd, /*noFreeBuffer*/true); in getBufferLockedCommon()
589 *anb = gb.get(); in getBufferLockedCommon()
844 for (const auto& gb : removedBuffers) { in onBuffersRemovedLocked() local
845 callback->onBufferFreed(mId, gb->handle); in onBuffersRemovedLocked()
DCamera3InputStream.cpp297 void Camera3InputStream::onBufferFreed(const wp<GraphicBuffer>& gb) { in onBufferFreed() argument
298 const sp<GraphicBuffer> buffer = gb.promote(); in onBufferFreed()
DCamera3BufferManager.cpp240 sp<GraphicBuffer>* gb, int* fenceFd, bool noFreeBufferAtConsumer) { in getBufferForStream() argument
306 *gb = buffer.graphicBuffer; in getBufferForStream()
DCamera3StreamSplitter.h219 const sp<GraphicBuffer>& gb);
/frameworks/av/services/camera/libcameraservice/api2/
DDepthCompositeStream.cpp296 sp<GraphicBuffer> gb = GraphicBuffer::from(anb); in processInputFrame() local
297 res = gb->lockAsync(GRALLOC_USAGE_SW_WRITE_OFTEN, &dstBuffer, fenceFd); in processInputFrame()
305 if ((gb->getWidth() < finalJpegBufferSize) || (gb->getHeight() != 1)) { in processInputFrame()
307 gb->getWidth(), gb->getHeight(), finalJpegBufferSize, 1U); in processInputFrame()
382 (gb->getWidth() - sizeof(struct camera3_jpeg_blob)); in processInputFrame()
DHeicCompositeStream.cpp1049 sp<GraphicBuffer> gb = GraphicBuffer::from(inputFrame.anb); in processCompletedInputFrame() local
1051 auto res = gb->lockAsync(GRALLOC_USAGE_SW_WRITE_OFTEN, &dstBuffer, inputFrame.fenceFd); in processCompletedInputFrame()
/frameworks/av/services/camera/libcameraservice/api1/client2/
DZslProcessor.cpp388 sp<GraphicBuffer> gb; in doNotifyInputReleasedLocked() local
390 auto rc = mInputProducer->detachNextBuffer(&gb, &fence); in doNotifyInputReleasedLocked()
399 if (gb->handle != inputBuffer->handle) { in doNotifyInputReleasedLocked()
401 inputBuffer->handle, gb->handle); in doNotifyInputReleasedLocked()
/frameworks/base/services/core/java/com/android/server/wm/
DScreenRotationAnimation.java278 SurfaceControl.ScreenshotGraphicBuffer gb = in ScreenRotationAnimation() local
280 if (gb != null) { in ScreenRotationAnimation()
282 surface.attachAndQueueBufferWithColorSpace(gb.getGraphicBuffer(), in ScreenRotationAnimation()
283 gb.getColorSpace()); in ScreenRotationAnimation()
290 if (gb.containsSecureLayers()) { in ScreenRotationAnimation()
/frameworks/rs/script_api/
Drs_value_types.spec57 <code>myVar.yz</code>, <code>myVar.gb</code>, <code>myVar.s12</code>, and <code>myVar.S12</code>.
/frameworks/base/core/tests/coretests/src/android/graphics/drawable/
DAdaptiveIconDrawableTest.java236 int gb = (b.getPixel(i, j) >> 8) & 0xff; in equalBitmaps() local
/frameworks/base/media/jni/
Dandroid_media_ImageWriter.cpp751 GraphicBuffer *gb = reinterpret_cast<GraphicBuffer *> in Image_getNativeContext() local
753 *buffer = gb; in Image_getNativeContext()
/frameworks/rs/script_api/include/
Drs_value_types.rsh59 * myVar.yz, myVar.gb, myVar.s12, and myVar.S12.