From 501fc0f18249468d485415a3a7f892c644271e63 Mon Sep 17 00:00:00 2001 From: Mekala Natarajan Date: Wed, 19 Jun 2013 15:57:22 -0700 Subject: [PATCH] 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 --- include/hardware/power.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/hardware/power.h b/include/hardware/power.h index 6c55061c..4edebc67 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; /**