📄 color.h
字号:
#ifndef __SWFDEC_COLOR_H__#define __SWFDEC_COLOR_H__#include "swfdec_types.h"typedef unsigned int swf_color;typedef struct swfdec_gradient_struct SwfdecGradient;typedef struct swfdec_gradient_entry_struct SwfdecGradientEntry;struct swfdec_gradient_entry_struct{ int ratio; swf_color color;};struct swfdec_gradient_struct{ int n_gradients; SwfdecGradientEntry array[1];};#define SWF_COLOR_COMBINE(r,g,b,a) (((r)<<24) | ((g)<<16) | ((b)<<8) | (a))#define SWF_COLOR_R(x) (((x)>>24)&0xff)#define SWF_COLOR_G(x) (((x)>>16)&0xff)#define SWF_COLOR_B(x) (((x)>>8)&0xff)#define SWF_COLOR_A(x) ((x)&0xff)#define RGB565_COMBINE(r,g,b) (((r)&0xf8)<<8)|(((g)&0xfc)<<3)|(((b)&0xf8)>>3)#define RGB565_R(color) (((color)&0xf800)>>8)#define RGB565_G(color) (((color)&0x07e0)>>3)#define RGB565_B(color) (((color)&0x001f)<<3)unsigned int transform_color(unsigned int in, double mult[4], double add[4]);void swf_config_colorspace(SwfdecDecoder *s);int tag_func_set_background_color(SwfdecDecoder *s);#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -