I've added a "frame grab" feature to QCTV, and it works fine...
except for one really weird problem (unrelated to PPC/Intel).
In FrameMovieExporter.m, in method -exportFrame:timeStamp: (bottom
of file),
1) I make a CIImage from the 'frame' variable (a CVPixelBufferRef)
2) Then I make an NSImage from the CIImage
3) Then I write out the NSImage to disk
This all works great, except when I have the video display width
set to an exact power of two: 128, 256, 512, 1024, or 2048! When I
try to make an NSImage of the frame with these widths, I get
diagonal bars (as though the frame is too large, and the scan lines
are wrapping). But all widths in between these seem to work
perfectly (e.g., 1025, etc.). What is causing this?
You should open a bug on the issue on bugreport.apple.com
Another way of creating a NSImage is through a NSBitmapImageRep,
which you create directly from the CVPixelBuffer
________________________________________________________
Pierre-Olivier Latour email@hidden
Quartz Composer Team Apple Computer, Inc.