00001 /* 00002 * This software is copyrighted as noted below. It may be freely copied, 00003 * modified, and redistributed, provided that the copyright notice is 00004 * preserved on all copies. 00005 * 00006 * There is no warranty or other guarantee of fitness for this software, 00007 * it is provided solely "as is". Bug reports or fixes may be sent 00008 * to the author, who may or may not act on them as he desires. 00009 * 00010 * You may not include this software in a program or other software product 00011 * without supplying the source, or without informing the end-user that the 00012 * source is available for no extra charge. 00013 * 00014 * If you modify this software, you should include a notice giving the 00015 * name of the person performing the modification, the date of modification, 00016 * and the reason for such modification. 00017 * 00018 * Modified at BRL 10-Sept-88 by Mike Muuss to be portable to machines 00019 * such as the Cray where sizeof(short) != 2. 00020 * All use of the symbol LITTLE_ENDIAN has been removed. 00021 */ 00022 /* 00023 * Runsv.h - Definitions for Run Length Encoding. 00024 * 00025 * Author: Spencer W. Thomas 00026 * Computer Science Dept. 00027 * University of Utah 00028 * Date: Mon Aug 9 1982 00029 * Copyright (c) 1982 Spencer W. Thomas 00030 * 00031 * $Header: /cvsroot/brlcad/brlcad/include/XtndRunsv.h,v 14.2 2005/10/23 04:44:26 brlcad Exp $ 00032 */ 00033 00034 #ifndef XTNDRUNSV 00035 #define XTNDRUNSV 00036 00037 /* 00038 * Opcode definitions 00039 */ 00040 00041 #define LONG 0x40 00042 #define RSkipLinesOp 1 00043 #define RSetColorOp 2 00044 #define RSkipPixelsOp 3 00045 #define RByteDataOp 5 00046 #define RRunDataOp 6 00047 #define REOFOp 7 00048 00049 #define H_CLEARFIRST 0x1 /* clear framebuffer flag */ 00050 #define H_NO_BACKGROUND 0x2 /* if set, no bg color supplied */ 00051 #define H_ALPHA 0x4 /* if set, alpha channel (-1) present */ 00052 #define H_COMMENT 0x8 /* if set, comments present */ 00053 00054 struct XtndRsetup 00055 { 00056 char hc_xpos[2]; 00057 char hc_ypos[2]; 00058 char hc_xlen[2]; 00059 char hc_ylen[2]; 00060 char h_flags, 00061 h_ncolors, 00062 h_pixelbits, 00063 h_ncmap, 00064 h_cmaplen; 00065 }; 00066 #define SETUPSIZE ((4*2)+5) 00067 00068 /* "Old" RLE format magic numbers */ 00069 #define RMAGIC ('R' << 8) /* top half of magic number */ 00070 #define WMAGIC ('W' << 8) /* black&white rle image */ 00071 00072 #define XtndRMAGIC ((short)0xcc52) /* RLE file magic number */ 00073 00074 #endif /* XTNDRUNSV */ 00075 00076 /* 00077 * Local Variables: 00078 * mode: C 00079 * tab-width: 8 00080 * c-basic-offset: 4 00081 * indent-tabs-mode: t 00082 * End: 00083 * ex: shiftwidth=4 tabstop=8 00084 */