Codec type from QTMovie/QTMedia/QTTrack
Codec type from QTMovie/QTMedia/QTTrack
- Subject: Codec type from QTMovie/QTMedia/QTTrack
- From: Braken <email@hidden>
- Date: Sun, 07 Aug 2005 23:59:16 +1000
I've been trawling through the QuickTime / Cocoa API and have been
unsuccessful in finding a simple way to determine the codec type of
separate tracks in QTMovie/QTTrack/QTMedia objects. I'm relatively new
to programming on Macs, and have been pretty much confined to Cocoa and
Objective-C, so finding/using the pure C functions which are the
quicktime API is quite a tedious and time consuming task.
The only way I've come across getting the codec descriptor is to get a
MovieImportComponent using GetMovieImporterForDataRef(), then getting a
ComponentDescription using GetComponentInfo() and then getting the
componentSubType of the ComponentDescription structure.
With images, that involved the extra step (after determining that it's
an image because the subType seems to end up being grip) of using
GetGraphicsImporterForDataRef() and GraphicsImportGetImageDescription()
and then getting cType from the ImageDescription structure.
What I'm wonder if there's a high level method for a QTTrack or QTMedia
object for retrieving codec type, or a single function from the
QuickTime API which I've just totally missed, or is going through and
using 4 separate functions to get 4 bytes of information the only way?
Ben
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden