libavformat/mmf.c File Reference

#include "avformat.h"
#include "internal.h"
#include "avio_internal.h"
#include "pcm.h"
#include "riff.h"

Go to the source code of this file.

Data Structures

struct  MMFContext

Defines

#define MAX_SIZE   4096

Functions

static int mmf_rate (int code)
static int mmf_rate_code (int rate)
static void end_tag_be (AVIOContext *pb, int64_t start)
static int mmf_write_header (AVFormatContext *s)
static int mmf_write_packet (AVFormatContext *s, AVPacket *pkt)
static void put_varlength (AVIOContext *pb, int val)
static int mmf_write_trailer (AVFormatContext *s)
static int mmf_probe (AVProbeData *p)
static int mmf_read_header (AVFormatContext *s, AVFormatParameters *ap)
static int mmf_read_packet (AVFormatContext *s, AVPacket *pkt)

Variables

static const int mmf_rates [] = { 4000, 8000, 11025, 22050, 44100 }
AVInputFormat ff_mmf_demuxer
AVOutputFormat ff_mmf_muxer

Define Documentation

#define MAX_SIZE   4096

Definition at line 261 of file mmf.c.


Function Documentation

static void end_tag_be ( AVIOContext pb,
int64_t  start 
) [static]

Definition at line 52 of file mmf.c.

Referenced by mmf_write_header(), and mmf_write_trailer().

static int mmf_probe ( AVProbeData p  )  [static]

Definition at line 170 of file mmf.c.

static int mmf_rate ( int  code  )  [static]

Definition at line 34 of file mmf.c.

Referenced by mmf_read_header().

static int mmf_rate_code ( int  rate  )  [static]

Definition at line 42 of file mmf.c.

Referenced by mmf_write_header().

static int mmf_read_header ( AVFormatContext s,
AVFormatParameters ap 
) [static]

Definition at line 183 of file mmf.c.

static int mmf_read_packet ( AVFormatContext s,
AVPacket pkt 
) [static]

Definition at line 263 of file mmf.c.

static int mmf_write_header ( AVFormatContext s  )  [static]

Definition at line 62 of file mmf.c.

static int mmf_write_packet ( AVFormatContext s,
AVPacket pkt 
) [static]

Definition at line 111 of file mmf.c.

static int mmf_write_trailer ( AVFormatContext s  )  [static]

Definition at line 130 of file mmf.c.

static void put_varlength ( AVIOContext pb,
int  val 
) [static]

Definition at line 119 of file mmf.c.

Referenced by mmf_write_trailer().


Variable Documentation

Initial value:
 {
    .name           = "mmf",
    .long_name      = NULL_IF_CONFIG_SMALL("Yamaha SMAF"),
    .priv_data_size = sizeof(MMFContext),
    .read_probe     = mmf_probe,
    .read_header    = mmf_read_header,
    .read_packet    = mmf_read_packet,
    .read_seek      = pcm_read_seek,
}

Definition at line 294 of file mmf.c.

Initial value:
 {
    .name              = "mmf",
    .long_name         = NULL_IF_CONFIG_SMALL("Yamaha SMAF"),
    .mime_type         = "application/vnd.smaf",
    .extensions        = "mmf",
    .priv_data_size    = sizeof(MMFContext),
    .audio_codec       = CODEC_ID_ADPCM_YAMAHA,
    .video_codec       = CODEC_ID_NONE,
    .write_header      = mmf_write_header,
    .write_packet      = mmf_write_packet,
    .write_trailer     = mmf_write_trailer,
}

Definition at line 305 of file mmf.c.

const int mmf_rates[] = { 4000, 8000, 11025, 22050, 44100 } [static]

Definition at line 32 of file mmf.c.

Referenced by mmf_rate(), and mmf_rate_code().