FFmpeg
Functions | Variables
bmvaudio.c File Reference
#include "libavutil/channel_layout.h"
#include "libavutil/common.h"
#include "avcodec.h"
#include "codec_internal.h"
#include "internal.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",
.p.long_name = NULL_IF_CONFIG_SMALL("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:260
AVMEDIA_TYPE_AUDIO
@ AVMEDIA_TYPE_AUDIO
Definition: avutil.h:202
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:109
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
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
AV_CODEC_ID_BMV_AUDIO
@ AV_CODEC_ID_BMV_AUDIO
Definition: codec_id.h:485
bmv_aud_decode_frame
static int bmv_aud_decode_frame(AVCodecContext *avctx, AVFrame *frame, int *got_frame_ptr, AVPacket *avpkt)
Definition: bmvaudio.c:42