I am now on a video analysis program. We have get the QT movie and
show it in a OpenGLView using Core Video(mainly based on the source
code of civideoDemo). Now we need to do pixel analysis on the frame
of the movie. I am sure that there is no problem on the video->frame
since we have done some composite filter based on the CIImage frame
we get from the movie.
It is a straight forward idea that we convert each frame into a Core
Image object using
Here currentFrame is defined by:
and then our idea is to get the pixel information using
One solution of using [[NSBitmapImageRep alloc] initWithCIImage]
failed when the program run into a Exec_Bad_Access error.
I tried another way: draw the CIImage on to a CIContext and then
render it to bitmap data:
Note that there's also other lines around that (to deal with stuff
like calling from a thread other than main), so definitely read the
entire example and see what may apply in your case. No idea on why
you were getting the EXEC_BAD_ACCESS; could be that you were also
calling things from other threads? Could be that it's not possible to
create an NSBitmapImageRep from such a data provider. After all, a
CVImageBufferRef is really an abstract type. Since you mentioned
OpenGL, your CVImageBufferRef is probably really a CVOpenGLBufferRef
You may also want to move this thread to the Quicktime developers list.
Ricky A. Sharp mailto:email@hidden
Instant Interactive(tm) http://www.instantinteractive.com
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden