⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jdexif.h

📁 ESS3890+SL原代码(1*16内存)
💻 H
字号:
/* Copyright 2002, ESS Technology, Inc. *//* SCCSID @(#)jdexif.h	1.2 05/06/03 *//* $Id: jdexif.h,v 1.1 2002/10/02 18:38:14 gwang Exp $ */#ifndef _JDEXIF_H_#define _JDEXIF_H_#ifndef TRUE#define TRUE	1#define FALSE	0#endif/* #define MAX_COMMENT 2000 *//* This structure is used to store jpeg file sections in memory. */typedef struct {    uchar *  Data;    int      Type;    unsigned Size;} Section_t;/* This structure stores Exif header image elements in a simple manner * Used to store camera data as extracted from the various ways that it can be * stored in an exif header */typedef struct {    /* Exif */    char CameraMake	[32];    char CameraModel	[40];    char DateTime	[20];    int  Orientation;    int  OrientationThm;#if 0    /* time_t FileDateTime; */    int   IsColor;    int   Process;    int   FlashUsed;    float FocalLength;    float ExposureTime;    float ApertureFNumber;    float Distance;    float CCDWidth;    float ExposureBias;    int   Whitebalance;    int   MeteringMode;    int   ExposureProgram;    int   ISOequivalent;    int   CompressionLevel;    /* char  Comments[MAX_COMMENT]; */#endif    /* Thumbnail */    /* unsigned char * ThumbnailPointer; */	// Pointer at the thumbnail    unsigned ThumbnailSize;		// Size of thumbnail.    int ThumbnailOffset;		// Thm SOI offset from the beginning.    /* Image */    int Components;			// Components    int Height, Width;			// Resolution: W x H    int CompressionMode;		// Compression Mode SOFn} ImageInfo_t;#define EXIT_FAILURE  1#define EXIT_SUCCESS  0void reset_exif_imageInfo();void process_EXIF (unsigned char * CharBuf, unsigned int length);int ReadJpegSections (uchar* buf, int buf_size);extern ImageInfo_t JpgImgInfo;/**************************************************************** * JPEG markers consist of one or more 0xFF bytes, followed by * a marker code byte (which is not an FF). * Here are the marker codes of interest * in this program.  (See jdmarker.c for a more complete list.) ****************************************************************/#define M_SOF0  0xC0            // Start Of Frame N#define M_SOF1  0xC1            // N indicates which compression process#define M_SOF2  0xC2            // Only SOF0-SOF2 are now in common use#define M_SOF3  0xC3#define M_SOF5  0xC5            // NB: codes C4 and CC are NOT SOF markers#define M_SOF6  0xC6#define M_SOF7  0xC7#define M_SOF9  0xC9#define M_SOF10 0xCA#define M_SOF11 0xCB#define M_SOF13 0xCD#define M_SOF14 0xCE#define M_SOF15 0xCF#define M_SOI   0xD8            // Start Of Image (beginning of datastream)#define M_EOI   0xD9            // End Of Image (end of datastream)#define M_SOS   0xDA            // Start Of Scan (begins compressed data)#define M_JFIF  0xE0            // Jfif marker#define M_EXIF  0xE1            // Exif marker#define M_COM   0xFE            // COMment #endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -