9,7 → 9,10 |
|
|
struct bitmap; |
struct planar; |
|
typedef struct bitmap bitmap_t; |
typedef struct planar planar_t; |
|
uint32_t pxInit(int hw); |
void pxFini(); |
18,6 → 21,12 |
|
int pxDestroyBitmap(bitmap_t *bitmap); |
|
planar_t* pxCreatePlanar(int name, int format, |
uint32_t width, uint32_t height, |
uint32_t offset0, uint32_t pitch0, |
uint32_t offset1, uint32_t pitch1, |
uint32_t offset2, uint32_t pitch2); |
|
void *pxLockBitmap(bitmap_t *bitmap, uint32_t *pitch); |
|
int pxResizeBitmap(bitmap_t *bitmap, uint32_t width, uint32_t height); |
25,6 → 34,9 |
int pxBlitBitmap(bitmap_t *bitmap, int dst_x, int dst_y, |
uint32_t w, uint32_t h, int src_x, int src_y); |
|
int pxBlitPlanar(planar_t *planar, int dst_x, int dst_y, |
uint32_t w, uint32_t h, int src_x, int src_y); |
|
int pxCreateClient(int x, int y, uint32_t width, uint32_t height); |
|
int pxResizeClient(int x, int y, uint32_t width, uint32_t height); |