Initial community commit
This commit is contained in:
parent
537bcbc862
commit
fc06254474
16440 changed files with 4239995 additions and 2 deletions
25
Src/Plugins/Portable/pmp_ipod/yail.h
Normal file
25
Src/Plugins/Portable/pmp_ipod/yail.h
Normal file
|
@ -0,0 +1,25 @@
|
|||
#ifndef _YAIL_H_
|
||||
#define _YAIL_H_
|
||||
|
||||
// yet another image library. Because everything else SUCKS. Fact.
|
||||
|
||||
typedef unsigned short RGB565;
|
||||
|
||||
class Image {
|
||||
public:
|
||||
Image(const ARGB32 * data, int w, int h);
|
||||
Image(const RGB565 * data, int w, int h, int format, int alignRowBytes, int alignImageBytes);
|
||||
~Image();
|
||||
void exportToRGB565(RGB565* data, int format, int alignRowBytes, int alignImageBytes) const;
|
||||
void exportToARGB32(ARGB32* data) const;
|
||||
ARGB32 * getData() {return data;}
|
||||
int getWidth() const {return width;}
|
||||
int getHeight() const {return height;}
|
||||
int get16BitSize(int alignRowBytes, int alignImageBytes) { return get16BitSize(width,height,alignRowBytes, alignImageBytes); }
|
||||
static int get16BitSize(int width, int height, int alignRowBytes, int alignImageBytes);
|
||||
protected:
|
||||
ARGB32 *data;
|
||||
int width,height;
|
||||
};
|
||||
|
||||
#endif //_YAIL_H_
|
Loading…
Add table
Add a link
Reference in a new issue