| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Thanks for the snippet.
What I had in mind exactly is to print a movie's (or binary atom file) whole hierarcy of atoms. I have code that does this already, but only starting from a valid atom container instance. I have tried unsuccessfully to coax a movie to an atom container but have failed (maybe it's not really possible?).
I'll try using a handle ref to the byte data as you point out, see if I can get the atom structure from that.
Daniel Giribet
Rolf Howarth wrote:
// QTHandle should provide this constructor but doesn't, so duplicate it here._______________________________________________
public class MyQTHandleRef extends QTHandleRef
{
public MyQTHandleRef(byte[] bytes, int offset, int len) throws QTException
{
super(len, false);
setBytesAt(0, len, bytes, offset);
}
}
byte[] buffer = ...;
QTHandleRef handle = new MyQTHandleRef(buffer, 0, length);
DataRef dref = new DataRef(handle StdQTConstants.kDataRefFileExtensionTag, ".mov");
Movie movie = Movie.fromDataRef(dref, 0);
-Rolf
At 5:52 pm +0200 20/9/05, Daniel Giribet wrote:
I have done two tries to actually try coaxing a mov into a byte array (for different reasons than yours). I didn't have any success (endianess issues?) and the structures created don't resemble a movie at all.
Do not post admin requests to the list. They will be ignored.
QuickTime-java mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-java/email@hidden
This email sent to email@hidden
_______________________________________________ Do not post admin requests to the list. They will be ignored. QuickTime-java mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/quicktime-java/email@hidden This email sent to email@hidden
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.