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

📄 bitmap_def.h.svn-base

📁 A Flash Player with ActionScript support. Write in C and C++. It have two part, one is Player and an
💻 SVN-BASE
字号:
#ifndef _BITMAP_H_#define _BITMAP_H_#include "base_types.h"#include "swf_file_pub.h"// 定义 JPEG 文件,此 character 需配合全局的 JPEGTables 使用struct JPEGTable {    UI32                Count;    UI8                 JPEGTables[1];};struct  DefineBits      {    UI8                 CharacterType/* = CharBits*/;    UI16		CharacterID;    long		Width;    long		Height;    long		Bpl;    long		Colors;    unsigned char 	*PixelsP;		// Array of Pixels    struct RGBA		*ColormapP; 	// Array of color definitions    unsigned char 	*Alpha_bufP;	// Array of alpha values (no alpha if NULL)    long		JPEGDataLength;    UI8                 JPEGData[0];};struct DefineBitsJPEG  {    UI8                 CharacterType /*= CharBitsJPEG*/;    UI16		CharacterID;    long		Width;    long		Height;    long		Bpl;    long		Colors;    unsigned char 	*PixelsP;		// Array of Pixels    struct RGBA		*ColormapP; 	// Array of color definitions    unsigned char 	*Alpha_bufP;	// Array of alpha values (no alpha if NULL)    UI32                JPEGDataLength;    UI32                AlphaDataLength;    UI8                 JPEGData[0];    //  BitmapAlphaData 的起始位置需根据 JPEGDataLength 计算.};// 定义使用 zip 压缩的图片.struct DefineBitsLossless2      {    UI8                 CharacterType /*= CharBitsLossless*/;    UI16		CharacterID;    long		Width;    long		Height;    long		Bpl;    long		Colors;    unsigned char 	*PixelsP;		// Array of Pixels    struct RGBA		*ColormapP; 	// Array of color definitions    unsigned char 	*Alpha_bufP;	// Array of alpha values (no alpha if NULL)    UI8      		BitmapFormat;    UI16     		BitmapWidth;    UI16     		BitmapHeight;    UI8     		BitmapColorTableSize;    long    		ZlibBitmapDataLength;    UI8    		ZlibBitmapData[0];};/* * 将 in 所指向的 Bitmap 型 Character 中的 JPEG 或 ZIP 压缩的 * 图片展开成位图,再挂到 Character 上. 位图用的内存由实现方申请 */int bmp_makebmp(struct DefineCharacter* InStruct,swf_file_t *swf_p);#endif

⌨️ 快捷键说明

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