FFmpeg
Classes | Macros | Typedefs | Variables
vmdaudio.c File Reference

Sierra VMD audio decoder by Vladimir "VAG" Gneushev (vagsoft at mail.ru) for more information on the Sierra VMD format, visit: http://www.pcisys.net/~melanson/codecs/. More...

#include <string.h>
#include "libavutil/avassert.h"
#include "libavutil/channel_layout.h"
#include "libavutil/common.h"
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
#include "internal.h"

Classes

struct  VmdAudioContext
 

Macros

#define BLOCK_TYPE_AUDIO   1
 
#define BLOCK_TYPE_INITIAL   2
 
#define BLOCK_TYPE_SILENCE   3
 

Typedefs

typedef struct VmdAudioContext VmdAudioContext
 

Variables

AVCodec ff_vmdaudio_decoder
 

Detailed Description

Sierra VMD audio decoder by Vladimir "VAG" Gneushev (vagsoft at mail.ru) for more information on the Sierra VMD format, visit: http://www.pcisys.net/~melanson/codecs/.

The audio decoder, expects each encoded data chunk to be prepended with the appropriate 16-byte frame information record from the VMD file. It does not require the 0x330-byte VMD file header, but it does need the audio setup parameters passed in through normal libavcodec API means.

Variable Documentation

§ ff_vmdaudio_decoder

AVCodec ff_vmdaudio_decoder
Initial value:
= {
.name = "vmdaudio",
.long_name = NULL_IF_CONFIG_SMALL("Sierra VMD audio"),
.type = AVMEDIA_TYPE_AUDIO,
.id = AV_CODEC_ID_VMDAUDIO,
.priv_data_size = sizeof(VmdAudioContext),
.init = vmdaudio_decode_init,
.decode = vmdaudio_decode_frame,
.capabilities = AV_CODEC_CAP_DR1,
}
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
Definition: vmdaudio.c:50
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:959