utils.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 #               luvcview: Sdl video Usb Video Class grabber          .         #
00003 #This package work with the Logitech UVC based webcams with the mjpeg feature. #
00004 #All the decoding is in user space with the embedded jpeg decoder              #
00005 #.                                                                             #
00006 #               Copyright (C) 2005 2006Laurent Pinchart &&  Michel Xhaard      #
00007 #                                                                              #
00008 # This program is free software; you can redistribute it and/or modify         #
00009 # it under the terms of the GNU General Public License as published by         #
00010 # the Free Software Foundation; either version 2 of the License, or            #
00011 # (at your option) any later version.                                          #
00012 #                                                                              #
00013 # This program is distributed in the hope that it will be useful,              #
00014 # but WITHOUT ANY WARRANTY; without even the implied warranty of               #
00015 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                #
00016 # GNU General Public License for more details.                                 #
00017 #                                                                              #
00018 # You should have received a copy of the GNU General Public License            #
00019 # along with this program; if not, write to the Free Software                  #
00020 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    #
00021 #                                                                              #
00022 *******************************************************************************/
00023 
00024 #define ERR_NO_SOI 1
00025 #define ERR_NOT_8BIT 2
00026 #define ERR_HEIGHT_MISMATCH 3
00027 #define ERR_WIDTH_MISMATCH 4
00028 #define ERR_BAD_WIDTH_OR_HEIGHT 5
00029 #define ERR_TOO_MANY_COMPPS 6
00030 #define ERR_ILLEGAL_HV 7
00031 #define ERR_QUANT_TABLE_SELECTOR 8
00032 #define ERR_NOT_YCBCR_221111 9
00033 #define ERR_UNKNOWN_CID_IN_SCAN 10
00034 #define ERR_NOT_SEQUENTIAL_DCT 11
00035 #define ERR_WRONG_MARKER 12
00036 #define ERR_NO_EOI 13
00037 #define ERR_BAD_TABLES 14
00038 #define ERR_DEPTH_MISMATCH 15
00039 
00040 int jpeg_decode(unsigned char **pic, unsigned char *buf, int *width,
00041                 int *height);
00042 int 
00043 get_picture(unsigned char *buf,int size);
00044 int
00045 get_pictureYV2(unsigned char *buf,int width,int height);


tuw_uvc
Author(s):
autogenerated on Sun May 29 2016 02:50:28