Skip to content

Commit

Permalink
Add QComm decoder format to IGL
Browse files Browse the repository at this point in the history
Reviewed By: ChristianK275, corporateshark

Differential Revision: D67787945

fbshipit-source-id: 684de83fe6040c596615abf102cce1efe2211e11
  • Loading branch information
Heidi Gaertner authored and facebook-github-bot committed Jan 4, 2025
1 parent f28b127 commit b383064
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/igl/android/NativeHWBuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 4 additions & 0 deletions src/igl/android/NativeHWBuffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 <igl/Texture.h>
#include <igl/TextureFormat.h>

Expand Down

0 comments on commit b383064

Please sign in to comment.