commit | e911f2e3ffdf4582676161fd82b38a48a4ea9a48 | [log] [tgz] |
---|---|---|
author | Susmitha Gummalla <vgummall@codeaurora.org> | Mon Nov 23 09:57:03 2020 -0800 |
committer | Shuzhen Wang <shuzhenwang@google.com> | Tue Jun 29 15:47:59 2021 -0700 |
tree | 6d3b7781a6c58a9f458294c83e72d2f476a36da9 | |
parent | b228994b945f246a917bbe7f9063819b9c16a68e [diff] [blame] |
Camera: Update max HEIC buffer calculation --Update buffer size calculation to use 512 aligned width and height as HEIC images are tiled as 512x512 Bug: 173763227 CRs-Fixed: 2785345 Test: Camera CTS Change-Id: I84ebd19bf01cf2a1de529b5b91f7882305d6ce37
diff --git a/services/camera/libcameraservice/api2/HeicEncoderInfoManager.h b/services/camera/libcameraservice/api2/HeicEncoderInfoManager.h index 58edba2..a65be9c 100644 --- a/services/camera/libcameraservice/api2/HeicEncoderInfoManager.h +++ b/services/camera/libcameraservice/api2/HeicEncoderInfoManager.h
@@ -38,6 +38,7 @@ bool isSizeSupported(int32_t width, int32_t height, bool* useHeic, bool* useGrid, int64_t* stall, AString* hevcName) const; + // kGridWidth and kGridHeight should be 2^n static const auto kGridWidth = 512; static const auto kGridHeight = 512; private: