Re: Top/bottom scanline of image data pointer?
site_archiver@lists.apple.com Delivered-To: pro-apps-dev@lists.apple.com 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. Can the two teams FxPlug people confirm this? (Darrin? Paul?)
From FxImage.h: steve
Do not post admin requests to the list. They will be ignored. Pro-apps-dev mailing list (Pro-apps-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/pro-apps-dev/site_archiver%40lists.ap... On Apr 2, 2008, at 5:45 PM, Peter Litwinowicz wrote: 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) 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? /*! @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. This email sent to site_archiver@lists.apple.com
participants (1)
-
Steve Christensen