FFmpeg
Data Structures | Macros | Functions | Variables
segafilm.c File Reference
#include "libavutil/intreadwrite.h"
#include "avformat.h"
#include "internal.h"
#include "avio_internal.h"

Go to the source code of this file.

Data Structures

struct  film_sample
 
struct  FilmDemuxContext
 

Macros

#define FILM_TAG   MKBETAG('F', 'I', 'L', 'M')
 
#define FDSC_TAG   MKBETAG('F', 'D', 'S', 'C')
 
#define STAB_TAG   MKBETAG('S', 'T', 'A', 'B')
 
#define CVID_TAG   MKBETAG('c', 'v', 'i', 'd')
 
#define RAW_TAG   MKBETAG('r', 'a', 'w', ' ')
 

Functions

static int film_probe (const AVProbeData *p)
 
static int film_read_close (AVFormatContext *s)
 
static int film_read_header (AVFormatContext *s)
 
static int film_read_packet (AVFormatContext *s, AVPacket *pkt)
 
static int film_read_seek (AVFormatContext *s, int stream_index, int64_t timestamp, int flags)
 

Variables

const AVInputFormat ff_segafilm_demuxer
 

Detailed Description

Sega FILM (.cpk) file demuxer by Mike Melanson (melan.nosp@m.son@.nosp@m.pcisy.nosp@m.s.ne.nosp@m.t) For more information regarding the Sega FILM file format, visit: http://www.pcisys.net/~melanson/codecs/

Definition in file segafilm.c.

Macro Definition Documentation

◆ FILM_TAG

#define FILM_TAG   MKBETAG('F', 'I', 'L', 'M')

Definition at line 35 of file segafilm.c.

◆ FDSC_TAG

#define FDSC_TAG   MKBETAG('F', 'D', 'S', 'C')

Definition at line 36 of file segafilm.c.

◆ STAB_TAG

#define STAB_TAG   MKBETAG('S', 'T', 'A', 'B')

Definition at line 37 of file segafilm.c.

◆ CVID_TAG

#define CVID_TAG   MKBETAG('c', 'v', 'i', 'd')

Definition at line 38 of file segafilm.c.

◆ RAW_TAG

#define RAW_TAG   MKBETAG('r', 'a', 'w', ' ')

Definition at line 39 of file segafilm.c.

Function Documentation

◆ film_probe()

static int film_probe ( const AVProbeData p)
static

Definition at line 67 of file segafilm.c.

◆ film_read_close()

static int film_read_close ( AVFormatContext s)
static

Definition at line 78 of file segafilm.c.

◆ film_read_header()

static int film_read_header ( AVFormatContext s)
static

Definition at line 87 of file segafilm.c.

◆ film_read_packet()

static int film_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 261 of file segafilm.c.

◆ film_read_seek()

static int film_read_seek ( AVFormatContext s,
int  stream_index,
int64_t  timestamp,
int  flags 
)
static

Definition at line 309 of file segafilm.c.

Variable Documentation

◆ ff_segafilm_demuxer

const AVInputFormat ff_segafilm_demuxer
Initial value:
= {
.name = "film_cpk",
.long_name = NULL_IF_CONFIG_SMALL("Sega FILM / CPK"),
.priv_data_size = sizeof(FilmDemuxContext),
.flags_internal = FF_FMT_INIT_CLEANUP,
}

Definition at line 327 of file segafilm.c.

FF_FMT_INIT_CLEANUP
#define FF_FMT_INIT_CLEANUP
For an AVInputFormat with this flag set read_close() needs to be called by the caller upon read_heade...
Definition: internal.h:46
film_read_packet
static int film_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: segafilm.c:261
read_seek
static int read_seek(AVFormatContext *ctx, int stream_index, int64_t timestamp, int flags)
Definition: libcdio.c:151
read_close
static av_cold int read_close(AVFormatContext *ctx)
Definition: libcdio.c:143
FilmDemuxContext
Definition: segafilm.c:49
read_packet
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
Definition: avio_read_callback.c:41
film_read_header
static int film_read_header(AVFormatContext *s)
Definition: segafilm.c:87
film_probe
static int film_probe(const AVProbeData *p)
Definition: segafilm.c:67
read_header
static int read_header(FFV1Context *f)
Definition: ffv1dec.c:550
film_read_seek
static int film_read_seek(AVFormatContext *s, int stream_index, int64_t timestamp, int flags)
Definition: segafilm.c:309
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:106
film_read_close
static int film_read_close(AVFormatContext *s)
Definition: segafilm.c:78
read_probe
static int read_probe(const AVProbeData *p)
Definition: cdg.c:29