From 9903589eacc655481acebc5b85632b3b84418bc9 Mon Sep 17 00:00:00 2001 From: Lajos Molnar Date: Fri, 26 Jun 2015 15:40:37 -0700 Subject: stagefright: allow controlling experiments from property Bug: 20894667 Change-Id: Icb2209e12ed6a1820b8f33626ca02aabcff03321 --- include/media/stagefright/foundation/ADebug.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'include') 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: // [:][,[:]...] // - 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 -- cgit v1.1