mirror of
https://projects.vdr-developer.org/git/vdr-plugin-scraper2vdr.git
synced 2023-10-19 17:58:31 +02:00
29 lines
815 B
C
29 lines
815 B
C
|
/*
|
||
|
* imgtools.c
|
||
|
*
|
||
|
* See the README file for copyright information and how to reach the author.
|
||
|
*
|
||
|
*/
|
||
|
|
||
|
#ifndef __IMGTOOLS_H
|
||
|
#define __IMGTOOLS_H
|
||
|
|
||
|
#include <stdio.h>
|
||
|
|
||
|
#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);
|
||
|
|
||
|
//***************************************************************************
|
||
|
#endif // __IMGTOOLS_H
|