comparison src/video/bwindow/SDL_sysyuv.h @ 1662:782fd950bd46 SDL-1.3

Revamp of the video system in progress - adding support for multiple displays, multiple windows, and a full video mode selection API. WARNING: None of the video drivers have been updated for the new API yet! The API is still under design and very fluid. The code is now run through a consistent indent format: indent -i4 -nut -nsc -br -ce The headers are being converted to automatically generate doxygen documentation.
author Sam Lantinga <slouken@libsdl.org>
date Sun, 28 May 2006 13:04:16 +0000
parents 51038e80ae59
children 4da1ee79c9af
comparison
equal deleted inserted replaced
1661:281d3f4870e5 1662:782fd950bd46
28 /* This is the BeOS implementation of YUV video overlays */ 28 /* This is the BeOS implementation of YUV video overlays */
29 29
30 #include "SDL_video.h" 30 #include "SDL_video.h"
31 #include "SDL_lowvideo.h" 31 #include "SDL_lowvideo.h"
32 32
33 extern "C" { 33 extern "C"
34 {
34 35
35 struct private_yuvhwdata 36 struct private_yuvhwdata
36 { 37 {
37 /* FRAMEDATA* CurrentFrameData; 38 /* FRAMEDATA* CurrentFrameData;
38 FRAMEDATA* FrameData0; 39 FRAMEDATA* FrameData0;
39 FRAMEDATA* FrameData1; 40 FRAMEDATA* FrameData1;
40 PgScalerProps_t props; 41 PgScalerProps_t props;
41 PgScalerCaps_t caps; 42 PgScalerCaps_t caps;
52 long chromakey; 53 long chromakey;
53 int forcedredraw; 54 int forcedredraw;
54 unsigned long State; 55 unsigned long State;
55 long flags; 56 long flags;
56 */ 57 */
57 SDL_Surface *display; 58 SDL_Surface *display;
58 BView *bview; 59 BView *bview;
59 bool first_display; 60 bool first_display;
60 BBitmap *bbitmap; 61 BBitmap *bbitmap;
61 int locked; 62 int locked;
62 }; 63 };
63 64
64 extern BBitmap * BE_GetOverlayBitmap(BRect bounds, color_space cs); 65 extern BBitmap *BE_GetOverlayBitmap (BRect bounds, color_space cs);
65 extern SDL_Overlay* BE_CreateYUVOverlay(_THIS, int width, int height, Uint32 format, SDL_Surface* display); 66 extern SDL_Overlay *BE_CreateYUVOverlay (_THIS, int width, int height,
66 extern int BE_LockYUVOverlay(_THIS, SDL_Overlay* overlay); 67 Uint32 format,
67 extern void BE_UnlockYUVOverlay(_THIS, SDL_Overlay* overlay); 68 SDL_Surface * display);
68 extern int BE_DisplayYUVOverlay(_THIS, SDL_Overlay* overlay, SDL_Rect* src, SDL_Rect* dst); 69 extern int BE_LockYUVOverlay (_THIS, SDL_Overlay * overlay);
69 extern void BE_FreeYUVOverlay(_THIS, SDL_Overlay* overlay); 70 extern void BE_UnlockYUVOverlay (_THIS, SDL_Overlay * overlay);
71 extern int BE_DisplayYUVOverlay (_THIS, SDL_Overlay * overlay,
72 SDL_Rect * src, SDL_Rect * dst);
73 extern void BE_FreeYUVOverlay (_THIS, SDL_Overlay * overlay);
70 74
71 }; 75 };
72 76
73 #endif /* __SDL_PH_YUV_H__ */ 77 #endif /* __SDL_PH_YUV_H__ */
78 /* vi: set ts=4 sw=4 expandtab: */