[Gridflow-cvs] [svn] commit: r5549 - /trunk/src/quicktimecamera.cxx

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Mon Apr 26 22:01:02 EDT 2010


Author: pboivin
Date: Mon Apr 26 22:01:02 2010
New Revision: 5549

Log:
[#io.quicktimecamera] make colorspace rgb the default

Modified:
    trunk/src/quicktimecamera.cxx

Modified: trunk/src/quicktimecamera.cxx
==============================================================================
--- trunk/src/quicktimecamera.cxx (original)
+++ trunk/src/quicktimecamera.cxx Mon Apr 26 22:01:02 2010
@@ -196,7 +196,7 @@
   P<BitPacking> bit_packing3;
   \constructor (t_symbol *mode, int device) {
 	dim = new Dim(240,320,4);
-	_0_colorspace(0,0,gensym("rgba"));
+	_0_colorspace(0,0,gensym("rgb"));
 	OSErr e;
 	rect.top=rect.left=0;
 	rect.bottom=dim->v[0]; rect.right=dim->v[1];
@@ -310,7 +310,7 @@
 };
 
 \def 0 size (int height, int width) {
-	OSErr e = VDSetDigitizerRect(vdc,&rect);
+	OSErr e = VDGetDigitizerRect(vdc,&rect);
 	if (e!=noErr) RAISE("VDGetDigitizerRect error");
 	post("rect1: top=%d left=%d bottom=%d right=%d",rect.top,rect.left,rect.bottom,rect.right);
 	dim = new Dim(height,width,dim->v[2]);
@@ -318,7 +318,7 @@
 	rect.right = width;
 	post("rect2: top=%d left=%d bottom=%d right=%d",rect.top,rect.left,rect.bottom,rect.right);
 	e = VDSetDigitizerRect(vdc,&rect);
-	if (e!=noErr) RAISE("VDSetDigitizerRect error");
+	if (e!=noErr) post("VDSetDigitizerRect error");
 	e = SGSetChannelBounds(m_vc,&rect);
 	if (e!=noErr) post("could not set SG ChannelBounds");
 }



More information about the Gridflow-cvs mailing list