openframeworks/openFrameworks — pull request #1528 by ofTheo (2012-08-31 16:12:00+00:00)
Title: Bugfix video fixes for core: osx, win, linux, android, iphone 

Main change was:
1) *void setPixelFormat* to *bool setPixelFormat* - so a player/grabber can return whether the format requested is supported.

2) setPixelFormat and getPixelFormat to pure virtual in ofBaseVideoGrabber and ofBaseVideoPlayer. This means that player/grabbers must now implement these two methods.

3) much better checks in ofVideoPlayer and ofVideoGrabber wrappers for not setting a format while the object is in use and also for not setting formats not supported by the player/grabber implementation.

4) change to ofVideoPlayer::update to re-allocate a texture if the pixel format has changed ( unlikely though ).

I've updated all the grabbers and players listed in the title to the new requirements.
This PR should address some of the bugs we were seeing after @obviousjim QTKitPlayer / Grabber PR was merged ( #1478 )

With these changes we should also be in a better position to add video format supports to different implementations in the future.

Please don't merge this PR yet. But would be great to get people to test this on android, linux, iphone and 10.7 ( I can test win and 10.6 mac ).

@arturoc @underdoeg @bilderbuchi @julapy