diff options
author | Charles Chiu <chiucharles@google.com> | 2022-04-20 17:20:16 +0800 |
---|---|---|
committer | Charles Chiu <chiucharles@google.com> | 2022-04-20 12:04:49 +0000 |
commit | 46460e35bab1fe12c3a710eff39d9bec7daf1e56 (patch) | |
tree | 886f761919f0e077eefd25bd01ba79da6ab38372 | |
parent | 2033451c902c6172ffc4ec34ea2370a5843e4b63 (diff) | |
download | av-46460e35bab1fe12c3a710eff39d9bec7daf1e56.tar.gz |
Eaf, Adjust FHD size to 1920x1088(Eco service)
Adjust and relax the condition check to compatible with
more 3P apps with FHD size(From 1920 x1080 to 1920 x 1088).
Test: P22 Camera Test Checklist
Bug: 228521595
Change-Id: I51914de5151a42ce24599aded20c38580f2fab33
-rw-r--r-- | media/eco/ECOSession.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/media/eco/ECOSession.cpp b/media/eco/ECOSession.cpp index ea5d552..1a2e910 100644 --- a/media/eco/ECOSession.cpp +++ b/media/eco/ECOSession.cpp @@ -56,7 +56,7 @@ sp<ECOSession> ECOSession::createECOSession(int32_t width, int32_t height, bool // Only support up to 1080P. // TODO: Support the same resolution as in EAF. if (width <= 0 || height <= 0 || width > 5120 || height > 5120 || - width > 1920 * 1080 / height) { + width > 1920 * 1088 / height) { ECOLOGE("Failed to create ECOSession with w: %d, h: %d, isCameraRecording: %d", width, height, isCameraRecording); return nullptr; |