#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 |
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] |
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] |
static int mmf_read_packet | ( | AVFormatContext * | s, | |
AVPacket * | pkt | |||
) | [static] |
static int mmf_write_header | ( | AVFormatContext * | s | ) | [static] |
static int mmf_write_packet | ( | AVFormatContext * | s, | |
AVPacket * | pkt | |||
) | [static] |
static int mmf_write_trailer | ( | AVFormatContext * | s | ) | [static] |
static void put_varlength | ( | AVIOContext * | pb, | |
int | val | |||
) | [static] |
Definition at line 119 of file mmf.c.
Referenced by mmf_write_trailer().
{ .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, }
{ .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, }
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().