00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef __UTILS_HPP__
00025 #define __UTILS_HPP__
00026
00028
00029 #define ERR_NO_SOI 1
00030 #define ERR_NOT_8BIT 2
00031 #define ERR_HEIGHT_MISMATCH 3
00032 #define ERR_WIDTH_MISMATCH 4
00033 #define ERR_BAD_WIDTH_OR_HEIGHT 5
00034 #define ERR_TOO_MANY_COMPPS 6
00035 #define ERR_ILLEGAL_HV 7
00036 #define ERR_QUANT_TABLE_SELECTOR 8
00037 #define ERR_NOT_YCBCR_221111 9
00038 #define ERR_UNKNOWN_CID_IN_SCAN 10
00039 #define ERR_NOT_SEQUENTIAL_DCT 11
00040 #define ERR_WRONG_MARKER 12
00041 #define ERR_NO_EOI 13
00042 #define ERR_BAD_TABLES 14
00043 #define ERR_DEPTH_MISMATCH 15
00044
00045 int jpeg_decode(unsigned char **pic, unsigned char *buf, int *width,
00046 int *height);
00047 int
00048 get_picture(unsigned char *buf,int size);
00049 int
00050 get_pictureYV2(unsigned char *buf,int width,int height);
00051
00052 void yuyv_to_rgb24 (int width, int height, unsigned char *src, unsigned char *dst);
00053
00054 unsigned int
00055 Pyuv422torgb24(unsigned char * input_ptr, unsigned char * output_ptr, unsigned int image_width, unsigned int image_height);
00056
00057
00059
00060 #endif