unpalette.h

来自「一个基于linux下的摄像头应用程序」· C头文件 代码 · 共 30 行

H
30
字号
#ifndef _UNPALETTE_H_#define _UNPALETTE_H_/* $Id: unpalette.h,v 1.7 2002/09/28 16:00:35 dfx Exp $ */struct image;/* Converts an image from some palette into rgb24 format. * The image struct contains width and height of the image, * as well as a large enough output buffer. */typedef void unpalettizer(struct image *, unsigned char *);/* Array of all known palettes and their conversion routines */struct palette{	int val;	unpalettizer *routine;	double bpp;	/* bytes per pixel, can be something like 1.5, in which case	             * the number of input bytes must be a multiple of 2. */	int depth;	char *name;};extern struct palette palettes[];/* TODO: make this extensible with plugins? */#endif

⌨️ 快捷键说明

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