diff options
author | Mekala Natarajan <mekalan@codeaurora.org> | 2013-06-19 15:57:22 -0700 |
---|---|---|
committer | Iliyan Malchev <malchev@google.com> | 2013-06-20 09:54:28 -0700 |
commit | 501fc0f18249468d485415a3a7f892c644271e63 (patch) | |
tree | fb4db999ea79aefd440427435501ebbd7a65e717 | |
parent | 73dba5e043d44910a8cee4def742f58607fc5894 (diff) | |
download | hardware_libhardware-501fc0f18249468d485415a3a7f892c644271e63.zip hardware_libhardware-501fc0f18249468d485415a3a7f892c644271e63.tar.gz hardware_libhardware-501fc0f18249468d485415a3a7f892c644271e63.tar.bz2 |
Power: Add multimedia hints
Add hints for video encode and decode use cases. These
hints are sent when the relevant use case starts and ends.
Clients can also send metadata along with the hint to provide
context to the power HAL so that it can make more informed
decisions about how to tweak system-level parameters.
Bug: 9325608
Change-Id: I4731acbe50a7401a95ec9231c4e1a4795098fcd4
Signed-off-by: Iliyan Malchev <malchev@google.com>
-rw-r--r-- | include/hardware/power.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/hardware/power.h b/include/hardware/power.h index 6c55061..4edebc6 100644 --- a/include/hardware/power.h +++ b/include/hardware/power.h @@ -28,7 +28,6 @@ __BEGIN_DECLS #define POWER_MODULE_API_VERSION_0_1 HARDWARE_MODULE_API_VERSION(0, 1) #define POWER_MODULE_API_VERSION_0_2 HARDWARE_MODULE_API_VERSION(0, 2) - /** * The id of this module */ @@ -41,6 +40,8 @@ __BEGIN_DECLS typedef enum { POWER_HINT_VSYNC = 0x00000001, POWER_HINT_INTERACTION = 0x00000002, + POWER_HINT_VIDEO_ENCODE = 0x00000003, + POWER_HINT_VIDEO_DECODE = 0x00000004 } power_hint_t; /** |