?? cms_mmsjpeg.h
字號:
/**************************************************************************
Copyright (c) 2001-2002 MobileSoft Corporation All Rights Reserved.
Environment: Windows 2000
Created: 20:5:2003 8:48
Filename: CmsJpegLib.h
Author: teng yong
E_Mail: teng.yong@sohu.com/yongt@moiblesoft.com.cn
Declare:
This document contains information proprietary to MobileSoft Technology
(Nanjing),Corp. Transmittal, receipt, or possession of this document
does not express,license, or imply any rights to use, sell, design, or
manufacture from this information. No reproduction, publication, or
disclosure of this information,in whole or in part, shall be made without
prior written authorization from an officer of MobileSoft Technology
(NanJing) Corp.
Abstract: Jpeg api function
Modify records:
Who When Where For What Status
TengYong 15:10 NanJing Create Finished
**************************************************************************/
#ifndef CmsJpegLib_h_
#define CmsJpegLib_h_
typedef int (*jpegdrawproc)(unsigned char *, int,int,int,int,int,double);//callback used to jpeg draw
/********************************************************************
int GetJpegInfo(char *filename,int screenwidth,int *pwidth,int *pheight)
Description: 如果screenwidth == -1,得到實際的長度與高度;否則得到壓縮
后的長度與高度;
Param : (IN)filename; Jpeg文件名稱:
(IN)screenwidth;顯示屏幕的寬度;
(OUT)pwidth; 圖片寬度;
(OUT)pheight; 圖片高度;
Return : 0; if OK;
-1;if Error. pwidth == NULL || pheight == NULL
|| screenwidth== 0 || filename == NULL;
Date : 2003-7-30
Author : 滕永; yongt@mobilesoft.com.cn
*********************************************************************/
int GetJpegInfo(char *filename,int screenwidth,int *pwidth,int *pheight);
/***************************************************************************
int DrawJpeg(char *filename,void * pDrawPixel);
Description: 顯示一幅JPEG畫形文件.
Param : (IN)filename, 待顯示的文件名稱;
(IN)pDrawPixel, 畫一行JPEG數據的回調函數;
(IN)xPosition, x方向原點坐標;
(IN)yPosition, y方向原點坐標;
Return : 0; if OK;
-1;if Error;
Date : 2003-6-9
Author : 滕永; yongt@mobilesoft.com.cn
****************************************************************************/
int DrawJpeg(char *filename,jpegdrawproc pDrawPixel,int xPosition,int yPosition,int screenwidth); // Modified by TIPrj[2005/7/20]
#endif/**************************************************************************
Copyright (c) 2001-2002 MobileSoft Corporation All Rights Reserved.
Environment: Windows 2000
Created: 20:5:2003 8:48
Filename: CmsJpegLib.h
Author: teng yong
E_Mail: teng.yong@sohu.com/yongt@moiblesoft.com.cn
Declare:
This document contains information proprietary to MobileSoft Technology
(Nanjing),Corp. Transmittal, receipt, or possession of this document
does not express,license, or imply any rights to use, sell, design, or
manufacture from this information. No reproduction, publication, or
disclosure of this information,in whole or in part, shall be made without
prior written authorization from an officer of MobileSoft Technology
(NanJing) Corp.
Abstract: Jpeg api function
Modify records:
Who When Where For What Status
TengYong 15:10 NanJing Create Finished
**************************************************************************/
#ifndef CmsJpegLib_h_
#define CmsJpegLib_h_
typedef int (*jpegdrawproc)(unsigned char *, int,int,int,int,int,double);//callback used to jpeg draw
/********************************************************************
int GetJpegInfo(char *filename,int screenwidth,int *pwidth,int *pheight)
Description: 如果screenwidth == -1,得到實際的長度與高度;否則得到壓縮
后的長度與高度;
Param : (IN)filename; Jpeg文件名稱:
(IN)screenwidth;顯示屏幕的寬度;
(OUT)pwidth; 圖片寬度;
(OUT)pheight; 圖片高度;
Return : 0; if OK;
-1;if Error. pwidth == NULL || pheight == NULL
|| screenwidth== 0 || filename == NULL;
Date : 2003-7-30
Author : 滕永; yongt@mobilesoft.com.cn
*********************************************************************/
int GetJpegInfo(char *filename,int screenwidth,int *pwidth,int *pheight);
/***************************************************************************
int DrawJpeg(char *filename,void * pDrawPixel);
Description: 顯示一幅JPEG畫形文件.
Param : (IN)filename, 待顯示的文件名稱;
(IN)pDrawPixel, 畫一行JPEG數據的回調函數;
(IN)xPosition, x方向原點坐標;
(IN)yPosition, y方向原點坐標;
Return : 0; if OK;
-1;if Error;
Date : 2003-6-9
Author : 滕永; yongt@mobilesoft.com.cn
****************************************************************************/
int DrawJpeg(char *filename,jpegdrawproc pDrawPixel,int xPosition,int yPosition,int screenwidth,int screenheightint, int iBegH,int iEndH);
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -