FFmpeg
Functions | Variables
bmvaudio.c File Reference
#include "libavutil/channel_layout.h"
#include "libavutil/common.h"
#include "avcodec.h"
#include "codec_internal.h"
#include "decode.h"

Go to the source code of this file.

Functions

static av_cold int bmv_aud_decode_init (AVCodecContext *avctx)
 
static int bmv_aud_decode_frame (AVCodecContext *avctx, AVFrame *frame, int *got_frame_ptr, AVPacket *avpkt)
 

Variables

static const int bmv_aud_mults [16]
 
const FFCodec ff_bmv_audio_decoder
 

Function Documentation

◆ bmv_aud_decode_init()

static av_cold int bmv_aud_decode_init ( AVCodecContext avctx)
static

Definition at line 33 of file bmvaudio.c.

◆ bmv_aud_decode_frame()

static int bmv_aud_decode_frame ( AVCodecContext avctx,
AVFrame frame,
int *  got_frame_ptr,
AVPacket avpkt 
)
static

Definition at line 42 of file bmvaudio.c.

Variable Documentation

◆ bmv_aud_mults

const int bmv_aud_mults[16]
static
Initial value:
= {
16512, 8256, 4128, 2064, 1032, 516, 258, 192, 129, 88, 64, 56, 48, 40, 36, 32
}

Definition at line 29 of file bmvaudio.c.

Referenced by bmv_aud_decode_frame().

◆ ff_bmv_audio_decoder

const FFCodec ff_bmv_audio_decoder
Initial value:
= {
.p.name = "bmv_audio",
CODEC_LONG_NAME("Discworld II BMV audio"),
.p.type = AVMEDIA_TYPE_AUDIO,
}

Definition at line 81 of file bmvaudio.c.

bmv_aud_decode_init
static av_cold int bmv_aud_decode_init(AVCodecContext *avctx)
Definition: bmvaudio.c:33
FF_CODEC_DECODE_CB
#define FF_CODEC_DECODE_CB(func)
Definition: codec_internal.h:311
AVMEDIA_TYPE_AUDIO
@ AVMEDIA_TYPE_AUDIO
Definition: avutil.h:202
CODEC_LONG_NAME
#define CODEC_LONG_NAME(str)
Definition: codec_internal.h:296
AV_CODEC_CAP_CHANNEL_CONF
#define AV_CODEC_CAP_CHANNEL_CONF
Codec should fill in channel configuration and samplerate instead of container.
Definition: codec.h:106
AV_CODEC_CAP_DR1
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
Definition: codec.h:52
AV_CODEC_ID_BMV_AUDIO
@ AV_CODEC_ID_BMV_AUDIO
Definition: codec_id.h:496
bmv_aud_decode_frame
static int bmv_aud_decode_frame(AVCodecContext *avctx, AVFrame *frame, int *got_frame_ptr, AVPacket *avpkt)
Definition: bmvaudio.c:42