📄 pngreader.h
字号:
/***************************************************************************
PNGReader.h - An PNG decoder
---------
begin : Tue Feb 07 2006
copyright : (C) 2003-2006 by DigitalAirways
email : info@digitalairways.com
***************************************************************************/
/*
* Copyright (c) 2005-2006 DigitalAirways, sarl. All Rights Reserved.
*
* This software is the confidential and proprietary information of
* DigitalAirways, sarl. ("Confidential Information"). You shall not
* disclose such Confidential Information and shall use it only in
* accordance with the terms of the license agreement you entered into
* with DigitalAirways.
* A copy of this license is included in the licence.txt file included
* on this software package.
*
*/
#ifndef _PNGREADER_H_
#define _PNGREADER_H_
#include "EB_PFWGraphics.h"
struct PngHuffTree
{
unsigned short index_zero;
unsigned short index_one;
unsigned int node_data;
};
/*****************************************************************************
* Global functions
******************************************************************************/
#ifdef __cplusplus
extern "C" {
#endif
/*
* Creates a 32bit buffer from a bloc of data
*/
void decodePNGImage(unsigned char* data, int dataLen, unsigned char** buffer, int *w, int *h);
/*
* Return non zero if the bloc of data seems to be a valid PNG file
*/
int isValidPNGImage(unsigned char* data, int dataLen);
/*
* Creates a PFWGraphics from a bloc of data
*/
void readPNGImage(PFWGraphics* g , unsigned char* data, int dataLen);
#ifdef __cplusplus
}
#endif
#endif // ndef _PNGREADER_H_
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -