Re: Top/bottom scanline of image data pointer?
Re: Top/bottom scanline of image data pointer?
- Subject: Re: Top/bottom scanline of image data pointer?
- From: Steve Christensen <email@hidden>
- Date: Wed, 2 Apr 2008 21:47:33 -0700
On Apr 2, 2008, at 5:45 PM, Peter Litwinowicz wrote:
Can't find this in the docs. Using FxPlug. Rendering in software, not
hardware.
So I'm retrieving the data pointer from an FxBitmap using the dataPtr
method.
FCP seems to return a pointer to a scanline that represents the top
scanline
of pixels and Motion returns a pointer to a scanline that is the
bottom
scanline of the image. Increasing by rowbytes gives me the next
scanline
(either above or below a, as appropriate)
Can the two teams FxPlug people confirm this? (Darrin? Paul?)
Now that we are drawing into the image some geometry, the
information as to
where the dataPtr points is very important. If I missed this in
the docs,
can someone point me to where that might be?
From FxImage.h:
/*!
@enum FxImageOrigin
@constant kFxImageOrigin_BOTTOM_LEFT Right-handed "bottom-up"
coordinate system where Y
values increase upwardly.
@constant kFxImageOrigin_TOP_LEFT Left-handed "top-down" coordinate
system where Y
values increase downwardly.
@discussion Identifies the orientation of an image's coordinate
system. Images in Motion have
a bottom-left origin. Images in Final Cut have a top-left origin.
*/
enum {
kFxImageOrigin_BOTTOM_LEFT = 0,
kFxImageOrigin_TOP_LEFT = 2
};
typedef UInt32 FxImageOrigin;
This value is returned in either the origin field in the FxImageInfo
struct returned by -[FxImage imageInfo], or directly as a result of
calling -[FxImage origin].
It's also mentioned on page 6 of "FCP FxPlug Rendering Paths.pdf,"
which is part of the SDK documentation set.
steve
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Pro-apps-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden