/usr/include/fenix/flic_st.h is in fenix-dev 0.92a.dfsg1-11.1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 | /*
* Fenix - Videogame compiler/interpreter
* Current release : FENIX - PROJECT 1.0 - R 0.84
* Last stable release :
* Project documentation : http://fenix.divsite.net
*
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* Copyright © 1999 José Luis Cebrián Pagüe
* Copyright © 2002 Fenix Team
*
*/
#ifndef __FLIC_ST_H
#define __FLIC_ST_H
#ifdef TARGET_MAC
#include <SDL/SDL_types.h>
#else
#include <SDL_types.h>
#endif
#ifndef __GNUC__
#define __PACKED
#define inline __inline
#else
#define __PACKED __attribute__ ((packed))
#endif
#ifdef _MSC_VER
#pragma pack(push, 1)
#endif
/* Reproducción de FLI */
/* ------------------- */
typedef struct {
Uint32 size; /* Size of FLIC including this header */
Uint16 type; /* File type 0xAF11, 0xAF12, 0xAF30, 0xAF44, ... */
Uint16 frames; /* Number of frames in first segment */
Uint16 width; /* FLIC width in pixels */
Uint16 height; /* FLIC height in pixels */
Uint16 depth; /* Bits per pixel (usually 8) */
Uint16 flags; /* Set to zero or to three */
Uint32 speed; /* Delay between frames */
Uint16 reserved1; /* Set to zero */
Uint32 created; /* Date of FLIC creation (FLC only) */
Uint32 creator; /* Serial number or compiler id (FLC only) */
Uint32 updated; /* Date of FLIC update (FLC only) */
Uint32 updater; /* Serial number (FLC only), see creator */
Uint16 aspect_dx; /* Width of square rectangle (FLC only) */
Uint16 aspect_dy; /* Height of square rectangle (FLC only) */
Uint16 ext_flags; /* EGI: flags for specific EGI extensions */
Uint16 keyframes; /* EGI: key-image frequency */
Uint16 totalframes; /* EGI: total number of frames (segments) */
Uint32 req_memory; /* EGI: maximum chunk size (uncompressed) */
Uint16 max_regions; /* EGI: max. number of regions in a CHK_REGION chunk */
Uint16 transp_num; /* EGI: number of transparent levels */
Uint8 reserved2[24]; /* Set to zero */
Uint32 oframe1; /* Offset to frame 1 (FLC only) */
Uint32 oframe2; /* Offset to frame 2 (FLC only) */
Uint8 reserved3[40]; /* Set to zero */
}
__PACKED
FLIC_HEADER;
typedef union
{
struct {
Uint32 size; /* Size of the chunk */
Uint16 type; /* Chunk type */
}
header ;
struct {
Uint32 size; /* Size of the chunk */
Uint16 type; /* Chunk type: 12 */
Uint16 first_line; /* First line */
Uint16 line_count; /* Number of lines in the chunk */
Uint8 data[0];
}
delta_fli ;
struct {
Uint32 size; /* Size of the chunk */
Uint16 type; /* Chunk type: 15, 12, etc. */
Uint8 data[0];
}
raw ;
}
FLIC_CHUNK ;
typedef struct
{
Uint32 size; /* Size of the frame, including subchunks */
Uint16 type; /* Chunk type: 0xF1FA */
Uint16 chunks; /* Number of subchunks */
Uint8 expand[8];
}
FLIC_FRAME ;
typedef struct
{
FLIC_HEADER header ;
FLIC_CHUNK * chunk ;
FLIC_FRAME * frame ;
Uint32 frame_reserved ;
GRAPH * bitmap ;
file * fp ;
int current_frame ;
int speed_ms ;
int last_frame_ms ;
int finished ;
}
FLIC ;
/* Tipos de chunk */
#define CHUNK_COLOR_256 4
#define CHUNK_COLOR_64 11
#define CHUNK_DELTA_FLI 12
#define CHUNK_DELTA_FLC 7
#define CHUNK_BLACK 13
#define CHUNK_BYTE_RUN 15
#define CHUNK_FLI_COPY 16
#define CHUNK_STAMP 18
#define CHUNK_PREFIX 0xF100
#define CHUNK_FRAME 0xF1FA
#ifdef _MSC_VER
#pragma pack(pop)
#endif
#endif
|