diff options
author | Kourosh Derakshan <kouroshd@google.com> | 2019-07-24 13:53:22 -0700 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2019-07-24 13:53:22 -0700 |
commit | 522219f9c76214aeec23b2cd8e5733122e0207e3 (patch) | |
tree | 5bad823c29258e881625abb4bfe40dc035d842e0 | |
parent | 571f675a12098d5aa512f0a4b8d6971a55111b27 (diff) | |
parent | 432bb9bd2b26f2e393cf5543763db9c4d4cb3da4 (diff) | |
download | pixel-android10-d4-release.tar.gz |
PowerHAL: add 60fps streaming hintandroid-mainline-10.0.0_r9android-mainline-10.0.0_r7android-mainline-10.0.0_r5android-mainline-10.0.0_r4android-mainline-10.0.0_r10android-10.0.0_r45android-10.0.0_r44android-10.0.0_r43android-10.0.0_r42android-10.0.0_r41android-10.0.0_r40android-10.0.0_r39android-10.0.0_r38android-10.0.0_r37android-10.0.0_r36android-10.0.0_r35android-10.0.0_r34android-10.0.0_r33android-10.0.0_r32android-10.0.0_r31android-10.0.0_r30android10-qpr3-s1-releaseandroid10-qpr3-releaseandroid10-qpr2-s4-releaseandroid10-qpr2-s3-releaseandroid10-qpr2-s2-releaseandroid10-qpr2-s1-releaseandroid10-qpr2-releaseandroid10-qpr1-mainline-releaseandroid10-mainline-media-releaseandroid10-d4-s1-releaseandroid10-d4-release
am: 432bb9bd2b
Change-Id: I958aab9cad46defbf01c319eb6f360d8d5355b41
-rw-r--r-- | power-libperfmgr/CameraMode.h | 1 | ||||
-rw-r--r-- | power-libperfmgr/Power.cpp | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/power-libperfmgr/CameraMode.h b/power-libperfmgr/CameraMode.h index ce8f0c95..1e056231 100644 --- a/power-libperfmgr/CameraMode.h +++ b/power-libperfmgr/CameraMode.h @@ -21,6 +21,7 @@ enum CameraStreamingMode { CAMERA_STREAMING_OFF = 0, CAMERA_STREAMING, CAMERA_STREAMING_1080P, + CAMERA_STREAMING_60FPS, CAMERA_STREAMING_4K, CAMERA_STREAMING_SECURE, CAMERA_STREAMING_MAX diff --git a/power-libperfmgr/Power.cpp b/power-libperfmgr/Power.cpp index 4a7cc8e1..f199bfb2 100644 --- a/power-libperfmgr/Power.cpp +++ b/power-libperfmgr/Power.cpp @@ -54,6 +54,7 @@ static const std::map<enum CameraStreamingMode, std::string> kCamStreamingHint = {CAMERA_STREAMING_OFF, "CAMERA_STREAMING_OFF"}, {CAMERA_STREAMING, "CAMERA_STREAMING"}, {CAMERA_STREAMING_1080P, "CAMERA_STREAMING_1080P"}, + {CAMERA_STREAMING_60FPS, "CAMERA_STREAMING_60FPS"}, {CAMERA_STREAMING_4K, "CAMERA_STREAMING_4K"}, {CAMERA_STREAMING_SECURE, "CAMERA_STREAMING_SECURE"}}; @@ -81,6 +82,10 @@ Power::Power() ALOGI("Initialize CAMERA_STREAMING_1080P on"); mHintManager->DoHint("CAMERA_STREAMING_1080P"); mCameraStreamingMode = CAMERA_STREAMING_1080P; + } else if (state == "CAMERA_STREAMING_60FPS") { + ALOGI("Initialize CAMERA_STREAMING_60FPS on"); + mHintManager->DoHint("CAMERA_STREAMING_60FPS"); + mCameraStreamingMode = CAMERA_STREAMING_60FPS; } else if (state == "CAMERA_STREAMING_4K") { ALOGI("Initialize with CAMERA_STREAMING_4K on"); mHintManager->DoHint("CAMERA_STREAMING_4K"); |