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 162 of file segafilmenc.c.

Referenced by film_write_header().

◆ film_write_header()

static int film_write_header ( AVFormatContext format_context)
static

Definition at line 175 of file segafilmenc.c.

◆ film_deinit()

static void film_deinit ( AVFormatContext format_context)
static

Definition at line 268 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,
.p.subtitle_codec = AV_CODEC_ID_NONE,
.flags_internal = FF_OFMT_FLAG_MAX_ONE_OF_EACH,
.init = film_init,
.write_trailer = film_write_header,
.write_packet = film_write_packet,
.deinit = film_deinit,
}

Definition at line 275 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:364
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:94
AV_CODEC_ID_NONE
@ AV_CODEC_ID_NONE
Definition: codec_id.h:50
FF_OFMT_FLAG_MAX_ONE_OF_EACH
#define FF_OFMT_FLAG_MAX_ONE_OF_EACH
If this flag is set, it indicates that for each codec type whose corresponding default codec (i....
Definition: mux.h:50
film_deinit
static void film_deinit(AVFormatContext *format_context)
Definition: segafilmenc.c:268
film_write_header
static int film_write_header(AVFormatContext *format_context)
Definition: segafilmenc.c:175