diff options
author | Johns <johns98@gmx.net> | 2012-02-08 22:32:47 +0100 |
---|---|---|
committer | Johns <johns98@gmx.net> | 2012-02-08 22:32:47 +0100 |
commit | c3a1de8c7b07baba080951e6433fc34aed74a222 (patch) | |
tree | f2d79246ebae55ab6f9d50f61ca281c8677ee33d /softhddev.c | |
parent | 918170d00b7c372d87474ca54603a58f19fdb74a (diff) | |
download | vdr-plugin-softhddevice-c3a1de8c7b07baba080951e6433fc34aed74a222.tar.gz vdr-plugin-softhddevice-c3a1de8c7b07baba080951e6433fc34aed74a222.tar.bz2 |
jpeg_mem_dest only supported by jpeg 8.0.
Diffstat (limited to 'softhddev.c')
-rw-r--r-- | softhddev.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/softhddev.c b/softhddev.c index 33ed15b..77e026f 100644 --- a/softhddev.c +++ b/softhddev.c @@ -940,8 +940,20 @@ int PlayVideo(const uint8_t * data, int size) return size; } -#ifdef USE_JPEG +#if defined(USE_JPEG) && JPEG_LIB_VERSION >= 80 +/** +** Create a jpeg image in memory. +** +** @param image raw RGB image +** @param raw_size size of raw image +** @param size[out] size of jpeg image +** @param quality jpeg quality +** @param width number of horizontal pixels in image +** @param height number of vertical pixels in image +** +** @returns allocated jpeg image. +*/ uint8_t *CreateJpeg(uint8_t * image, int raw_size, int *size, int quality, int width, int height) { @@ -994,7 +1006,7 @@ uint8_t *CreateJpeg(uint8_t * image, int raw_size, int *size, int quality, uint8_t *GrabImage(int *size, int jpeg, int quality, int width, int height) { if (jpeg) { -#ifdef USE_JPEG +#if defined(USE_JPEG) && JPEG_LIB_VERSION >= 80 int raw_size; uint8_t *image; uint8_t *jpg_image; |