Prepare new maemo release
[maemo-rb.git] / apps / plugins / lib / jpeg_mem.h
blob8636f702cf037918e564dd36cb8dea9596513357
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2009 by Andrew Mahone
12 * Header for the in-memory JPEG decoder.
14 * This program is free software; you can redistribute it and/or
15 * modify it under the terms of the GNU General Public License
16 * as published by the Free Software Foundation; either version 2
17 * of the License, or (at your option) any later version.
19 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
20 * KIND, either express or implied.
22 ****************************************************************************/
24 #include "plugin.h"
25 #include "resize.h"
26 #include "bmp.h"
27 #include "jpeg_common.h"
29 #ifndef _JPEG_MEM_H
30 #define _JPEG_MEM_H
32 int get_jpeg_dim_mem(unsigned char *data, unsigned long len,
33 struct dim *size);
35 int decode_jpeg_mem(unsigned char *data, unsigned long len,
36 struct bitmap *bm,
37 int maxsize,
38 int format,
39 const struct custom_format *cformat);
41 #endif /* _JPEG_MEM_H */