Re: The Temporal Image API ignores the image depth
Re: The Temporal Image API ignores the image depth
- Subject: Re: The Temporal Image API ignores the image depth
- From: Steve Christensen <email@hidden>
- Date: Sat, 09 Aug 2008 23:49:58 -0700
I don't believe you can ask for a bit depth that is different from the "native" input image depth. If you want to do that, I believe you'll need to allocate a separate pixel buffer and use something like vImage to convert between integer and float pixels.
On Aug 9, 2008, at 7:29 PM, Brad Wright wrote: In testing with the temporal Image api, I've noticed that it ignores the image depth that you specify. If the inputImage is unsigned 8 bit YUV, you can't retrieve a floating point version of the image with the temporal API.
// Not going to get the correct format if the input image is 8 bit.
imageInfo.depth = kFxDepth_FLOAT32;
if ([tempororalImageApi getInputBitmap:(FxBitmap **) &myBitmapImage withInfo:(FxRenderInfo) imageInfo atTime:(double) renderInfo.frame]==NO) { NSLog(@"Failed to retrieve the original Bitmap image\n"); return NO; }
|
_______________________________________________
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