source: titan/minidlna-1.0.22/image_utils.h @ 15345

Last change on this file since 15345 was 13567, checked in by obi, 12 years ago

[titan] add minidlna-1.0.22 first step

File size: 1.4 KB
Line 
1/* Image manipulation functions
2 *
3 * Project : minidlna
4 * Website : http://sourceforge.net/projects/minidlna/
5 * Author  : Justin Maggard
6 *
7 * MiniDLNA media server
8 * Copyright (C) 2009  Justin Maggard
9 *
10 * This file is part of MiniDLNA.
11 *
12 * MiniDLNA is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License version 2 as
14 * published by the Free Software Foundation.
15 *
16 * MiniDLNA is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with MiniDLNA. If not, see <http://www.gnu.org/licenses/>.
23 */
24#include <sys/types.h>
25
26typedef u_int32_t pix;
27
28typedef struct {
29        int32_t width;
30        int32_t height;
31        pix     *buf;
32} image_s;
33
34void
35image_free(image_s *pimage);
36
37int
38image_get_jpeg_date_xmp(const char * path, char ** date);
39
40int
41image_get_jpeg_resolution(const char * path, int * width, int * height);
42
43image_s *
44image_new_from_jpeg(const char * path, int is_file, const char * ptr, int size, int scale);
45
46image_s *
47image_resize(image_s * src_image, int32_t width, int32_t height);
48
49unsigned char *
50image_save_to_jpeg_buf(image_s * pimage, int * size);
51
52int
53image_save_to_jpeg_file(image_s * pimage, const char * path);
Note: See TracBrowser for help on using the repository browser.