?? img_common.h
字號:
/*****************************************************************************
Copyright(c) 2005 Analog Devices, Inc. All Rights Reserved. This software is
proprietary and confidential to Analog Devices, Inc. and its licensors.
******************************************************************************
$RCSfile: IMG_common.h,v $
$Revision: 1.1 $
$Date: 2006/07/17 07:18:18 $
Project: JPEG IMAGE CODEC
Title: Common header file
Author(s): D.G, A.S, S.N
Revised by:
Description:
This is the commom header to be used by all modules.
References:
None
******************************************************************************
Tab Setting: 4
Target Processor: ADSP-BF5xx
Target Tools Revision: ADSP VisualDSP++ v4.0
******************************************************************************
Modification History:
====================
$Log: IMG_common.h,v $
Revision 1.1 2006/07/17 07:18:18 bmk
JPEG-MJPEG User access files
*****************************************************************************/
#ifndef INCLUDE_COMMON
#define INCLUDE_COMMON
/****************************************************************************
* #defines *
****************************************************************************/
#define SEQUENTIAL 1
#define PROGRESSIVE 2
#define LOSSLESS 3
#define EXTENDED 4
#define YUV420 1
#define YUV422 2
#define YUV444 3
#define MONOCHROME 4
#define RGB 5
#define E_SUCCESS 0
#define E_FAILURE -1
#define E_OUT_OF_MEMORY -2
#define E_TRUE 1
#define E_FALSE 0
#define E_ON 1
#define E_OFF 0
#define E_DEBUG 1
#define E_RELEASE 0
#define E_OUT_OF_RANGE (-3)
#define E_FILE_CREATE_FAIL (-4)
#define E_UNDEFINED_FLAG (-5)
#define E_FILE_READ_FAIL (-6)
#define E_FILE_OPEN_FAIL (-7)
#define E_END_OF_FILE (-8)
#define E_ERRORBASE (-100)
#define E_CANNOTINITIALIZE (E_ERRORBASE - 0)
#define E_NOINPUTBUFFER (E_ERRORBASE - 5)
#define E_INVALIDPARAMETERITEM (E_ERRORBASE - 10)
#define E_CANNOTREADHEADER (E_ERRORBASE - 20)
#define E_CANNOTREADCODINGTYPE (E_ERRORBASE - 30)
#define E_CANNOTPARSE (E_ERRORBASE - 40)
#define E_CANNOTDECODESEQUENTIAL (E_ERRORBASE - 50)
#define E_CANNOTDECODEPROGRESSIVE (E_ERRORBASE - 60)
#define E_MODENOTSUPPORTED (E_ERRORBASE - 70)
#define E_CANNOTCREATEINPUTBUFFER (E_ERRORBASE - 80)
#define E_FORMATMISMATCH (E_ERRORBASE - 90)
#define E_CANNOTDECODELOSSLESS (E_ERRORBASE - 100)
#define E_EVALUATIONLIMITREACHED (E_ERRORBASE - 110)
#define E_USER_ERROR_BASE (-1000)
#define SWAP_BYTE(x) ((x<<24) | (x>>24) | ((x&0xFF00)<<8) | ((x&0xFF0000)>>8))
/****************************************************************************
* Typedefs/Enumerations *
****************************************************************************/
typedef char int8;
typedef unsigned char uint8;
typedef short int int16;
typedef unsigned short int uint16;
typedef int int32;
typedef unsigned int uint32;
typedef float flt32;
typedef double flt64;
typedef unsigned char tBool;
typedef signed int tError;
/* Typedef for pixel - 8 bit pixel */
typedef uint8 tPixel;
#endif /* INCLUDE_COMMON */
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -