kolibrios/contrib/sdk/sources/newlib/libc/include/pixlib3.h

48 lines
1.4 KiB
C
Raw Normal View History

#ifndef __PIXLIB3_H__
#define __PIXLIB3_H__
#include <stdint.h>
#define HW_BIT_BLIT (1<<0) /* BGRX blitter */
#define HW_TEX_BLIT (1<<1) /* stretch blit */
#define HW_VID_BLIT (1<<2) /* planar and packed video */
struct bitmap;
struct planar;
typedef struct bitmap bitmap_t;
typedef struct planar planar_t;
uint32_t pxInit(int hw);
void pxFini();
bitmap_t *pxCreateBitmap(uint32_t width, uint32_t height);
int pxDestroyBitmap(bitmap_t *bitmap);
void *pxLockBitmap(bitmap_t *bitmap, uint32_t *pitch);
int pxResizeBitmap(bitmap_t *bitmap, uint32_t width, uint32_t height);
int pxBlitBitmap(bitmap_t *bitmap, int dst_x, int dst_y,
uint32_t w, uint32_t h, int src_x, int src_y);
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);
int pxDestroyPlanar(planar_t *planar);
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);
#endif