1cabdff1aSopenharmony_ci/* 2cabdff1aSopenharmony_ci * Sun Rasterfile Image Format 3cabdff1aSopenharmony_ci * Copyright (c) 2007, 2008 Ivo van Poorten 4cabdff1aSopenharmony_ci * 5cabdff1aSopenharmony_ci * This file is part of FFmpeg. 6cabdff1aSopenharmony_ci * 7cabdff1aSopenharmony_ci * FFmpeg is free software; you can redistribute it and/or 8cabdff1aSopenharmony_ci * modify it under the terms of the GNU Lesser General Public 9cabdff1aSopenharmony_ci * License as published by the Free Software Foundation; either 10cabdff1aSopenharmony_ci * version 2.1 of the License, or (at your option) any later version. 11cabdff1aSopenharmony_ci * 12cabdff1aSopenharmony_ci * FFmpeg is distributed in the hope that it will be useful, 13cabdff1aSopenharmony_ci * but WITHOUT ANY WARRANTY; without even the implied warranty of 14cabdff1aSopenharmony_ci * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15cabdff1aSopenharmony_ci * Lesser General Public License for more details. 16cabdff1aSopenharmony_ci * 17cabdff1aSopenharmony_ci * You should have received a copy of the GNU Lesser General Public 18cabdff1aSopenharmony_ci * License along with FFmpeg; if not, write to the Free Software 19cabdff1aSopenharmony_ci * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 20cabdff1aSopenharmony_ci */ 21cabdff1aSopenharmony_ci 22cabdff1aSopenharmony_ci#ifndef AVCODEC_SUNRAST_H 23cabdff1aSopenharmony_ci#define AVCODEC_SUNRAST_H 24cabdff1aSopenharmony_ci 25cabdff1aSopenharmony_ci#define RAS_MAGIC 0x59a66a95 26cabdff1aSopenharmony_ci 27cabdff1aSopenharmony_ci#define RMT_NONE 0 28cabdff1aSopenharmony_ci#define RMT_EQUAL_RGB 1 29cabdff1aSopenharmony_ci#define RMT_RAW 2 ///< the data layout of this map type is unknown 30cabdff1aSopenharmony_ci 31cabdff1aSopenharmony_ci/* The Old and Standard format types indicate that the image data is 32cabdff1aSopenharmony_ci * uncompressed. There is no difference between the two formats. */ 33cabdff1aSopenharmony_ci#define RT_OLD 0 34cabdff1aSopenharmony_ci#define RT_STANDARD 1 35cabdff1aSopenharmony_ci 36cabdff1aSopenharmony_ci/* The Byte-Encoded format type indicates that the image data is compressed 37cabdff1aSopenharmony_ci * using a run-length encoding scheme. */ 38cabdff1aSopenharmony_ci#define RT_BYTE_ENCODED 2 39cabdff1aSopenharmony_ci#define RLE_TRIGGER 0x80 40cabdff1aSopenharmony_ci 41cabdff1aSopenharmony_ci/* The RGB format type indicates that the image is uncompressed with reverse 42cabdff1aSopenharmony_ci * component order from Old and Standard (RGB vs BGR). */ 43cabdff1aSopenharmony_ci#define RT_FORMAT_RGB 3 44cabdff1aSopenharmony_ci 45cabdff1aSopenharmony_ci/* The TIFF and IFF format types indicate that the raster file was originally 46cabdff1aSopenharmony_ci * converted from either of these file formats. We do not have any samples or 47cabdff1aSopenharmony_ci * documentation of the format details. */ 48cabdff1aSopenharmony_ci#define RT_FORMAT_TIFF 4 49cabdff1aSopenharmony_ci#define RT_FORMAT_IFF 5 50cabdff1aSopenharmony_ci 51cabdff1aSopenharmony_ci/* The Experimental format type is implementation-specific and is generally an 52cabdff1aSopenharmony_ci * indication that the image file does not conform to the Sun Raster file 53cabdff1aSopenharmony_ci * format specification. */ 54cabdff1aSopenharmony_ci#define RT_EXPERIMENTAL 0xffff 55cabdff1aSopenharmony_ci 56cabdff1aSopenharmony_ci#endif /* AVCODEC_SUNRAST_H */ 57