From ba97ccddd863d5f0aed2e04cf70c2ccf601f594a Mon Sep 17 00:00:00 2001 From: Pawin Vongmasa Date: Fri, 30 Mar 2018 17:12:20 -0700 Subject: Update type Attrib Test: adb shell setprop debug.stagefright.ccodec true adb shell setprop debug.stagefright.omx_default_rank 1000 adb shell killall mediaserver * Then, play videos. Bug: 64121714 Bug: 31973802 Change-Id: I805a75a3890cff68e73df9d2e3ecb1002399df61 --- media/c2/1.0/types.hal | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) (limited to 'media') diff --git a/media/c2/1.0/types.hal b/media/c2/1.0/types.hal index 8454dfb..6646a0d 100644 --- a/media/c2/1.0/types.hal +++ b/media/c2/1.0/types.hal @@ -109,8 +109,34 @@ struct ParamDescriptor { ParamIndex index; enum Attrib : uint32_t { - IS_REQUIRED = 1u << 0, - IS_PERSISTENT = 1u << 1, + /** + * Parameter is required to be specified. + */ + REQUIRED = 1u << 0, + /** + * Parameter retains its value. + */ + PERSISTENT = 1u << 1, + /** + * Parameter is strict. + */ + STRICT = 1u << 2, + /** + * Parameter is publicly read-only. + */ + READ_ONLY = 1u << 3, + /** + * Parameter must not be visible to clients. + */ + HIDDEN = 1u << 4, + /** + * Parameter must not be used by framework (other than testing). + */ + INTERNAL = 1u << 5, + /** + * Parameter is publicly constant (hence read-only). + */ + CONST = 1u << 6, }; /** Parameter attributes */ bitfield attrib; -- cgit v1.2.3