diff options
author | 2024-09-13 12:16:10 -0700 | |
---|---|---|
committer | 2024-10-16 17:06:07 -0700 | |
commit | 72cefc0779bc4a25a307bbdf0e9ad62d8929706c (patch) | |
tree | 5bea0836a6d302c66cc66dfcc75d901adfe8521f | |
parent | e3ec0d431230195af818248ff7439583c2696a57 (diff) |
Add YCBCR_P210 format to AHardwareBuffer
YCBCR_P210 is a 10-bit 4:2:2 YCbCr color format
Test: New tests pass
Flag: android.media.codec.p210_format_support
Bug: 368395888
Change-Id: Iac89c9dd506d65ee24827a8cd3e802a417bc8e9e
-rw-r--r-- | libs/nativewindow/include/android/hardware_buffer.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libs/nativewindow/include/android/hardware_buffer.h b/libs/nativewindow/include/android/hardware_buffer.h index d05ff3457a..5a78a5c82c 100644 --- a/libs/nativewindow/include/android/hardware_buffer.h +++ b/libs/nativewindow/include/android/hardware_buffer.h @@ -175,6 +175,14 @@ enum AHardwareBuffer_Format { AHARDWAREBUFFER_FORMAT_YCbCr_P010 = 0x36, /** + * YUV P210 format. + * Must have an even width and height. Can be accessed in OpenGL + * shaders through an external sampler. Does not support mip-maps + * cube-maps or multi-layered textures. + */ + AHARDWAREBUFFER_FORMAT_YCbCr_P210 = 0x3c, + + /** * Corresponding formats: * Vulkan: VK_FORMAT_R8_UNORM * OpenGL ES: GR_GL_R8 |