Home
last modified time | relevance | path

Searched refs:getPixelFormat (Results 1 – 25 of 46) sorted by relevance

12

/aosp12/frameworks/native/services/surfaceflinger/tests/utils/
H A DScreenshotUtils.h89 ASSERT_EQ(HAL_PIXEL_FORMAT_RGBA_8888, mOutBuffer->getPixelFormat());
95 ASSERT_EQ(HAL_PIXEL_FORMAT_RGBA_8888, mOutBuffer->getPixelFormat());
153 ASSERT_EQ(HAL_PIXEL_FORMAT_RGBA_8888, mOutBuffer->getPixelFormat()); in checkPixel()
164 if (!mOutBuffer || mOutBuffer->getPixelFormat() != HAL_PIXEL_FORMAT_RGBA_8888) { in getPixelColor()
/aosp12/frameworks/base/cmds/screencap/
H A Dscreencap.cpp215 info.format = flinger2bitmapFormat(buffer->getPixelFormat()); in main()
219 info.stride = buffer->getStride() * bytesPerPixel(buffer->getPixelFormat()); in main()
240 uint32_t f = buffer->getPixelFormat(); in main()
/aosp12/frameworks/native/services/surfaceflinger/tests/
H A DLayerState_test.cpp110 ASSERT_EQ(results.buffer->getPixelFormat(), results2.buffer->getPixelFormat()); in TEST()
/aosp12/frameworks/native/opengl/tests/hwc/
H A DhwcTestLib.cpp619 if (gBuf->getPixelFormat() == HAL_PIXEL_FORMAT_YV12) { in hwcTestSetPixel()
640 if (attrib->format == gBuf->getPixelFormat()) { break; } in hwcTestSetPixel()
644 gBuf->getPixelFormat()); in hwcTestSetPixel()
659 pixel = hwcTestColor2Pixel(gBuf->getPixelFormat(), color, alpha); in hwcTestFillColor()
717 if (colorFormat != (uint32_t) gBuf->getPixelFormat()) { in hwcTestFillColorHBlend()
718 hwcTestColorConvert(colorFormat, gBuf->getPixelFormat(), color); in hwcTestFillColorHBlend()
720 pixel = hwcTestColor2Pixel(gBuf->getPixelFormat(), color, 1.0); in hwcTestFillColorHBlend()
/aosp12/frameworks/base/core/java/android/hardware/display/
H A DDisplayedContentSamplingAttributes.java46 public int getPixelFormat() { in getPixelFormat() method in DisplayedContentSamplingAttributes
/aosp12/frameworks/base/core/jni/
H A Dandroid_hardware_HardwareBuffer.cpp154 buffer->getPixelFormat())); in android_hardware_HardwareBuffer_getFormat()
172 uint32_t bpp = bytesPerPixel(buffer->getPixelFormat()); in android_hardware_HardwareBuffer_estimateSize()
H A Dandroid_graphics_GraphicBuffer.cpp170 nativeBuffer.format = AHardwareBuffer_convertFromPixelFormat(buffer->getPixelFormat()); in android_graphics_GraphicBuffer_lockCanvas()
251 buffer->getPixelFormat(), (jint)buffer->getUsage(), reinterpret_cast<jlong>(wrapper)); in android_graphics_GraphicBuffer_createFromAHardwareBuffer()
/aosp12/frameworks/base/libs/hostgraphics/ui/
H A DGraphicBuffer.h41 PixelFormat getPixelFormat() const { return PIXEL_FORMAT_RGBA_8888; } in getPixelFormat() function
/aosp12/frameworks/native/libs/gui/
H A DGLConsumerUtils.cpp73 switch (buf->getPixelFormat()) { in computeTransformMatrix()
H A DCpuConsumer.cpp93 PixelFormat format = item.mGraphicBuffer->getPixelFormat(); in lockBufferItem()
/aosp12/frameworks/base/libs/hwui/tests/common/scenes/
H A DHwBitmapInCompositeShader.cpp44 bytesPerPixel(buffer->getPixelFormat()) * buffer->getStride() * buffer->getHeight(); in createContent()
/aosp12/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
H A DTaskSnapshotControllerTest.java168 assertEquals(pixelFormat, builder.getPixelFormat()); in testSnapshotBuilder()
255 assertNotEquals(PixelFormat.UNKNOWN, builder.getPixelFormat()); in testPrepareTaskSnapshot()
/aosp12/frameworks/native/services/surfaceflinger/DisplayHardware/
H A DVirtualDisplaySurface.cpp368 mProducerBuffers[pslot]->getPixelFormat(), in dequeueBuffer()
417 (format != 0 && format != buf->getPixelFormat()) || in dequeueBuffer()
425 buf->getPixelFormat(), buf->getUsage()); in dequeueBuffer()
/aosp12/frameworks/base/media/jni/
H A Dandroid_media_ImageReader.cpp478 if (!isFormatOpaque(buffer->mGraphicBuffer->getPixelFormat())) { in Image_unlockIfLocked()
579 int bufferFormat = buffer->mGraphicBuffer->getPixelFormat(); in ImageReader_imageSetup()
718 buffer->mGraphicBuffer->getPixelFormat()); in Image_getLockedImage()
923 buffer->mGraphicBuffer->getPixelFormat(), readerHalFormat); in Image_getFormat()
H A Dandroid_media_Utils.cpp425 if (isFormatOpaque(buffer->getPixelFormat())) { in lockImageFromBuffer()
433 int format = buffer->getPixelFormat(); in lockImageFromBuffer()
H A Dandroid_media_ImageWriter.cpp885 if (!isFormatOpaque(buffer->getPixelFormat())) { in Image_unlockIfLocked()
937 PublicFormat publicFmt = mapHalFormatDataspaceToPublicFormat(buffer->getPixelFormat(), in Image_getFormat()
981 buffer->getPixelFormat()); in Image_getLockedImage()
/aosp12/frameworks/native/libs/vr/libbufferhub/include/private/dvr/
H A Dion_buffer.h84 return buffer_.get() ? buffer_->getPixelFormat() : 0; in format()
/aosp12/frameworks/native/services/surfaceflinger/
H A DBufferLayer.h220 PixelFormat getPixelFormat() const;
H A DBufferLayer.cpp111 return ((s.flags & layer_state_t::eLayerOpaque) != 0) || getOpacityForFormat(getPixelFormat()); in isOpaque()
730 PixelFormat BufferLayer::getPixelFormat() const { in getPixelFormat() function in android::BufferLayer
/aosp12/frameworks/av/media/libstagefright/
H A DFrameCaptureLayer.cpp72 bi.mGraphicBuffer->getPixelFormat() == HAL_PIXEL_FORMAT_RGBA_1010102); in isHdrY410()
/aosp12/frameworks/native/libs/nativewindow/
H A DAHardwareBuffer.cpp89 outDesc->format = AHardwareBuffer_convertFromPixelFormat(uint32_t(gbuffer->getPixelFormat())); in AHardwareBuffer_describe()
202 int format = AHardwareBuffer_convertFromPixelFormat(uint32_t(gBuffer->getPixelFormat())); in AHardwareBuffer_lockPlanes()
/aosp12/frameworks/native/libs/ui/include/ui/
H A DGraphicBuffer.h153 PixelFormat getPixelFormat() const { return format; } in getPixelFormat() function
/aosp12/frameworks/native/libs/ui/include_vndk/ui/
H A DGraphicBuffer.h153 PixelFormat getPixelFormat() const { return format; } in getPixelFormat() function
/aosp12/frameworks/base/core/java/android/window/
H A DTaskSnapshot.java391 public int getPixelFormat() {
/aosp12/frameworks/av/media/libmedia/include/media/omx/1.0/
H A DConversion.h608 t->attr.format = static_cast<PixelFormat>(l.getPixelFormat()); in wrapAs()
723 l.mGraphicBuffer->getPixelFormat()); in wrapAs()

12