32 #if defined( CINDER_MAC )
33 #if ! defined( __LP64__ )
34 #include <QuickTime/QuickTime.h>
36 #include <CoreVideo/CoreVideo.h>
39 #pragma push_macro( "__STDC_CONSTANT_MACROS" )
40 #pragma push_macro( "_STDINT_H" )
41 #undef __STDC_CONSTANT_MACROS
42 #if _MSC_VER >= 1600 // VC10 or greater
48 #pragma pop_macro( "_STDINT_H" )
49 #pragma pop_macro( "__STDC_CONSTANT_MACROS" )
52 namespace cinder {
namespace qtime {
54 #if ! defined( __LP64__ )
71 static void CVPixelBufferDealloc(
void *refcon );
75 #endif // ! defined( __LP64__ )
104 #if defined( CINDER_MSW )
105 typedef std::shared_ptr<class ImageTargetGWorld> ImageTargetGWorldRef;
109 static ImageTargetGWorldRef createRef(
ImageSourceRef imageSource );
111 virtual void* getRowPointer( int32_t
row );
112 virtual void finalize();
114 ::GWorldPtr getGWorld()
const {
return mGWorld; }
120 ::PixMapHandle mPixMap;
127 #endif // defined( CINDER_MSW )
Surface8u convertCVPixelBufferToSurface(CVPixelBufferRef pixelBufferRef)
Makes a cinder::Surface form a CVPixelBufferRef, setting a proper deallocation function to free the C...
Definition: QuickTimeUtils.cpp:412
CFMutableDictionaryRef initQTVisualContextOptions(int width, int height, bool alpha)
Definition: QuickTimeUtils.cpp:117
GLsizei const GLchar ** string
Definition: GLee.h:2427
GLenum GLsizei width
Definition: GLee.h:969
void dictionarySetPixelBufferOpenGLCompatibility(CFMutableDictionaryRef dict)
Definition: QuickTimeUtils.cpp:92
size_t mRowBytes
Definition: QuickTimeUtils.h:96
GLsizei GLsizei GLenum GLenum const GLvoid * data
Definition: GLee.h:1011
Definition: ImageIo.h:151
bool dictionarySetPixelBufferSize(const unsigned int width, const unsigned int height, CFMutableDictionaryRef dict)
Definition: QuickTimeUtils.cpp:75
::CVPixelBufferRef getCvPixelBuffer() const
Definition: QuickTimeUtils.h:87
::Movie openMovieFromMemory(const void *data, size_t dataSize, const string &fileNameHint, const string &mimeTypeHint)
Definition: QuickTimeUtils.cpp:375
void convertDataToYpCbCr()
Definition: QuickTimeUtils.cpp:519
bool dictionarySetValue(CFMutableDictionaryRef dict, CFStringRef key, SInt32 value)
Definition: QuickTimeUtils.cpp:54
GLenum GLenum GLvoid * row
Definition: GLee.h:1089
static ImageTargetCvPixelBufferRef createRef(ImageSourceRef imageSource, bool convertToYpCbCr=false)
Definition: QuickTimeUtils.cpp:438
::CVPixelBufferRef mPixelBufferRef
Definition: QuickTimeUtils.h:95
Definition: QuickTimeUtils.h:79
uint8_t * mData
Definition: QuickTimeUtils.h:97
bool dictionarySetPixelBufferPixelFormatType(bool alpha, CFMutableDictionaryRef dict)
Definition: QuickTimeUtils.cpp:68
std::shared_ptr< class ImageTargetCvPixelBuffer > ImageTargetCvPixelBufferRef
Definition: QuickTimeUtils.h:77
GLenum GLsizei GLsizei height
Definition: GLee.h:1029
GLclampf GLclampf GLclampf alpha
Definition: GLee.h:951
::Movie openMovieFromUrl(const Url &url)
Definition: QuickTimeUtils.cpp:183
void convertDataToAYpCbCr()
Definition: QuickTimeUtils.cpp:538
CVPixelBufferRef createCvPixelBuffer(ImageSourceRef imageSource, bool convertToYpCbCr=false)
Creates a CVPixelBufferRef from an ImageSource. Release the result with CVPixelBufferRelease(). If convertToYpCbCr the resulting CVPixelBuffer will be in either k444YpCbCr8CodecType or k4444YpCbCrA8PixelFormat.
Definition: QuickTimeUtils.cpp:556
ImageTargetCvPixelBuffer(ImageSourceRef imageSource, bool convertToYpCbCr)
Definition: QuickTimeUtils.cpp:443
GLsizei const GLfloat * value
Definition: GLee.h:2487
virtual void finalize()
Definition: QuickTimeUtils.cpp:504
SurfaceT< uint8_t > Surface8u
8-bit image
Definition: Surface.h:493
struct __CFDictionary * CFMutableDictionaryRef
Definition: ImageTargetFileQuartz.h:30
bool mConvertToYpCbCr
Definition: QuickTimeUtils.h:98
bool dictionarySetPixelBufferOptions(unsigned int width, unsigned int height, bool alpha, CFMutableDictionaryRef *pixelBufferOptions)
Definition: QuickTimeUtils.cpp:97
bool dictionarySetPixelBufferBytesPerRowAlignment(CFMutableDictionaryRef dict)
Definition: QuickTimeUtils.cpp:85
~ImageTargetCvPixelBuffer()
Definition: QuickTimeUtils.cpp:491
std::shared_ptr< class ImageSource > ImageSourceRef
Definition: Channel.h:33
virtual void * getRowPointer(int32_t row)
Definition: QuickTimeUtils.cpp:499
::Movie openMovieFromPath(const fs::path &path)
Definition: QuickTimeUtils.cpp:210