summaryrefslogtreecommitdiffstats
path: root/include/media
diff options
context:
space:
mode:
authorLajos Molnar <lajos@google.com>2015-06-26 15:40:37 -0700
committerLajos Molnar <lajos@google.com>2015-07-10 15:58:07 -0700
commit9903589eacc655481acebc5b85632b3b84418bc9 (patch)
tree687ed88adab53df8ac26fe559c2aae2448d78dea /include/media
parent14ae2c0d1aa6e32e97cbb62dabb604820e1e5152 (diff)
downloadframeworks_av-9903589eacc655481acebc5b85632b3b84418bc9.zip
frameworks_av-9903589eacc655481acebc5b85632b3b84418bc9.tar.gz
frameworks_av-9903589eacc655481acebc5b85632b3b84418bc9.tar.bz2
stagefright: allow controlling experiments from property
Bug: 20894667 Change-Id: Icb2209e12ed6a1820b8f33626ca02aabcff03321
Diffstat (limited to 'include/media')
-rw-r--r--include/media/stagefright/foundation/ADebug.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/include/media/stagefright/foundation/ADebug.h b/include/media/stagefright/foundation/ADebug.h
index 24df85a..65f415a 100644
--- a/include/media/stagefright/foundation/ADebug.h
+++ b/include/media/stagefright/foundation/ADebug.h
@@ -117,7 +117,7 @@ struct ADebug {
};
- // parse the property or string to get the debug level for a component name
+ // parse the property or string to get a long-type level for a component name
// string format is:
// <level>[:<glob>][,<level>[:<glob>]...]
// - <level> is 0-5 corresponding to ADebug::Level
@@ -125,10 +125,14 @@ struct ADebug {
// matches all components
// - string is read left-to-right, and the last matching level is returned, or
// the def if no terms matched
+ static long GetLevelFromSettingsString(
+ const char *name, const char *value, long def);
+ static long GetLevelFromProperty(
+ const char *name, const char *value, long def);
+
+ // same for ADebug::Level - performs clamping to valid debug ranges
static Level GetDebugLevelFromProperty(
const char *name, const char *propertyName, Level def = kDebugNone);
- static Level GetDebugLevelFromString(
- const char *name, const char *value, Level def = kDebugNone);
// remove redundant segments of a codec name, and return a newly allocated
// string suitable for debugging