- merge v0.01 --> Añadido fileselector - Añadidas fuentes de Gem y Pure Data - pix2jpg incluído en Gem. Archivos de construcción de Gem modificados. - Añadido fichero ompiling.txt con instrucciones de compilación
29 lines
836 B
Text
29 lines
836 B
Text
video-plugin with a QTKit backend
|
|
=================================
|
|
|
|
input (from cam)
|
|
QTCaptureDevice
|
|
|
|
output (to pix)
|
|
QTCaptureVideoPreviewOutput
|
|
QTCaptureDecompressedVideoOutput
|
|
|
|
|
|
see also:
|
|
getPosterFrame getFrameImageAtTime
|
|
|
|
from TechNote2138: Listing 1 How to get a CGImage for a movie frame at a given time.
|
|
<snip>
|
|
NSDictionary *dict = [NSDictionary
|
|
dictionaryWithObject:QTMovieFrameImageTypeCGImageRef
|
|
forKey:QTMovieFrameImageType];
|
|
QTTime time = [movie currentTime];
|
|
|
|
CGImageRef theImage = (CGImageRef)[movie frameImageAtTime:time
|
|
withAttributes:dict error:NULL];
|
|
</snip>
|
|
|
|
|
|
|
|
example-code using QTKit for reading images:
|
|
https://svn.blender.org/svnroot/bf-blender/trunk/blender/source/blender/quicktime/apple/qtkit_import.m
|