2002-03-20 21:45:03 +00:00
|
|
|
/* GStreamer
|
2001-12-22 23:27:31 +00:00
|
|
|
* Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Library General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library 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
|
|
|
|
* Library General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Library General Public
|
|
|
|
* License along with this library; if not, write to the
|
2012-11-04 00:07:18 +00:00
|
|
|
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
|
|
* Boston, MA 02110-1301, USA.
|
2001-12-22 23:27:31 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
2014-02-08 16:19:19 +00:00
|
|
|
#ifndef __GST_FLX_FMT_H__
|
2001-12-22 23:27:31 +00:00
|
|
|
#define __GST_FLX_FMT_H__
|
|
|
|
|
|
|
|
#include <gst/gst.h>
|
|
|
|
|
2006-02-19 11:57:58 +00:00
|
|
|
G_BEGIN_DECLS
|
2004-03-15 16:32:54 +00:00
|
|
|
|
|
|
|
enum Flx_TypeChunk
|
|
|
|
{
|
2005-12-11 16:43:42 +00:00
|
|
|
/* frame chunks */
|
|
|
|
FLX_PREFIX_TYPE = 0xf100,
|
|
|
|
FLX_SCRIPT_CHUNK = 0xf1e0,
|
|
|
|
FLX_FRAME_TYPE = 0xf1fa,
|
|
|
|
FLX_SEGMENT_TABLE = 0xf1fb,
|
|
|
|
FLX_HUFFMAN_TABLE = 0xf1fc,
|
|
|
|
|
|
|
|
/* sub chunks */
|
|
|
|
FLX_CEL_DATA = 3,
|
|
|
|
FLX_COLOR256 = 4,
|
|
|
|
FLX_SS2 = 7,
|
|
|
|
FLX_COLOR64 = 11,
|
|
|
|
FLX_LC = 12,
|
|
|
|
FLX_BLACK = 13,
|
|
|
|
FLX_BRUN = 15,
|
|
|
|
FLX_COPY = 16,
|
|
|
|
FLX_MINI = 18,
|
|
|
|
FLX_DTA_RUN = 25,
|
|
|
|
FLX_DTA_COPY = 26,
|
|
|
|
FLX_DTA_LC = 27,
|
|
|
|
FLX_LABEL = 31,
|
|
|
|
FLX_BMP_MASK = 32,
|
|
|
|
FLX_MLEV_MASK = 33,
|
|
|
|
FLX_SEGMENT = 34,
|
|
|
|
FLX_KEY_IMAGE = 35,
|
|
|
|
FLX_KEY_PAL = 36,
|
|
|
|
FLX_REGION = 37,
|
|
|
|
FLX_WAVE = 38,
|
|
|
|
FLX_USERSTRING = 39,
|
|
|
|
FLX_RGN_MASK = 40
|
2004-03-15 16:32:54 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
enum Flx_MagicHdr
|
2001-12-22 23:27:31 +00:00
|
|
|
{
|
2005-12-11 16:43:42 +00:00
|
|
|
FLX_MAGICHDR_FLI = 0xaf11,
|
|
|
|
FLX_MAGICHDR_FLC = 0xaf12,
|
|
|
|
FLX_MAGICHDR_FLX = 0xaf44,
|
|
|
|
FLX_MAGICHDR_HUFFBWT = 0xaf30
|
2004-03-15 16:32:54 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
typedef struct _FlxHeader
|
|
|
|
{
|
2005-12-11 16:43:42 +00:00
|
|
|
guint32 size;
|
|
|
|
guint16 type;
|
|
|
|
guint16 frames;
|
|
|
|
guint16 width,height,depth,flags;
|
|
|
|
guint32 speed;
|
|
|
|
guint16 reserved1;
|
|
|
|
/* FLC */
|
|
|
|
guint32 created,creator,updated,updater;
|
|
|
|
guint16 aspect_dx, aspect_dy;
|
|
|
|
/* EGI */
|
|
|
|
guint16 ext_flags,keyframes,totalframes;
|
|
|
|
guint32 req_memory;
|
|
|
|
guint16 max_regions,transp_num;
|
|
|
|
guchar reserved2[24];
|
|
|
|
/* FLC */
|
|
|
|
guint32 oframe1,oframe2;
|
|
|
|
guchar reserved3[40];
|
2004-03-15 16:32:54 +00:00
|
|
|
} FlxHeader;
|
2001-12-22 23:27:31 +00:00
|
|
|
#define FlxHeaderSize 128
|
|
|
|
|
2004-03-15 16:32:54 +00:00
|
|
|
typedef struct _FlxFrameChunk
|
|
|
|
{
|
2005-12-11 16:43:42 +00:00
|
|
|
guint32 size;
|
|
|
|
guint16 id;
|
2004-03-15 16:32:54 +00:00
|
|
|
} FlxFrameChunk;
|
2001-12-22 23:27:31 +00:00
|
|
|
#define FlxFrameChunkSize 6
|
|
|
|
|
2004-03-15 16:32:54 +00:00
|
|
|
typedef struct _FlxPrefixChunk
|
|
|
|
{
|
2005-12-11 16:43:42 +00:00
|
|
|
guint16 chunks;
|
|
|
|
guchar reserved[8];
|
2004-03-15 16:32:54 +00:00
|
|
|
} FlxPrefixChunk;
|
|
|
|
|
|
|
|
typedef struct _FlxSegmentTable
|
|
|
|
{
|
2005-12-11 16:43:42 +00:00
|
|
|
guint16 segments;
|
2004-03-15 16:32:54 +00:00
|
|
|
} FlxSegmentTable;
|
|
|
|
|
|
|
|
typedef struct _FlxHuffmanTable
|
|
|
|
{
|
2005-12-11 16:43:42 +00:00
|
|
|
guint16 codelength;
|
|
|
|
guint16 numcodes;
|
|
|
|
guchar reserved[6];
|
2004-03-15 16:32:54 +00:00
|
|
|
} FlxHuffmanTable;
|
|
|
|
|
|
|
|
typedef struct _FlxFrameType
|
|
|
|
{
|
2005-12-11 16:43:42 +00:00
|
|
|
guint16 chunks;
|
|
|
|
guint16 delay;
|
|
|
|
guchar reserved[6];
|
2004-03-15 16:32:54 +00:00
|
|
|
} FlxFrameType;
|
2001-12-22 23:27:31 +00:00
|
|
|
#define FlxFrameTypeSize 10
|
|
|
|
|
2006-02-19 11:57:58 +00:00
|
|
|
G_END_DECLS
|
2001-12-22 23:27:31 +00:00
|
|
|
|
2004-03-15 16:32:54 +00:00
|
|
|
#endif /* __GST_FLX_FMT_H__ */
|