Skip to content

Commit c1c1865

Browse files
Treehugger RobotGerrit Code Review
authored andcommitted
Merge "Add YCBCR_P210 format to AHardwareBuffer" into main
2 parents b12f417 + 30f38de commit c1c1865

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

libs/nativewindow/include/android/hardware_buffer.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,14 @@ enum AHardwareBuffer_Format {
174174
*/
175175
AHARDWAREBUFFER_FORMAT_YCbCr_P010 = 0x36,
176176

177+
/**
178+
* YUV P210 format.
179+
* Must have an even width and height. Can be accessed in OpenGL
180+
* shaders through an external sampler. Does not support mip-maps
181+
* cube-maps or multi-layered textures.
182+
*/
183+
AHARDWAREBUFFER_FORMAT_YCbCr_P210 = 0x3c,
184+
177185
/**
178186
* Corresponding formats:
179187
* Vulkan: VK_FORMAT_R8_UNORM

0 commit comments

Comments
 (0)