I write a movie importer and image decompressor for my kind of movie
file (based on modified AVI format). I start my code with the
ElectricImage and the ExampleIPBCodec samples. My components are both
thread safe. My imdc does temporal, is async, multi-buffer aware and
base codec should call decode for all frames.
My problem is that I need to store additional data per-sample. My
first
attempt was to use image description extensions to store them (one
extension per-image-description) but I quickly noticed that the image
descriptions given in BeginBand() are always the same (only the
dataSize
is changing). So I wrote and IsImageDescriptionEquivalent()
function for
my codec which returns always false (since my extension is always
different) but then, there is one codec instance created for each
frame!
So I left that way...
My question is how could I store these data globally (in Media?) at
movie importer and then retrieve them in my codec? Is there a way
to get
the Media from which the frames are read in codecs? Actually I
store my
additional data in an array and the pointer to this array is stored
statically... oh, shame!
Thanks for the answers, regards.
--
Jean-Charles BERTIN
Tel.: (+33) (0)4.72.33.11.57
Tel. VoIP: (+33) (0)8.72.18.98.52
Skype: jcbertin
Web: <http://jc.bertin.free.fr/>
Certificate Authority: <https://djiss.dyndns.org/nuknuk-root.crt>
--
"As long as the answer is right, who cares if the question is wrong?"
_______________________________________________
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/robert_monaghan
%40mac.com
This email sent to email@hidden