Width, Height, and Rowbytes in FxImage returning possible wrong values.
Width, Height, and Rowbytes in FxImage returning possible wrong values.
- Subject: Width, Height, and Rowbytes in FxImage returning possible wrong values.
- From: Brad Wright <email@hidden>
- Date: Sat, 09 Aug 2008 18:29:08 -0700
I'm seeing possibly wrong values for width and height in an FxImage.
The problem happens when I export to a DVC Pro 25 NTSC movie from an
HD timeline. My sequence is 1440x1080, and the exported image is
720x480. In the rederOutput function I retrieve the actual image
using the temporal image API.
if ([tempororalImageApi getInputBitmap:(FxBitmap **) &myBitmapImage
withInfo:(FxRenderInfo) imageInfo atTime:(double) renderInfo.frame]==NO)
{
NSLog(@"Failed to retrieve the original Bitmap image\n");
return NO;
}
Here's the values I get:
[myBitmapImage width] == 720
[myBitmapImage height] == 240
[myBitmapImage rowBytes] = 23040
The image format is Float and 32 bit wide.
23040 is the correct row bytes value for the image if it's at 1440
pixels wide.
When I try to process the image using these values in my loop, I get
only the first part of the actual image. So it appears that the
image is actually 1440 wide instead of being 720 wide. Is this a
know bug? Is there a workaround?
Brad Wright
_______________________________________________
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