Rev 5371 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
5371 | serge | 1 | #ifndef __PIXLIB3_H__ |
2 | #define __PIXLIB3_H__ |
||
3 | |||
4 | #include |
||
5 | |||
6 | #define HW_BIT_BLIT (1<<0) /* BGRX blitter */ |
||
7 | #define HW_TEX_BLIT (1<<1) /* stretch blit */ |
||
8 | #define HW_VID_BLIT (1<<2) /* planar and packed video */ |
||
9 | |||
10 | |||
11 | struct bitmap; |
||
6115 | serge | 12 | struct planar; |
13 | |||
5371 | serge | 14 | typedef struct bitmap bitmap_t; |
6115 | serge | 15 | typedef struct planar planar_t; |
5371 | serge | 16 | |
17 | uint32_t pxInit(int hw); |
||
18 | void pxFini(); |
||
19 | |||
20 | bitmap_t *pxCreateBitmap(uint32_t width, uint32_t height); |
||
21 | |||
22 | int pxDestroyBitmap(bitmap_t *bitmap); |
||
23 | |||
6115 | serge | 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); |
||
29 | |||
5371 | serge | 30 | void *pxLockBitmap(bitmap_t *bitmap, uint32_t *pitch); |
31 | |||
32 | int pxResizeBitmap(bitmap_t *bitmap, uint32_t width, uint32_t height); |
||
33 | |||
34 | int pxBlitBitmap(bitmap_t *bitmap, int dst_x, int dst_y, |
||
35 | uint32_t w, uint32_t h, int src_x, int src_y); |
||
36 | |||
37 | int pxCreateClient(int x, int y, uint32_t width, uint32_t height); |
||
38 | |||
39 | int pxResizeClient(int x, int y, uint32_t width, uint32_t height); |
||
40 | |||
41 | #endif2)><2)>1)><1)>0)><0)> |
||
42 |