Changeset 4717
- Timestamp:
- 03/23/10 20:22:31 (3 years ago)
- Files:
-
- 1 modified
-
vic/branches/cc/video/grabber-macosx.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
vic/branches/cc/video/grabber-macosx.cpp
r4703 r4717 225 225 // Don't do anything if QuickTime failed. 226 226 if (!quicktime_) return; 227 228 format(); 227 229 228 230 // start the sequencer … … 404 406 } else { 405 407 fprintf(stderr, " format() - reformat not implemented!\n"); 406 //UnlockPixels(GetGWorldPixMap(gWorld_));407 //UpdateGWorld(&gWorld_, kYUVUPixelFormat, &frameRect_, 0, NULL, 0);408 //if (!LockPixels(GetGWorldPixMap(gWorld_))) throw Exception("LockPixels");408 UnlockPixels(GetGWorldPixMap(gWorld_)); 409 UpdateGWorld(&gWorld_, kYUVUPixelFormat, &frameRect_, 0, NULL, 0); 410 if (!LockPixels(GetGWorldPixMap(gWorld_))) throw Exception("LockPixels"); 409 411 } 410 412 } catch (Exception e) { … … 450 452 451 453 int MacOSXGrabber::command(int argc, const char*const* argv) { 452 // fprintf(stderr,"### MacOSXGrabber::command : argv[1] = %s\n", argv[1]);454 //fprintf(stderr,"### MacOSXGrabber::command : argv[1] = %s\n", argv[1]); 453 455 if (argc == 3) { 454 456 if (strcmp(argv[1], "decimate") == 0) { 455 457 decimate_ = atoi(argv[2]); 456 458 if (running_) { 457 stop(); 459 stop(); start(); 458 460 } 459 format();460 start();461 461 return(TCL_OK); 462 462 … … 476 476 else 477 477 input_standard_ = ntscIn; 478 479 if(running_) { 480 stop(); start(); 481 } 478 482 479 483 return(TCL_OK);
