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

📄 cmrgbheader.h

📁 Abstract—Wireless networks in combination with image sensors open up a multitude of previously unth
💻 H
字号:
/*
 * RGB file header
 *
 * Contains the definition of an IRIS RGB FILE header
 */
#ifndef CMRGBHEADER_H
#define CMRGBHEADER_H

typedef struct {
    short int magic;		/* IRIS image file magic number = 474 */
    char storage;               /* Storage format 0 = uncompressed */
				/* 1  = RLE compression */
    char bpc;			/* # bytes per pixel channel (legally 1 or 2) */
    unsigned short int dimension;	/* # of dimensions (1,2, or 3) */
					/* 1 = single row, XSIZE long */
					/* 2 = single 2D image */
					/* 3 = multiple 2D images */
    unsigned short int xsize;	/* x size in pixels */
    unsigned short int ysize;	/* y size in pixels */
    unsigned short int zsize;	/* Number of channels: */
				/* 1 = greyscale */
				/* 3 = RGB */
				/* 4 = RGB and Alpha */
    long pixmin;		/* miminum pixel value */
    long pixmax;		/* maximum pixel value */
    char dummy[4];		/* ignored, set to 0 */
    char imagename[80];		/* Image Name: Must be null terminated */
    long colormap;		/* Color Map ID : */
				/* 0 = normal mode */
				/* 1 = dithered, 3 mits for red and green, 2 
				       for blue, obsolete */
				/* 2 = index color, obsolete */
				/* 3 = not an image but a colormap */
    char dummy2[404];		/* ignored, set to zero, pad header to 512 */
} cmRGBHeader_t;

/* function prototype */
int cmRgbHdrBuild (unsigned char *buffer_in, int buffer_in_len, unsigned char *buffer_out, int *buffer_out_len, int width, int height);

#endif

⌨️ 快捷键说明

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