diff options
author | Martin Liu <liumartin@google.com> | 2019-04-02 12:01:29 +0800 |
---|---|---|
committer | Martin Liu <liumartin@google.com> | 2019-04-03 10:01:34 +0800 |
commit | 2273ac5b214245547cbec480706ba0dc24bc5931 (patch) | |
tree | 186e7ca3dd0a0ad8ea51129dc65b98281d295e59 /power-libperfmgr/CameraMode.h | |
parent | 161280fd42fa96fc7576ff061059a390020c682a (diff) | |
download | pixel-2273ac5b214245547cbec480706ba0dc24bc5931.tar.gz |
PowerHAL: support more camera streaming modes
This patch extend camera streaming to normal
preview, 1080p and 4K recording cases.
Bug: 116854288
Bug: 129495482
Test: boot and function test
Change-Id: Ieea9976a1a48fb4580008a7bbd624b1e5167bad1
Diffstat (limited to 'power-libperfmgr/CameraMode.h')
-rw-r--r-- | power-libperfmgr/CameraMode.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/power-libperfmgr/CameraMode.h b/power-libperfmgr/CameraMode.h new file mode 100644 index 00000000..6558ce8c --- /dev/null +++ b/power-libperfmgr/CameraMode.h @@ -0,0 +1,28 @@ +/* + * Copyright (C) 2018 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef POWER_LIBPERFMGR_CAMERAMODE_H_ +#define POWER_LIBPERFMGR_CAMERAMODE_H_ + +enum CameraStreamingMode { + CAMERA_STREAMING_OFF = 0, + CAMERA_STREAMING, + CAMERA_STREAMING_1080P, + CAMERA_STREAMING_4K, + CAMERA_STREAMING_MAX +}; + +#endif // POWER_LIBPERFMGR_CAMERAMODE_H_ |