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: Global data in Media



Hi Jean-Charles

Perhaps a custom media track, synced to each frame is the right way to go?
(Something like the timecode track.)
I am looking into a similar possibility.


bob.

On Sep 4, 2006, at 12:52 AM, Jean-Charles BERTIN wrote:

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

_______________________________________________ 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: 
 >Global data in Media (From: Jean-Charles BERTIN <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.