FFmpeg
Data Structures | Functions | Variables
segafilmenc.c File Reference
#include "libavutil/avassert.h"
#include "libavutil/intreadwrite.h"
#include "libavcodec/bytestream.h"
#include "avformat.h"
#include "avio_internal.h"
#include "mux.h"

Go to the source code of this file.

Data Structures

struct  FILMOutputContext
 

Functions

static int film_write_packet (AVFormatContext *format_context, AVPacket *pkt)
 
static int get_audio_codec_id (enum AVCodecID codec_id)
 
static int film_init (AVFormatContext *format_context)
 
static int write_header (AVFormatContext *format_context, uint8_t *header, unsigned header_size)
 
static int film_write_header (AVFormatContext *format_context)
 
static void film_deinit (AVFormatContext *format_context)
 

Variables

const FFOutputFormat ff_segafilm_muxer
 

Detailed Description

Sega FILM (.cpk) file muxer

Author
Misty De Meo misty.nosp@m.@bre.nosp@m.w.sh
See also
For more information regarding the Sega FILM file format, visit: http://wiki.multimedia.cx/index.php?title=Sega_FILM

Definition in file segafilmenc.c.

Function Documentation

◆ film_write_packet()

static int film_write_packet ( AVFormatContext format_context,
AVPacket pkt 
)
static

Definition at line 46 of file segafilmenc.c.

◆ get_audio_codec_id()

static int get_audio_codec_id ( enum AVCodecID  codec_id)
static

Definition at line 102 of file segafilmenc.c.

Referenced by film_init(), and film_write_header().

◆ film_init()

static int film_init ( AVFormatContext format_context)
static

Definition at line 116 of file segafilmenc.c.

◆ write_header()

static int write_header ( AVFormatContext format_context,
uint8_t *  header,
unsigned  header_size 
)
static

Definition at line 170 of file segafilmenc.c.

Referenced by film_write_header().

◆ film_write_header()

static int film_write_header ( AVFormatContext format_context)
static

Definition at line 183 of file segafilmenc.c.

◆ film_deinit()

static void film_deinit ( AVFormatContext format_context)
static

Definition at line 276 of file segafilmenc.c.

Variable Documentation

◆ ff_segafilm_muxer

const FFOutputFormat ff_segafilm_muxer
Initial value:
= {
.p.name = "film_cpk",
.p.long_name = NULL_IF_CONFIG_SMALL("Sega FILM / CPK"),
.p.extensions = "cpk",
.priv_data_size = sizeof(FILMOutputContext),
.p.audio_codec = AV_CODEC_ID_PCM_S16BE_PLANAR,
.p.video_codec = AV_CODEC_ID_CINEPAK,
.init = film_init,
.write_trailer = film_write_header,
.write_packet = film_write_packet,
.deinit = film_deinit,
}

Definition at line 283 of file segafilmenc.c.

film_init
static int film_init(AVFormatContext *format_context)
Definition: segafilmenc.c:116
AV_CODEC_ID_PCM_S16BE_PLANAR
@ AV_CODEC_ID_PCM_S16BE_PLANAR
Definition: codec_id.h:360
film_write_packet
static int film_write_packet(AVFormatContext *format_context, AVPacket *pkt)
Definition: segafilmenc.c:46
FILMOutputContext
Definition: segafilmenc.c:39
AV_CODEC_ID_CINEPAK
@ AV_CODEC_ID_CINEPAK
Definition: codec_id.h:95
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_deinit
static void film_deinit(AVFormatContext *format_context)
Definition: segafilmenc.c:276
film_write_header
static int film_write_header(AVFormatContext *format_context)
Definition: segafilmenc.c:183