Rev 5369 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5369 | Rev 6137 | ||
---|---|---|---|
1 | #ifndef __PIXLIB3_H__ |
1 | #ifndef __PIXLIB3_H__ |
2 | #define __PIXLIB3_H__ |
2 | #define __PIXLIB3_H__ |
3 | 3 | ||
4 | #include |
4 | #include |
5 | 5 | ||
6 | #define HW_BIT_BLIT (1<<0) /* BGRX blitter */ |
6 | #define HW_BIT_BLIT (1<<0) /* BGRX blitter */ |
7 | #define HW_TEX_BLIT (1<<1) /* stretch blit */ |
7 | #define HW_TEX_BLIT (1<<1) /* stretch blit */ |
8 | #define HW_VID_BLIT (1<<2) /* planar and packed video */ |
8 | #define HW_VID_BLIT (1<<2) /* planar and packed video */ |
9 | 9 | ||
10 | 10 | ||
11 | struct bitmap; |
11 | struct bitmap; |
- | 12 | struct planar; |
|
- | 13 | ||
12 | typedef struct bitmap bitmap_t; |
14 | typedef struct bitmap bitmap_t; |
- | 15 | typedef struct planar planar_t; |
|
13 | 16 | ||
14 | uint32_t pxInit(int hw); |
17 | uint32_t pxInit(int hw); |
15 | void pxFini(); |
18 | void pxFini(); |
16 | 19 | ||
17 | bitmap_t *pxCreateBitmap(uint32_t width, uint32_t height); |
20 | bitmap_t *pxCreateBitmap(uint32_t width, uint32_t height); |
18 | 21 | ||
19 | int pxDestroyBitmap(bitmap_t *bitmap); |
22 | int pxDestroyBitmap(bitmap_t *bitmap); |
- | 23 | ||
- | 24 | planar_t* pxCreatePlanar(int name, int format, |
|
- | 25 | uint32_t width, uint32_t height, |
|
- | 26 | uint32_t offset0, uint32_t pitch0, |
|
- | 27 | uint32_t offset1, uint32_t pitch1, |
|
- | 28 | uint32_t offset2, uint32_t pitch2); |
|
20 | 29 | ||
21 | void *pxLockBitmap(bitmap_t *bitmap, uint32_t *pitch); |
30 | void *pxLockBitmap(bitmap_t *bitmap, uint32_t *pitch); |
22 | 31 | ||
23 | int pxResizeBitmap(bitmap_t *bitmap, uint32_t width, uint32_t height); |
32 | int pxResizeBitmap(bitmap_t *bitmap, uint32_t width, uint32_t height); |
24 | 33 | ||
25 | int pxBlitBitmap(bitmap_t *bitmap, int dst_x, int dst_y, |
34 | int pxBlitBitmap(bitmap_t *bitmap, int dst_x, int dst_y, |
26 | uint32_t w, uint32_t h, int src_x, int src_y); |
35 | uint32_t w, uint32_t h, int src_x, int src_y); |
- | 36 | ||
- | 37 | int pxBlitPlanar(planar_t *planar, int dst_x, int dst_y, |
|
- | 38 | uint32_t w, uint32_t h, int src_x, int src_y); |
|
27 | 39 | ||
28 | int pxCreateClient(int x, int y, uint32_t width, uint32_t height); |
40 | int pxCreateClient(int x, int y, uint32_t width, uint32_t height); |
29 | 41 | ||
30 | int pxResizeClient(int x, int y, uint32_t width, uint32_t height); |
42 | int pxResizeClient(int x, int y, uint32_t width, uint32_t height); |
31 | 43 | ||
32 | #endif2)><2)>1)><1)>0)><0)> |
44 | #endif2)><2)>1)><1)>0)><0)> |