summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Chiu <chiucharles@google.com>2021-05-06 10:08:39 +0800
committerCharles Chiu <chiucharles@google.com>2021-05-19 21:27:16 +0800
commita20206ab1c049b005d9f624f5558a28e10a63d51 (patch)
treee99b1603dfe3fe7cf16d5b2e415cde77979fbbdc
parent58571547cd8b61378bec54951c10335e9b0175a1 (diff)
downloadav-a20206ab1c049b005d9f624f5558a28e10a63d51.tar.gz
EAF, Enable EAF on 1080P resolution(Codec side)android12-dev
Investigation purpose, For ECO service 1.0 spec, the support input frame size of ECO is limited <= 720P https://source.corp.google.com/aosp-android11/hardware/google/av/media/eco/ECOSession.cpp;l=59?q=createECOSession We could remove limitation here and do the some evaluation. Test: GCA Bug: 187359844 Change-Id: I97a1c96def7a800ce0b079029af5d3314a43961f
-rw-r--r--media/eco/ECOSession.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/media/eco/ECOSession.cpp b/media/eco/ECOSession.cpp
index a7b919f..ea5d552 100644
--- a/media/eco/ECOSession.cpp
+++ b/media/eco/ECOSession.cpp
@@ -53,10 +53,10 @@ using android::sp;
// static
sp<ECOSession> ECOSession::createECOSession(int32_t width, int32_t height, bool isCameraRecording) {
- // Only support up to 720P.
+ // Only support up to 1080P.
// TODO: Support the same resolution as in EAF.
if (width <= 0 || height <= 0 || width > 5120 || height > 5120 ||
- width > 1280 * 720 / height) {
+ width > 1920 * 1080 / height) {
ECOLOGE("Failed to create ECOSession with w: %d, h: %d, isCameraRecording: %d", width,
height, isCameraRecording);
return nullptr;