Final 350 project

Dependencies:   uzair Camera_LS_Y201 F7_Ethernet LCD_DISCO_F746NG NetworkAPI SDFileSystem mbed

Committer:
shoaib_ahmed
Date:
Mon Jul 31 09:16:35 2017 +0000
Revision:
0:791a779d6220
final project;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
shoaib_ahmed 0:791a779d6220 1 /*
shoaib_ahmed 0:791a779d6220 2 * cderror.h
shoaib_ahmed 0:791a779d6220 3 *
shoaib_ahmed 0:791a779d6220 4 * Copyright (C) 1994-1997, Thomas G. Lane.
shoaib_ahmed 0:791a779d6220 5 * Modified 2009 by Guido Vollbeding.
shoaib_ahmed 0:791a779d6220 6 * This file is part of the Independent JPEG Group's software.
shoaib_ahmed 0:791a779d6220 7 * For conditions of distribution and use, see the accompanying README file.
shoaib_ahmed 0:791a779d6220 8 *
shoaib_ahmed 0:791a779d6220 9 * This file defines the error and message codes for the cjpeg/djpeg
shoaib_ahmed 0:791a779d6220 10 * applications. These strings are not needed as part of the JPEG library
shoaib_ahmed 0:791a779d6220 11 * proper.
shoaib_ahmed 0:791a779d6220 12 * Edit this file to add new codes, or to translate the message strings to
shoaib_ahmed 0:791a779d6220 13 * some other language.
shoaib_ahmed 0:791a779d6220 14 */
shoaib_ahmed 0:791a779d6220 15
shoaib_ahmed 0:791a779d6220 16 /*
shoaib_ahmed 0:791a779d6220 17 * To define the enum list of message codes, include this file without
shoaib_ahmed 0:791a779d6220 18 * defining macro JMESSAGE. To create a message string table, include it
shoaib_ahmed 0:791a779d6220 19 * again with a suitable JMESSAGE definition (see jerror.c for an example).
shoaib_ahmed 0:791a779d6220 20 */
shoaib_ahmed 0:791a779d6220 21 #ifndef JMESSAGE
shoaib_ahmed 0:791a779d6220 22 #ifndef CDERROR_H
shoaib_ahmed 0:791a779d6220 23 #define CDERROR_H
shoaib_ahmed 0:791a779d6220 24 /* First time through, define the enum list */
shoaib_ahmed 0:791a779d6220 25 #define JMAKE_ENUM_LIST
shoaib_ahmed 0:791a779d6220 26 #else
shoaib_ahmed 0:791a779d6220 27 /* Repeated inclusions of this file are no-ops unless JMESSAGE is defined */
shoaib_ahmed 0:791a779d6220 28 #define JMESSAGE(code,string)
shoaib_ahmed 0:791a779d6220 29 #endif /* CDERROR_H */
shoaib_ahmed 0:791a779d6220 30 #endif /* JMESSAGE */
shoaib_ahmed 0:791a779d6220 31
shoaib_ahmed 0:791a779d6220 32 #ifdef JMAKE_ENUM_LIST
shoaib_ahmed 0:791a779d6220 33
shoaib_ahmed 0:791a779d6220 34 typedef enum {
shoaib_ahmed 0:791a779d6220 35
shoaib_ahmed 0:791a779d6220 36 #define JMESSAGE(code,string) code ,
shoaib_ahmed 0:791a779d6220 37
shoaib_ahmed 0:791a779d6220 38 #endif /* JMAKE_ENUM_LIST */
shoaib_ahmed 0:791a779d6220 39
shoaib_ahmed 0:791a779d6220 40 JMESSAGE(JMSG_FIRSTADDONCODE=1000, NULL) /* Must be first entry! */
shoaib_ahmed 0:791a779d6220 41
shoaib_ahmed 0:791a779d6220 42 #ifdef BMP_SUPPORTED
shoaib_ahmed 0:791a779d6220 43 JMESSAGE(JERR_BMP_BADCMAP, "Unsupported BMP colormap format")
shoaib_ahmed 0:791a779d6220 44 JMESSAGE(JERR_BMP_BADDEPTH, "Only 8- and 24-bit BMP files are supported")
shoaib_ahmed 0:791a779d6220 45 JMESSAGE(JERR_BMP_BADHEADER, "Invalid BMP file: bad header length")
shoaib_ahmed 0:791a779d6220 46 JMESSAGE(JERR_BMP_BADPLANES, "Invalid BMP file: biPlanes not equal to 1")
shoaib_ahmed 0:791a779d6220 47 JMESSAGE(JERR_BMP_COLORSPACE, "BMP output must be grayscale or RGB")
shoaib_ahmed 0:791a779d6220 48 JMESSAGE(JERR_BMP_COMPRESSED, "Sorry, compressed BMPs not yet supported")
shoaib_ahmed 0:791a779d6220 49 JMESSAGE(JERR_BMP_EMPTY, "Empty BMP image")
shoaib_ahmed 0:791a779d6220 50 JMESSAGE(JERR_BMP_NOT, "Not a BMP file - does not start with BM")
shoaib_ahmed 0:791a779d6220 51 JMESSAGE(JTRC_BMP, "%ux%u 24-bit BMP image")
shoaib_ahmed 0:791a779d6220 52 JMESSAGE(JTRC_BMP_MAPPED, "%ux%u 8-bit colormapped BMP image")
shoaib_ahmed 0:791a779d6220 53 JMESSAGE(JTRC_BMP_OS2, "%ux%u 24-bit OS2 BMP image")
shoaib_ahmed 0:791a779d6220 54 JMESSAGE(JTRC_BMP_OS2_MAPPED, "%ux%u 8-bit colormapped OS2 BMP image")
shoaib_ahmed 0:791a779d6220 55 #endif /* BMP_SUPPORTED */
shoaib_ahmed 0:791a779d6220 56
shoaib_ahmed 0:791a779d6220 57 #ifdef GIF_SUPPORTED
shoaib_ahmed 0:791a779d6220 58 JMESSAGE(JERR_GIF_BUG, "GIF output got confused")
shoaib_ahmed 0:791a779d6220 59 JMESSAGE(JERR_GIF_CODESIZE, "Bogus GIF codesize %d")
shoaib_ahmed 0:791a779d6220 60 JMESSAGE(JERR_GIF_COLORSPACE, "GIF output must be grayscale or RGB")
shoaib_ahmed 0:791a779d6220 61 JMESSAGE(JERR_GIF_IMAGENOTFOUND, "Too few images in GIF file")
shoaib_ahmed 0:791a779d6220 62 JMESSAGE(JERR_GIF_NOT, "Not a GIF file")
shoaib_ahmed 0:791a779d6220 63 JMESSAGE(JTRC_GIF, "%ux%ux%d GIF image")
shoaib_ahmed 0:791a779d6220 64 JMESSAGE(JTRC_GIF_BADVERSION,
shoaib_ahmed 0:791a779d6220 65 "Warning: unexpected GIF version number '%c%c%c'")
shoaib_ahmed 0:791a779d6220 66 JMESSAGE(JTRC_GIF_EXTENSION, "Ignoring GIF extension block of type 0x%02x")
shoaib_ahmed 0:791a779d6220 67 JMESSAGE(JTRC_GIF_NONSQUARE, "Caution: nonsquare pixels in input")
shoaib_ahmed 0:791a779d6220 68 JMESSAGE(JWRN_GIF_BADDATA, "Corrupt data in GIF file")
shoaib_ahmed 0:791a779d6220 69 JMESSAGE(JWRN_GIF_CHAR, "Bogus char 0x%02x in GIF file, ignoring")
shoaib_ahmed 0:791a779d6220 70 JMESSAGE(JWRN_GIF_ENDCODE, "Premature end of GIF image")
shoaib_ahmed 0:791a779d6220 71 JMESSAGE(JWRN_GIF_NOMOREDATA, "Ran out of GIF bits")
shoaib_ahmed 0:791a779d6220 72 #endif /* GIF_SUPPORTED */
shoaib_ahmed 0:791a779d6220 73
shoaib_ahmed 0:791a779d6220 74 #ifdef PPM_SUPPORTED
shoaib_ahmed 0:791a779d6220 75 JMESSAGE(JERR_PPM_COLORSPACE, "PPM output must be grayscale or RGB")
shoaib_ahmed 0:791a779d6220 76 JMESSAGE(JERR_PPM_NONNUMERIC, "Nonnumeric data in PPM file")
shoaib_ahmed 0:791a779d6220 77 JMESSAGE(JERR_PPM_NOT, "Not a PPM/PGM file")
shoaib_ahmed 0:791a779d6220 78 JMESSAGE(JTRC_PGM, "%ux%u PGM image")
shoaib_ahmed 0:791a779d6220 79 JMESSAGE(JTRC_PGM_TEXT, "%ux%u text PGM image")
shoaib_ahmed 0:791a779d6220 80 JMESSAGE(JTRC_PPM, "%ux%u PPM image")
shoaib_ahmed 0:791a779d6220 81 JMESSAGE(JTRC_PPM_TEXT, "%ux%u text PPM image")
shoaib_ahmed 0:791a779d6220 82 #endif /* PPM_SUPPORTED */
shoaib_ahmed 0:791a779d6220 83
shoaib_ahmed 0:791a779d6220 84 #ifdef RLE_SUPPORTED
shoaib_ahmed 0:791a779d6220 85 JMESSAGE(JERR_RLE_BADERROR, "Bogus error code from RLE library")
shoaib_ahmed 0:791a779d6220 86 JMESSAGE(JERR_RLE_COLORSPACE, "RLE output must be grayscale or RGB")
shoaib_ahmed 0:791a779d6220 87 JMESSAGE(JERR_RLE_DIMENSIONS, "Image dimensions (%ux%u) too large for RLE")
shoaib_ahmed 0:791a779d6220 88 JMESSAGE(JERR_RLE_EMPTY, "Empty RLE file")
shoaib_ahmed 0:791a779d6220 89 JMESSAGE(JERR_RLE_EOF, "Premature EOF in RLE header")
shoaib_ahmed 0:791a779d6220 90 JMESSAGE(JERR_RLE_MEM, "Insufficient memory for RLE header")
shoaib_ahmed 0:791a779d6220 91 JMESSAGE(JERR_RLE_NOT, "Not an RLE file")
shoaib_ahmed 0:791a779d6220 92 JMESSAGE(JERR_RLE_TOOMANYCHANNELS, "Cannot handle %d output channels for RLE")
shoaib_ahmed 0:791a779d6220 93 JMESSAGE(JERR_RLE_UNSUPPORTED, "Cannot handle this RLE setup")
shoaib_ahmed 0:791a779d6220 94 JMESSAGE(JTRC_RLE, "%ux%u full-color RLE file")
shoaib_ahmed 0:791a779d6220 95 JMESSAGE(JTRC_RLE_FULLMAP, "%ux%u full-color RLE file with map of length %d")
shoaib_ahmed 0:791a779d6220 96 JMESSAGE(JTRC_RLE_GRAY, "%ux%u grayscale RLE file")
shoaib_ahmed 0:791a779d6220 97 JMESSAGE(JTRC_RLE_MAPGRAY, "%ux%u grayscale RLE file with map of length %d")
shoaib_ahmed 0:791a779d6220 98 JMESSAGE(JTRC_RLE_MAPPED, "%ux%u colormapped RLE file with map of length %d")
shoaib_ahmed 0:791a779d6220 99 #endif /* RLE_SUPPORTED */
shoaib_ahmed 0:791a779d6220 100
shoaib_ahmed 0:791a779d6220 101 #ifdef TARGA_SUPPORTED
shoaib_ahmed 0:791a779d6220 102 JMESSAGE(JERR_TGA_BADCMAP, "Unsupported Targa colormap format")
shoaib_ahmed 0:791a779d6220 103 JMESSAGE(JERR_TGA_BADPARMS, "Invalid or unsupported Targa file")
shoaib_ahmed 0:791a779d6220 104 JMESSAGE(JERR_TGA_COLORSPACE, "Targa output must be grayscale or RGB")
shoaib_ahmed 0:791a779d6220 105 JMESSAGE(JTRC_TGA, "%ux%u RGB Targa image")
shoaib_ahmed 0:791a779d6220 106 JMESSAGE(JTRC_TGA_GRAY, "%ux%u grayscale Targa image")
shoaib_ahmed 0:791a779d6220 107 JMESSAGE(JTRC_TGA_MAPPED, "%ux%u colormapped Targa image")
shoaib_ahmed 0:791a779d6220 108 #else
shoaib_ahmed 0:791a779d6220 109 JMESSAGE(JERR_TGA_NOTCOMP, "Targa support was not compiled")
shoaib_ahmed 0:791a779d6220 110 #endif /* TARGA_SUPPORTED */
shoaib_ahmed 0:791a779d6220 111
shoaib_ahmed 0:791a779d6220 112 JMESSAGE(JERR_BAD_CMAP_FILE,
shoaib_ahmed 0:791a779d6220 113 "Color map file is invalid or of unsupported format")
shoaib_ahmed 0:791a779d6220 114 JMESSAGE(JERR_TOO_MANY_COLORS,
shoaib_ahmed 0:791a779d6220 115 "Output file format cannot handle %d colormap entries")
shoaib_ahmed 0:791a779d6220 116 JMESSAGE(JERR_UNGETC_FAILED, "ungetc failed")
shoaib_ahmed 0:791a779d6220 117 #ifdef TARGA_SUPPORTED
shoaib_ahmed 0:791a779d6220 118 JMESSAGE(JERR_UNKNOWN_FORMAT,
shoaib_ahmed 0:791a779d6220 119 "Unrecognized input file format --- perhaps you need -targa")
shoaib_ahmed 0:791a779d6220 120 #else
shoaib_ahmed 0:791a779d6220 121 JMESSAGE(JERR_UNKNOWN_FORMAT, "Unrecognized input file format")
shoaib_ahmed 0:791a779d6220 122 #endif
shoaib_ahmed 0:791a779d6220 123 JMESSAGE(JERR_UNSUPPORTED_FORMAT, "Unsupported output file format")
shoaib_ahmed 0:791a779d6220 124
shoaib_ahmed 0:791a779d6220 125 #ifdef JMAKE_ENUM_LIST
shoaib_ahmed 0:791a779d6220 126
shoaib_ahmed 0:791a779d6220 127 JMSG_LASTADDONCODE
shoaib_ahmed 0:791a779d6220 128 } ADDON_MESSAGE_CODE;
shoaib_ahmed 0:791a779d6220 129
shoaib_ahmed 0:791a779d6220 130 #undef JMAKE_ENUM_LIST
shoaib_ahmed 0:791a779d6220 131 #endif /* JMAKE_ENUM_LIST */
shoaib_ahmed 0:791a779d6220 132
shoaib_ahmed 0:791a779d6220 133 /* Zap JMESSAGE macro so that future re-inclusions do nothing by default */
shoaib_ahmed 0:791a779d6220 134 #undef JMESSAGE