diff --git a/src/igl/android/NativeHWBuffer.cpp b/src/igl/android/NativeHWBuffer.cpp index f71330cb7b..2441fb09b9 100644 --- a/src/igl/android/NativeHWBuffer.cpp +++ b/src/igl/android/NativeHWBuffer.cpp @@ -104,6 +104,7 @@ TextureFormat getIglFormat(uint32_t nativeFormat) { return TextureFormat::S_UInt8; case AHARDWAREBUFFER_FORMAT_YCbCr_420_SP_VENUS: + case COLOR_QCOM_FORMATYUV420PackedSemiPlanar32m: return TextureFormat::YUV_NV12; default: diff --git a/src/igl/android/NativeHWBuffer.h b/src/igl/android/NativeHWBuffer.h index 96eda344ea..0fe54998f8 100644 --- a/src/igl/android/NativeHWBuffer.h +++ b/src/igl/android/NativeHWBuffer.h @@ -15,6 +15,10 @@ #define AHARDWAREBUFFER_FORMAT_YCbCr_420_SP_VENUS 0x7FA30C06 #endif +#if !defined(COLOR_QCOM_FORMATYUV420PackedSemiPlanar32m) +#define COLOR_QCOM_FORMATYUV420PackedSemiPlanar32m 0x7FA30C04 +#endif + #include #include