sdl.video
Class SDLOverlay
java.lang.Object
|
+--sdl.video.SDLOverlay
- public class SDLOverlay
- extends java.lang.Object
a YUV video overlay
From SDL Library Documentation, SDL API Reference, SDL_Overlay
A SDL_Overlay is similar to a SDL_Surface except it stores a YUV overlay.
All the fields are read only, except for pixels which should be
locked before use. The format field stores the format of the overlay
which is one of the following:
SDL_YV12_OVERLAY 0x32315659 // Planar mode: Y + V + U
SDL_IYUV_OVERLAY 0x56555949 // Planar mode: Y + U + V
SDL_YUY2_OVERLAY 0x32595559 // Packed mode: Y0+U0+Y1+V0
SDL_UYVY_OVERLAY 0x59565955 // Packed mode: U0+Y0+V0+Y1
SDL_YVYU_OVERLAY 0x55595659 // Packed mode: Y0+V0+Y1+U0
More information on YUV formats can be found at
http://www.webartz.com/fourcc/indexyuv.htm.
Method Summary |
boolean |
display(int x,
int y,
int w,
int h)
|
boolean |
display(SDLRect rect)
Blit the overlay to the surface specified when it was created. |
boolean |
lock()
|
boolean |
unlock()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SDL_YV12_OVERLAY
public static final int SDL_YV12_OVERLAY
- See Also:
- Constant Field Values
SDL_IYUV_OVERLAY
public static final int SDL_IYUV_OVERLAY
- See Also:
- Constant Field Values
SDL_YUY2_OVERLAY
public static final int SDL_YUY2_OVERLAY
- See Also:
- Constant Field Values
SDL_UYVY_OVERLAY
public static final int SDL_UYVY_OVERLAY
- See Also:
- Constant Field Values
SDL_YVYU_OVERLAY
public static final int SDL_YVYU_OVERLAY
- See Also:
- Constant Field Values
SDLOverlay
public SDLOverlay(int handle)
lock
public boolean lock()
unlock
public boolean unlock()
display
public boolean display(SDLRect rect)
- Blit the overlay to the surface specified when it was created.
The SDLRect object, rect, specifies the position and size
of the destination. If the rect is a larger or smaller
than the overlay then the overlay will be scaled, this is
optimized for 2x scaling.
display
public boolean display(int x,
int y,
int w,
int h)