summaryrefslogtreecommitdiffstats
path: root/cmds
diff options
context:
space:
mode:
authorJean-Michel Trivi <jmtrivi@google.com>2011-07-17 16:35:11 -0700
committerJean-Michel Trivi <jmtrivi@google.com>2011-07-18 10:57:50 -0700
commitdf57a0d6d3b0609e69ff79afa63fe44dfa91f6f5 (patch)
tree03f9b598a4e9b41242f8a6fed36a2c5a0f994d03 /cmds
parent350d9162155e1f3eab1821f5eeed762faa01f0cc (diff)
downloadframeworks_av-df57a0d6d3b0609e69ff79afa63fe44dfa91f6f5.zip
frameworks_av-df57a0d6d3b0609e69ff79afa63fe44dfa91f6f5.tar.gz
frameworks_av-df57a0d6d3b0609e69ff79afa63fe44dfa91f6f5.tar.bz2
Add option to query hardware decoders only
Add an option to OMXCodec::QueryCodecs() to filter out software codecs. Update stagefright command line tool to list the roles of codecs. Change-Id: Icddb79118c30fe13cc3aea20f340174cc082c4e0
Diffstat (limited to 'cmds')
-rw-r--r--cmds/stagefright/stagefright.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/cmds/stagefright/stagefright.cpp b/cmds/stagefright/stagefright.cpp
index 1a5b7f3..e2d40d5 100644
--- a/cmds/stagefright/stagefright.cpp
+++ b/cmds/stagefright/stagefright.cpp
@@ -803,6 +803,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) {
@@ -842,7 +843,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");
}
}