mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-10 11:59:58 -05:00
Initial community commit
This commit is contained in:
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_
|
Reference in New Issue
Block a user