utils.h
Go to the documentation of this file.
1 /*******************************************************************************
2 # luvcview: Sdl video Usb Video Class grabber . #
3 #This package work with the Logitech UVC based webcams with the mjpeg feature. #
4 #All the decoding is in user space with the embedded jpeg decoder #
5 #. #
6 # Copyright (C) 2005 2006Laurent Pinchart && Michel Xhaard #
7 # #
8 # This program is free software; you can redistribute it and/or modify #
9 # it under the terms of the GNU General Public License as published by #
10 # the Free Software Foundation; either version 2 of the License, or #
11 # (at your option) any later version. #
12 # #
13 # This program is distributed in the hope that it will be useful, #
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
16 # GNU General Public License for more details. #
17 # #
18 # You should have received a copy of the GNU General Public License #
19 # along with this program; if not, write to the Free Software #
20 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA #
21 # #
22 *******************************************************************************/
23 
24 #define ERR_NO_SOI 1
25 #define ERR_NOT_8BIT 2
26 #define ERR_HEIGHT_MISMATCH 3
27 #define ERR_WIDTH_MISMATCH 4
28 #define ERR_BAD_WIDTH_OR_HEIGHT 5
29 #define ERR_TOO_MANY_COMPPS 6
30 #define ERR_ILLEGAL_HV 7
31 #define ERR_QUANT_TABLE_SELECTOR 8
32 #define ERR_NOT_YCBCR_221111 9
33 #define ERR_UNKNOWN_CID_IN_SCAN 10
34 #define ERR_NOT_SEQUENTIAL_DCT 11
35 #define ERR_WRONG_MARKER 12
36 #define ERR_NO_EOI 13
37 #define ERR_BAD_TABLES 14
38 #define ERR_DEPTH_MISMATCH 15
39 
40 int jpeg_decode(unsigned char **pic, unsigned char *buf, int *width,
41  int *height);
42 int
43 get_picture(unsigned char *buf,int size);
44 int
45 get_pictureYV2(unsigned char *buf,int width,int height);
int get_pictureYV2(unsigned char *buf, int width, int height)
Definition: utils.c:1285
int get_picture(unsigned char *buf, int size)
Definition: utils.c:1254
int jpeg_decode(unsigned char **pic, unsigned char *buf, int *width, int *height)
Definition: utils.c:282


tuw_uvc
Author(s): Markus Bader
autogenerated on Mon Jun 10 2019 15:39:24