diff options
author | Willi Ye <williye97@gmail.com> | 2019-10-24 23:05:04 +0200 |
---|---|---|
committer | Arian <arian.kulmer@web.de> | 2021-11-30 18:32:04 +0100 |
commit | 0772004a58d81182606039e3dca677eda3acb48e (patch) | |
tree | a581b4bad198fdc6e748df787ffd7328d2fbfaa5 /gralloc/gr_utils.cpp | |
parent | 1dec611dd1c56ab236b00a77dac85206c441ed69 (diff) |
gralloc: Add option for unaligned YCrCb pixel format
* Same problem as unaligned NV21_ZSL (Samsung Galaxy A70 needs this)
Change-Id: Iddf19433ddef8023b9fa3f7b735f40039dafe3a6
Diffstat (limited to 'gralloc/gr_utils.cpp')
-rw-r--r-- | gralloc/gr_utils.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gralloc/gr_utils.cpp b/gralloc/gr_utils.cpp index d157ad61..4306663e 100644 --- a/gralloc/gr_utils.cpp +++ b/gralloc/gr_utils.cpp @@ -1001,6 +1001,9 @@ void GetAlignedWidthAndHeight(const BufferInfo &info, unsigned int *alignedw, // Below should be only YUV family switch (format) { case HAL_PIXEL_FORMAT_YCrCb_420_SP: +#ifdef USE_UNALIGNED_YCRCB + break; +#endif case HAL_PIXEL_FORMAT_YCbCr_420_SP: if (AdrenoMemInfo::GetInstance() == nullptr) { return; |