[futurebasic] C-->FB 3/QT Helppppp...

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : May 2000 : Group Archive : Group : All Groups

From: Robert Covington <t88@...>
Date: Thu, 25 May 2000 21:56:38 -0400
I have been working on a PICTs to Movie thingie for a while, and it works
(PPC). Sort of. In that it makes a movie, but no image shows up. Some of
the info is getting passed on, but not enough or something else is busting.

I don't know if this is my problem or what, but I suspect it may be.

In the Codewarrior C headers:
struct ImageDescription {
<snip>
};
typedef struct ImageDescription ImageDescription, *ImageDescriptionPtr,
**ImageDescriptionHandle;<------These Guys!!

struct SampleDescription {
};
typedef struct SampleDescription SampleDescription, *SampleDescriptionPtr,
**SampleDescriptionHandle; <------These Guys!!



In the Quicktime call compressimage, there is a handle such as "desc" that
is to receive a formatted image description stucture, the above
ImageDescription apparently. In the AddMediaSample call, then comes the
Sdesc& handle that apparently store some of the above as well (sample
description).

I can make these records in FB 3, etc. but how to I reference them with a
handle as C does above? The calls expect a handle to a structure (record ) .

I don't know how to get pass this, and would appreciate any help.

Say I make a record:
Begin Record ImageDescription
blah blah blah
End record

Now do I have my handle from FN NewHandle, "ImageDescH"  point to that
record so that Quicktime fills it?
In the Apple C code, they DIM like,
ImageDescriptionHandle   desc

so now apparently, the C version knows that the handle is going places I
only dream of.

Thanks,

Robert Covington


>toolbox fn CompressImage(handle,@long,long,long,handle,Ptr)  = word
>`0x7006, 0xAAA3
>toolbox fn GetMaxCompressionSize(long,@long,short,long,long,long,@long) =
>word `0x7003, 0xAAA3
>toolBox fn AddMediaSample(long,Handle,long,unsigned
>long,long,handle,long,short,long) = word `0x707C,0xAAAA