2015-01-15 06:49:40 +01:00
|
|
|
#ifndef __PIXDRIVER_H__
|
|
|
|
#define __PIXDRIVER_H__
|
|
|
|
|
|
|
|
struct pix_driver
|
|
|
|
{
|
|
|
|
uint32_t driver_caps;
|
|
|
|
bitmap_t *(*create_bitmap)(uint32_t width, uint32_t height);
|
|
|
|
int (*destroy_bitmap)(bitmap_t *bitmap);
|
|
|
|
void *(*lock_bitmap)(bitmap_t *bitmap, uint32_t *pitch);
|
|
|
|
int (*resize_bitmap)(bitmap_t *bitmap, uint32_t width, uint32_t height);
|
2016-02-04 22:44:16 +01:00
|
|
|
int (*blit_bitmap)(bitmap_t *bitmap, int dst_x, int dst_y,
|
|
|
|
uint32_t w, uint32_t h, int src_x, int src_y);
|
2015-01-15 06:49:40 +01:00
|
|
|
int (*create_client)(int x, int y, uint32_t width, uint32_t height);
|
|
|
|
int (*resize_client)(int x, int y, uint32_t width, uint32_t height);
|
|
|
|
void (*fini)(void);
|
2016-01-31 19:25:28 +01:00
|
|
|
planar_t *(*create_planar)(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);
|
2016-02-05 12:58:12 +01:00
|
|
|
int (*destroy_planar)(planar_t *planar);
|
2016-02-04 22:44:16 +01:00
|
|
|
int (*blit_planar)(planar_t *planar, int dst_x, int dst_y,
|
|
|
|
uint32_t w, uint32_t h, int src_x, int src_y);
|
2015-01-15 06:49:40 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|