Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get list of codecs avail?



Todd,

Does anyone have any sample code to get the all the available codecs on a system?

Here's a skeleton function that loops through the compressors without doing anything with them:


void ListCompressors(void){
ComponentDescription lComponentDescription = {compressorComponentType, 0, 0, 0, 0};
long lComponentCount = CountComponents(&lComponentDescription);
Component lID = 0;
Handle lName = NewHandle(1);
Handle lInfo = NewHandle(1);
Handle lIcon = NewHandle(1);
do {
lID = FindNextComponent(lID, &lComponentDescription);
if (lID){
ComponentDescription lDescriptor = {0, 0, 0, 0, 0};
GetComponentInfo(lID, &lDescriptor, lName, lInfo, lIcon);
}
} while (lID);
}


For decompressors or transcoders, replace 'compressorComponentType' with 'decompressorComponentType' or 'ImageTranscodererComponentType', respectively - and note the ratherer peculiarar spellelling of the latterer.

Andreas Wittenstein
BitJazz Inc.
http://www.bitjazz.com/sheervideo/

_______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-API mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-api/email@hidden

This email sent to email@hidden
References: 
 >How to get list of codecs avail? (From: Todd Freese <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.