Annotated edit history of
SDL_Overlay(3) version 1, including all changes.
View license author blame.
| Rev |
Author |
# |
Line |
| 1 |
perry |
1 |
SDL_Overlay |
| |
|
2 |
!!!SDL_Overlay |
| |
|
3 |
NAME |
| |
|
4 |
STRUCTURE DEFINITION |
| |
|
5 |
STRUCTURE DATA |
| |
|
6 |
DESCRIPTION |
| |
|
7 |
SEE ALSO |
| |
|
8 |
---- |
| |
|
9 |
!!NAME |
| |
|
10 |
|
| |
|
11 |
|
| |
|
12 |
SDL_Overlay- YUV video overlay |
| |
|
13 |
!!STRUCTURE DEFINITION |
| |
|
14 |
|
| |
|
15 |
|
| |
|
16 |
typedef struct{ |
| |
|
17 |
Uint32 format; |
| |
|
18 |
int w, h; |
| |
|
19 |
int planes; |
| |
|
20 |
Uint16 *pitches; |
| |
|
21 |
Uint8 **pixels; |
| |
|
22 |
Uint32 hw_overlay:1; |
| |
|
23 |
} SDL_Overlay; |
| |
|
24 |
!!STRUCTURE DATA |
| |
|
25 |
|
| |
|
26 |
|
| |
|
27 |
__format__ Overlay format (see below) |
| |
|
28 |
|
| |
|
29 |
|
| |
|
30 |
__w, h__ Width and height of overlay |
| |
|
31 |
|
| |
|
32 |
|
| |
|
33 |
__planes__ Number of planes in the overlay. Usually |
| |
|
34 |
either 1 or 3 |
| |
|
35 |
|
| |
|
36 |
|
| |
|
37 |
__pitches__ An array of pitches, one for each plane. |
| |
|
38 |
Pitch is the length of a row in bytes. |
| |
|
39 |
|
| |
|
40 |
|
| |
|
41 |
__pixels__ An array of pointers to teh data of each |
| |
|
42 |
plane. The overlay should be locked before these pointers |
| |
|
43 |
are used. |
| |
|
44 |
|
| |
|
45 |
|
| |
|
46 |
__hw_overlay__ This will be set to 1 if the overlay is |
| |
|
47 |
hardware accelerated. |
| |
|
48 |
!!DESCRIPTION |
| |
|
49 |
|
| |
|
50 |
|
| |
|
51 |
A __SDL_Overlay__ is similar to a __SDL_Surface__ |
| |
|
52 |
except it stores a YUV overlay. All the fields are read |
| |
|
53 |
only, except for __pixels__ which should be ''locked'' |
| |
|
54 |
before use. The __format__ field stores the format of the |
| |
|
55 |
overlay which is one of the following: |
| |
|
56 |
|
| |
|
57 |
|
| |
|
58 |
#define SDL_YV12_OVERLAY 0x32315659 /* Planar mode: Y + V + U */ |
| |
|
59 |
#define SDL_IYUV_OVERLAY 0x56555949 /* Planar mode: Y + U + V */ |
| |
|
60 |
#define SDL_YUY2_OVERLAY 0x32595559 /* Packed mode: Y0+U0+Y1+V0 */ |
| |
|
61 |
#define SDL_UYVY_OVERLAY 0x59565955 /* Packed mode: U0+Y0+V0+Y1 */ |
| |
|
62 |
#define SDL_YVYU_OVERLAY 0x55595659 /* Packed mode: Y0+V0+Y1+U0 */ |
| |
|
63 |
More information on YUV formats can be found at ''http://www.webartz.com/fourcc/indexyuv.htm (link to URL http://www.webartz.com/fourcc/indexyuv.htm)'' . |
| |
|
64 |
!!SEE ALSO |
| |
|
65 |
|
| |
|
66 |
|
| |
|
67 |
__SDL_CreateYUVOverlay__, __SDL_LockYUVOverlay__, |
| |
|
68 |
__SDL_UnlockYUVOverlay__, |
| |
|
69 |
__SDL_FreeYUVOverlay__ |
| |
|
70 |
---- |
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.