1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
/* clicksmart.h
*
* headers for libgphoto2/camlibs/clicksmart310
*
* Copyright (C) 2006 Theodore Kilgore <kilgota@auburn.edu>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301 USA
*/
#ifndef __CLICKSMART_H__
#define __CLICKSMART_H__
#include <gphoto2/gphoto2-port.h>
struct _CameraPrivateLibrary {
unsigned char *catalog;
int num_pics;
unsigned char full;
};
int clicksmart_init (GPPort *port, CameraPrivateLibrary *priv);
int clicksmart_get_res_setting (CameraPrivateLibrary *priv, int n);
int clicksmart_read_pic_data (CameraPrivateLibrary *priv,
GPPort *port, unsigned char **data,
int n);
int clicksmart_delete_all_pics (GPPort *port);
int clicksmart_reset (GPPort *port);
int create_jpeg_from_data (unsigned char * dst, unsigned char * src,
int qIndex, int w, int h,
unsigned char format,
int o_size, int *size,
int omit_huffman_table,
int omit_escape);
#endif
|