📄 imagedecode.h
字号:
/*****************************************************************************
* Copyright Statement:
* --------------------
* This software is protected by Copyright and the information contained
* herein is confidential. The software may not be copied and the information
* contained herein may not be used or disclosed except with the written
* permission of MediaTek Inc. (C) 2005
*
* BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
* THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
* RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
* AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
* NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
* SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
* SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
* THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
* NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
* SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
*
* BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
* LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
* AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
* OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
* MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
*
* THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
* WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
* LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
* RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
* THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
*
*****************************************************************************/
/*******************************************************************************
* Filename:
* ---------
* imageDecode.h
*
* Project:
* --------
* MAUI
*
* Description:
* ------------
*
*
* Author:
* -------
*
*
*==============================================================================
* HISTORY
* Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
*------------------------------------------------------------------------------
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
*------------------------------------------------------------------------------
* Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
*==============================================================================
*******************************************************************************/
/*
* @(#)imageDecode.h 1.14 02/07/24 @(#)
*
* Copyright (c) 1999-2002 Sun Microsystems, Inc. All rights reserved.
* PROPRIETARY/CONFIDENTIAL
* Use is subject to license terms.
*/
typedef unsigned char uchar;
typedef struct _ids {
/* pointer to device specific image struct */
void *ptr;
void (*reset)(struct _ids *self);
long (*getpos)(struct _ids *self);
void (*seek)(struct _ids *self, long pos);
int (*getByte)(struct _ids *self);
int (*getBytes)(struct _ids *self, uchar *buf, int bufsize);
void (*skip)(struct _ids *self, int numBytes);
void (*done)(struct _ids *self);
} imageSrcData, *imageSrcPtr;
typedef struct _idd {
int depth;
/* pointer to device specific image struct */
void *ptr;
void (*setColormap)(struct _idd *self, long *map, int length);
int (*setSize)(struct _idd *self, int width, int height);
void (*setPixel)(struct _idd *self, int x, int y, uchar a, uchar b, uchar c);
void (*sendPixels)(struct _idd *self, int y, uchar *scanline, int rgb);
void (*sendPackedPixels)(struct _idd *self, int y, uchar *scanline);
void (*copyPixels)(struct _idd *self, void *sourceData);
/* may be called with invalid image data */
void* (*done)(struct _idd *self, int* width, int* height);
void (*setTransMap)(struct _idd *self, unsigned char *map, int length, int palLength);
void (*setARGBPixels)(struct _idd *self, int** imageBuf, int bufLen,int width,
int height, jboolean useAlpha);
void (*copyPixelsTransformed)(struct _idd *self, void *sourceData, int x, int y,
int width, int height, int transform);
} imageDstData, *imageDstPtr;
extern imageSrcPtr createImageSrcFromData(char **data, int offset, int len);
extern jboolean PNGdecodeImage(imageSrcPtr src, imageDstPtr dst, int type);
extern imageDstPtr LCDUIcreateImageDst(jboolean flag_mutable);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -