Paparazzi UAS  v5.15_devel-208-g53ac83c
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
jpeg.h
Go to the documentation of this file.
1 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
2  * jpeg.c - JPEG compression for SRV-1 robot
3  * Copyright (C) 2005-2009 Surveyor Corporation
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details (www.gnu.org/licenses)
14  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
15 
21 #ifndef _CV_ENCODING_JPEG_H
22 #define _CV_ENCODING_JPEG_H
23 
24 #include "std.h"
25 #include "lib/vision/image.h"
26 
27 /* The different type of image encodings */
28 #define FOUR_ZERO_ZERO 0
29 #define FOUR_TWO_ZERO 1
30 #define FOUR_TWO_TWO 2
31 #define FOUR_FOUR_FOUR 3
32 #define RGB 4
33 
34 /* JPEG encode an image */
35 void jpeg_encode_image(struct image_t *in, struct image_t *out, uint32_t quality_factor, bool add_dri_header);
36 
37 /* Create an SVS header */
38 int jpeg_create_svs_header(unsigned char *buf, int32_t size, int w);
39 
40 #endif /* _CV_ENCODING_JPEG_H */
Definition: image.h:43
int jpeg_create_svs_header(unsigned char *buf, int32_t size, int w)
Definition: jpeg.c:44
Image helper functions like resizing, color filter, converters...
unsigned long uint32_t
Definition: types.h:18
signed long int32_t
Definition: types.h:19
void jpeg_encode_image(struct image_t *in, struct image_t *out, uint32_t quality_factor, bool add_dri_header)
Encode an YUV422 image.
Definition: jpeg.c:408