From: Kartik Thakore Date: Wed, 21 Oct 2009 22:28:01 +0000 (-0400) Subject: Added last two objects (Overlay and VideoInfo) XS files for Video X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=ae2d15942b5ee719ea5bb81d2486f8d1bb3a4f21;hp=df4106bf3adcc7bfc46a5ed0bc2464008b2ec490;p=sdlgit%2FSDL_perl.git Added last two objects (Overlay and VideoInfo) XS files for Video --- diff --git a/src/Core/objects/Overlay.xs b/src/Core/objects/Overlay.xs new file mode 100644 index 0000000..0793345 --- /dev/null +++ b/src/Core/objects/Overlay.xs @@ -0,0 +1,28 @@ +#include "EXTERN.h" +#include "perl.h" +#include "XSUB.h" + +#ifndef aTHX_ +#define aTHX_ +#endif + +#include + +MODULE = SDL::Overlay PACKAGE = SDL::Overlay PREFIX = overlay_ + +=for documentation + +SDL_Overlay -- YUV video overlay + +typedef struct{ + Uint32 format; + int w, h; + int planes; + Uint16 *pitches; + Uint8 **pixels; + Uint32 hw_overlay:1; +} SDL_Overlay; +} + +=cut + diff --git a/src/Core/objects/VideoInfo.xs b/src/Core/objects/VideoInfo.xs new file mode 100644 index 0000000..55b55ec --- /dev/null +++ b/src/Core/objects/VideoInfo.xs @@ -0,0 +1,36 @@ +#include "EXTERN.h" +#include "perl.h" +#include "XSUB.h" + +#ifndef aTHX_ +#define aTHX_ +#endif + +#include + +MODULE = SDL::VideoInfo PACKAGE = SDL::VideoInfo PREFIX = videoinfo_ + +=for documentation + +SDL_VideoInfo -- Video target information + +typedef struct{ + Uint32 hw_available:1; + Uint32 wm_available:1; + Uint32 blit_hw:1; + Uint32 blit_hw_CC:1; + Uint32 blit_hw_A:1; + Uint32 blit_sw:1; + Uint32 blit_sw_CC:1; + Uint32 blit_sw_A:1; + Uint32 blit_fill:1; + Uint32 video_mem; + SDL_PixelFormat *vfmt; + int current_w; + int current_h; +} SDL_VideoInfo; + + + +=cut +