FLI/FLC file demuxer by Mike Melanson (melanson@pcisys.net) for more information on the .fli/.flc file format and all of its many variations, visit: http://www.compuphase.com/flic.htm. More...
#include "libavutil/intreadwrite.h"
#include "libavutil/audioconvert.h"
#include "avformat.h"
#include "internal.h"
Go to the source code of this file.
Data Structures | |
struct | FlicDemuxContext |
Defines | |
#define | FLIC_FILE_MAGIC_1 0xAF11 |
#define | FLIC_FILE_MAGIC_2 0xAF12 |
#define | FLIC_FILE_MAGIC_3 |
#define | FLIC_CHUNK_MAGIC_1 0xF1FA |
#define | FLIC_CHUNK_MAGIC_2 0xF5FA |
#define | FLIC_MC_SPEED 5 /* speed for Magic Carpet game FLIs */ |
#define | FLIC_DEFAULT_SPEED 5 /* for FLIs that have 0 speed */ |
#define | FLIC_TFTD_CHUNK_AUDIO |
#define | FLIC_TFTD_SAMPLE_RATE 22050 |
#define | FLIC_HEADER_SIZE 128 |
#define | FLIC_PREAMBLE_SIZE 6 |
Typedefs | |
typedef struct FlicDemuxContext | FlicDemuxContext |
Functions | |
static int | flic_probe (AVProbeData *p) |
static int | flic_read_header (AVFormatContext *s, AVFormatParameters *ap) |
static int | flic_read_packet (AVFormatContext *s, AVPacket *pkt) |
Variables | |
AVInputFormat | ff_flic_demuxer |
FLI/FLC file demuxer by Mike Melanson (melanson@pcisys.net) for more information on the .fli/.flc file format and all of its many variations, visit: http://www.compuphase.com/flic.htm.
This demuxer handles standard 0xAF11- and 0xAF12-type FLIs. It also handles special FLIs from the PC games "Magic Carpet" and "X-COM: Terror from the Deep".
Definition in file flic.c.
#define FLIC_CHUNK_MAGIC_1 0xF1FA |
#define FLIC_CHUNK_MAGIC_2 0xF5FA |
#define FLIC_DEFAULT_SPEED 5 /* for FLIs that have 0 speed */ |
#define FLIC_FILE_MAGIC_1 0xAF11 |
#define FLIC_FILE_MAGIC_2 0xAF12 |
#define FLIC_FILE_MAGIC_3 |
#define FLIC_HEADER_SIZE 128 |
#define FLIC_MC_SPEED 5 /* speed for Magic Carpet game FLIs */ |
#define FLIC_PREAMBLE_SIZE 6 |
#define FLIC_TFTD_CHUNK_AUDIO |
#define FLIC_TFTD_SAMPLE_RATE 22050 |
typedef struct FlicDemuxContext FlicDemuxContext |
static int flic_probe | ( | AVProbeData * | p | ) | [static] |
static int flic_read_header | ( | AVFormatContext * | s, |
AVFormatParameters * | ap | ||
) | [static] |
static int flic_read_packet | ( | AVFormatContext * | s, |
AVPacket * | pkt | ||
) | [static] |
{ .name = "flic", .long_name = NULL_IF_CONFIG_SMALL("FLI/FLC/FLX animation format"), .priv_data_size = sizeof(FlicDemuxContext), .read_probe = flic_probe, .read_header = flic_read_header, .read_packet = flic_read_packet, }