Mercurial > sdl-ios-xcode
comparison src/video/bwindow/SDL_sysyuv.h @ 756:10332c6fad2e
te: Mon, 15 Dec 2003 08:25:14 -0800 PST
From: "Andrew Bachmann"
Subject: libSDL patches for beos video
I created some patches to SDL:
1. YUV overlay support
2. maintain high refresh rate when changing resolutions to a lower resolution
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 16 Dec 2003 13:04:44 +0000 |
parents | |
children | b8d311d90021 |
comparison
equal
deleted
inserted
replaced
755:b1595db396a7 | 756:10332c6fad2e |
---|---|
1 /* | |
2 SDL - Simple DirectMedia Layer | |
3 Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002 Sam Lantinga | |
4 | |
5 This library is free software; you can redistribute it and/or | |
6 modify it under the terms of the GNU Library General Public | |
7 License as published by the Free Software Foundation; either | |
8 version 2 of the License, or (at your option) any later version. | |
9 | |
10 This library is distributed in the hope that it will be useful, | |
11 but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
13 Library General Public License for more details. | |
14 | |
15 You should have received a copy of the GNU Library General Public | |
16 License along with this library; if not, write to the Free | |
17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
18 | |
19 Sam Lantinga | |
20 slouken@libsdl.org | |
21 */ | |
22 | |
23 | |
24 #ifndef __SDL_SYS_YUV_H__ | |
25 #define __SDL_SYS_YUV_H__ | |
26 | |
27 #ifdef SAVE_RCSID | |
28 static char rcsid = | |
29 "@(#) $Id$"; | |
30 #endif /* SAVE_RCSID */ | |
31 | |
32 /* This is the BeOS implementation of YUV video overlays */ | |
33 | |
34 #include "SDL_video.h" | |
35 #include "SDL_lowvideo.h" | |
36 | |
37 extern "C" { | |
38 | |
39 struct private_yuvhwdata | |
40 { | |
41 /* FRAMEDATA* CurrentFrameData; | |
42 FRAMEDATA* FrameData0; | |
43 FRAMEDATA* FrameData1; | |
44 PgScalerProps_t props; | |
45 PgScalerCaps_t caps; | |
46 PgVideoChannel_t* channel; | |
47 PhArea_t CurrentViewPort; | |
48 PhPoint_t CurrentWindowPos; | |
49 long format; | |
50 int scaler_on; | |
51 int current; | |
52 long YStride; | |
53 long VStride; | |
54 long UStride; | |
55 int ischromakey; | |
56 long chromakey; | |
57 int forcedredraw; | |
58 unsigned long State; | |
59 long flags; | |
60 */ | |
61 SDL_Surface *display; | |
62 BView *bview; | |
63 bool first_display; | |
64 BBitmap *bbitmap; | |
65 int locked; | |
66 }; | |
67 | |
68 extern BBitmap * BE_GetOverlayBitmap(BRect bounds, color_space cs); | |
69 extern SDL_Overlay* BE_CreateYUVOverlay(_THIS, int width, int height, Uint32 format, SDL_Surface* display); | |
70 extern int BE_LockYUVOverlay(_THIS, SDL_Overlay* overlay); | |
71 extern void BE_UnlockYUVOverlay(_THIS, SDL_Overlay* overlay); | |
72 extern int BE_DisplayYUVOverlay(_THIS, SDL_Overlay* overlay, SDL_Rect* dstrect); | |
73 extern void BE_FreeYUVOverlay(_THIS, SDL_Overlay* overlay); | |
74 | |
75 }; | |
76 | |
77 #endif /* __SDL_PH_YUV_H__ */ |