diff options
author | Jean-Michel Trivi <jmtrivi@google.com> | 2011-07-18 11:07:47 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-07-18 11:07:47 -0700 |
commit | db4d3717b4677b3239546a248dc0a7d82db4ba50 (patch) | |
tree | 31666bc44c0df4ae95bf212299c571eb3be1ed09 /cmds | |
parent | 67a124dcac0578aed94aebf451675a5f4c8a1e4e (diff) | |
parent | df57a0d6d3b0609e69ff79afa63fe44dfa91f6f5 (diff) | |
download | frameworks_av-db4d3717b4677b3239546a248dc0a7d82db4ba50.zip frameworks_av-db4d3717b4677b3239546a248dc0a7d82db4ba50.tar.gz frameworks_av-db4d3717b4677b3239546a248dc0a7d82db4ba50.tar.bz2 |
Merge "Add option to query hardware decoders only"
Diffstat (limited to 'cmds')
-rw-r--r-- | cmds/stagefright/stagefright.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/cmds/stagefright/stagefright.cpp b/cmds/stagefright/stagefright.cpp index dd1c275..b42f1c5 100644 --- a/cmds/stagefright/stagefright.cpp +++ b/cmds/stagefright/stagefright.cpp @@ -805,6 +805,7 @@ int main(int argc, char **argv) { Vector<CodecCapabilities> results; CHECK_EQ(QueryCodecs(omx, kMimeTypes[k], true, // queryDecoders + false, // hwCodecOnly &results), (status_t)OK); for (size_t i = 0; i < results.size(); ++i) { @@ -844,7 +845,12 @@ int main(int argc, char **argv) { for (List<IOMX::ComponentInfo>::iterator it = list.begin(); it != list.end(); ++it) { - printf("%s\n", (*it).mName.string()); + printf("%s\t Roles: ", (*it).mName.string()); + for (List<String8>::iterator itRoles = (*it).mRoles.begin() ; + itRoles != (*it).mRoles.end() ; ++itRoles) { + printf("%s\t", (*itRoles).string()); + } + printf("\n"); } } |