Home
last modified time | relevance | path

Searched refs:AHardwareBuffer_Format (Results 1 – 12 of 12) sorted by relevance

/aosp12/packages/services/Car/cpp/computepipe/runner/
H A DPixelFormatUtils.cpp24 int numBytesPerPixel(AHardwareBuffer_Format format) { in numBytesPerPixel()
26 case AHardwareBuffer_Format::AHARDWAREBUFFER_FORMAT_R8G8B8A8_UNORM: in numBytesPerPixel()
28 case AHardwareBuffer_Format::AHARDWAREBUFFER_FORMAT_R8G8B8_UNORM: in numBytesPerPixel()
30 case AHardwareBuffer_Format::AHARDWAREBUFFER_FORMAT_S8_UINT: in numBytesPerPixel()
38 AHardwareBuffer_Format PixelFormatToHardwareBufferFormat(PixelFormat pixelFormat) { in PixelFormatToHardwareBufferFormat()
41 return AHardwareBuffer_Format::AHARDWAREBUFFER_FORMAT_R8G8B8A8_UNORM; in PixelFormatToHardwareBufferFormat()
43 return AHardwareBuffer_Format::AHARDWAREBUFFER_FORMAT_R8G8B8_UNORM; in PixelFormatToHardwareBufferFormat()
45 … return AHardwareBuffer_Format::AHARDWAREBUFFER_FORMAT_S8_UINT; // TODO: Check if this works in PixelFormatToHardwareBufferFormat()
49 return AHardwareBuffer_Format::AHARDWAREBUFFER_FORMAT_BLOB; in PixelFormatToHardwareBufferFormat()
/aosp12/packages/services/Car/cpp/computepipe/runner/include/
H A DPixelFormatUtils.h28 int numBytesPerPixel(AHardwareBuffer_Format format);
30 AHardwareBuffer_Format PixelFormatToHardwareBufferFormat(PixelFormat pixelFormat);
/aosp12/frameworks/native/libs/nativedisplay/
H A DADisplay.cpp100 AHardwareBuffer_Format wcgPixelFormat;
217 static_cast<AHardwareBuffer_Format>(wcgPixelFormat), in ADisplay_acquirePhysicalDisplays()
254 AHardwareBuffer_Format* outPixelFormat) { in ADisplay_getPreferredWideColorFormat()
/aosp12/frameworks/native/libs/nativedisplay/include/apex/
H A Ddisplay.h85 AHardwareBuffer_Format* outPixelFormat);
/aosp12/frameworks/base/libs/hwui/renderthread/
H A DReliableSurface.cpp257 rs->mFormat = static_cast<AHardwareBuffer_Format>(va_arg(args, int32_t)); in hook_perform()
260 rs->mFormat = static_cast<AHardwareBuffer_Format>(va_arg(args, int32_t)); in hook_perform()
H A DReliableSurface.h65 AHardwareBuffer_Format mFormat = AHARDWAREBUFFER_FORMAT_R8G8B8A8_UNORM;
/aosp12/frameworks/base/libs/hwui/
H A DDeviceInfo.cpp61 AHardwareBuffer_Format pixelFormat; in updateDisplayInfo()
H A DHardwareBitmapUploader.cpp48 AHardwareBuffer_Format bufferFormat;
/aosp12/frameworks/native/libs/nativewindow/include/android/
H A Dhardware_buffer.h59 enum AHardwareBuffer_Format { enum
/aosp12/packages/services/Car/cpp/computepipe/runner/debug_display_manager/
H A DEvsDisplayManager.cpp49 buffer.pixelSize = numBytesPerPixel(static_cast<AHardwareBuffer_Format>(hwDesc.format)); in getBufferDesc()
/aosp12/packages/services/Car/cpp/computepipe/tests/runner/stream_manager/
H A DPixelStreamManagerTest.cpp66 AHardwareBuffer_Format expectedFormat = PixelFormatToHardwareBufferFormat(info.format);
118 EXPECT_EQ(desc.format, AHardwareBuffer_Format::AHARDWAREBUFFER_FORMAT_R8G8B8_UNORM); in TEST()
/aosp12/packages/services/Car/cpp/computepipe/runner/stream_manager/
H A DPixelStreamManager.cpp109 int bytesPerPixel = numBytesPerPixel(static_cast<AHardwareBuffer_Format>(mDesc.format)); in setFrameData()