diff options
author | horchi <vdr@jwendel.de> | 2017-03-05 14:51:57 +0100 |
---|---|---|
committer | horchi <vdr@jwendel.de> | 2017-03-05 14:51:57 +0100 |
commit | 5eacf5bf36ddbac082a9e40a2bcdfd0f04fd3f9f (patch) | |
tree | 392875cb707b94aaba9d8941113eae35efaf2ec2 /lib/imgtools.h | |
download | vdr-plugin-epg2vdr-5eacf5bf36ddbac082a9e40a2bcdfd0f04fd3f9f.tar.gz vdr-plugin-epg2vdr-5eacf5bf36ddbac082a9e40a2bcdfd0f04fd3f9f.tar.bz2 |
Diffstat (limited to 'lib/imgtools.h')
-rw-r--r-- | lib/imgtools.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/lib/imgtools.h b/lib/imgtools.h new file mode 100644 index 0000000..315afaf --- /dev/null +++ b/lib/imgtools.h @@ -0,0 +1,31 @@ +/* + * imgtools.c + * + * See the README file for copyright information and how to reach the author. + * + */ + +#ifndef __IMGTOOLS_H +#define __IMGTOOLS_H + +#include <stdio.h> + +#define X_DISPLAY_MISSING 1 + +#include <jpeglib.h> +#include <Imlib2.h> + +#include "common.h" + +//*************************************************************************** +// Image Manipulating +//*************************************************************************** + +int fromJpeg(Imlib_Image& image, unsigned char* buffer, int size); +long toJpeg(Imlib_Image image, MemoryStruct* data, int quality); +int scaleImageToJpegBuffer(Imlib_Image image, MemoryStruct* data, int width = 0, int height = 0); +int scaleJpegBuffer(MemoryStruct* data, int width = 0, int height = 0); +const char* strImlibError(Imlib_Load_Error err); + +//*************************************************************************** +#endif // __IMGTOOLS_H |