Hidden Gems of Snow Leopard: IOSurface (again)

Posted by admin on Oct 10, 2009 in Mac OS X |
The QCPlugin
To extend the previous sample, I’ve now added a Quartz Composer plugin that spawns the CLI application: it’s also possible to choose at compilation time (through a #define) if the image has to be provided to QC as a GL texture or a pixel buffer.
A sample composition has been included in the code.
Notes
  • The embedded CLI application is set as a dependency for the other 2 targets in the project, and should be compiled automatically: however, in certain cases it appears that Xcode “forgets” to apply the build flags, and tries to compile in 64 bits (that fails, as Quicktime doesn’t exist in that universe). To solve this issue, compile the IOSurfaceCLI target separately.
  • A bug seems to affect Quartz Composer whenever a movie is started and stopped multiple times: the projection matrix, for some reason, isn’t reset, and the frame appears much bigger than it should. A bug report has been posted to Apple.
Other posts on the same argument:

3 Comments


[…] bit, has a new home. Enjoy! Previous posts: Hidden Gems of Snow Leopard: IOSurface (with video in) Hidden Gems of Snow Leopard: IOSurface (again) Hidden Gems of Snow Leopard: […]


 

[…] IOSurface integrates perfectly in the existing technologies! Download sample Previous posts: Hidden Gems of Snow Leopard: IOSurface (again) Hidden Gems of Snow Leopard: […]


 

[…] Hidden Gems of Snow Leopard: IOSurface Posted by admin on Sep 25, 2009 in Mac OS X […]


 

Copyright © 2024 Paolo Manna All rights reserved. Theme by Laptop Geek.