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 "internal.h"
#include "avio_internal.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 AVOutputFormat 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 224 of file segafilmenc.c.

◆ film_deinit()

static void film_deinit ( AVFormatContext format_context)
static

Definition at line 317 of file segafilmenc.c.

Variable Documentation

◆ ff_segafilm_muxer

const AVOutputFormat ff_segafilm_muxer
Initial value:
= {
.name = "film_cpk",
.long_name = NULL_IF_CONFIG_SMALL("Sega FILM / CPK"),
.extensions = "cpk",
.priv_data_size = sizeof(FILMOutputContext),
.video_codec = AV_CODEC_ID_CINEPAK,
.deinit = film_deinit,
}

Definition at line 324 of file segafilmenc.c.

init
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:31
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:343
film_write_packet
static int film_write_packet(AVFormatContext *format_context, AVPacket *pkt)
Definition: segafilmenc.c:46
FILMOutputContext
Definition: segafilmenc.c:39
write_trailer
static int write_trailer(AVFormatContext *s1)
Definition: v4l2enc.c:98
AV_CODEC_ID_CINEPAK
@ AV_CODEC_ID_CINEPAK
Definition: codec_id.h:93
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:117
write_packet
static void write_packet(OutputFile *of, AVPacket *pkt, OutputStream *ost, int unqueue)
Definition: ffmpeg.c:731
film_deinit
static void film_deinit(AVFormatContext *format_context)
Definition: segafilmenc.c:317
film_write_header
static int film_write_header(AVFormatContext *format_context)
Definition: segafilmenc.c:224