ResizeYUVOverlay

hey all,

would it be possible to add a ResizeYUVOverlay to SDL, that simply
resizes the memory of the overlay source. It would be the same as a
FreeYUVOverlay followed by a CreateYUVOverlay with the difference that
it can not change the format, just the width and height of the overlay
"image". As optimization one could that remove the XvUngrabPort.

I will make a test implementation to see if it removes my flicker
problem when i do a FreeYUVOverlay followed by a CreateYUVOverlay.

  • Erwin

hey all,

would it be possible to add a ResizeYUVOverlay to SDL, that simply
resizes the memory of the overlay source. It would be the same as a
FreeYUVOverlay followed by a CreateYUVOverlay with the difference that
it can not change the format, just the width and height of the overlay
"image". As optimization one could that remove the XvUngrabPort.

Sure, a patch for 1.3 is welcome. If you can provide implementations for
the other platforms, that would be groovy. :slight_smile:

-Sam Lantinga, Senior Software Engineer, Blizzard Entertainment

Well the most simple “implementation” would be a call to FreeYUVOverlay
followed by one to CreateYUVOverlay, so the API should be implementable
on any platform.

  • ErwinOn Sat, 2006-03-11 at 14:55 -0800, Sam Lantinga wrote:

hey all,

would it be possible to add a ResizeYUVOverlay to SDL, that simply
resizes the memory of the overlay source. It would be the same as a
FreeYUVOverlay followed by a CreateYUVOverlay with the difference that
it can not change the format, just the width and height of the overlay
"image". As optimization one could that remove the XvUngrabPort.

Sure, a patch for 1.3 is welcome. If you can provide implementations for
the other platforms, that would be groovy. :slight_smile: