00001 /* 00002 * Sun Rasterfile Image Format 00003 * Copyright (c) 2007, 2008 Ivo van Poorten 00004 * 00005 * This file is part of Libav. 00006 * 00007 * Libav is free software; you can redistribute it and/or 00008 * modify it under the terms of the GNU Lesser General Public 00009 * License as published by the Free Software Foundation; either 00010 * version 2.1 of the License, or (at your option) any later version. 00011 * 00012 * Libav is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 * Lesser General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU Lesser General Public 00018 * License along with Libav; if not, write to the Free Software 00019 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00020 */ 00021 00022 #ifndef AVCODEC_SUNRAST_H 00023 #define AVCODEC_SUNRAST_H 00024 00025 #define RAS_MAGIC 0x59a66a95 00026 00027 #define RMT_NONE 0 00028 #define RMT_EQUAL_RGB 1 00029 #define RMT_RAW 2 00030 00031 /* The Old and Standard format types indicate that the image data is 00032 * uncompressed. There is no difference between the two formats. */ 00033 #define RT_OLD 0 00034 #define RT_STANDARD 1 00035 00036 /* The Byte-Encoded format type indicates that the image data is compressed 00037 * using a run-length encoding scheme. */ 00038 #define RT_BYTE_ENCODED 2 00039 #define RLE_TRIGGER 0x80 00040 00041 /* The RGB format type indicates that the image is uncompressed with reverse 00042 * component order from Old and Standard (RGB vs BGR). */ 00043 #define RT_FORMAT_RGB 3 00044 00045 /* The TIFF and IFF format types indicate that the raster file was originally 00046 * converted from either of these file formats. We do not have any samples or 00047 * documentation of the format details. */ 00048 #define RT_FORMAT_TIFF 4 00049 #define RT_FORMAT_IFF 5 00050 00051 /* The Experimental format type is implementation-specific and is generally an 00052 * indication that the image file does not conform to the Sun Raster file 00053 * format specification. */ 00054 #define RT_EXPERIMENTAL 0xffff 00055 00056 #endif /* AVCODEC_SUNRAST_H */