FFmpeg
Functions | Variables
bmvaudio.c File Reference
#include "libavutil/channel_layout.h"
#include "libavutil/common.h"
#include "avcodec.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, void *data, int *got_frame_ptr, AVPacket *avpkt)
 

Variables

static const int bmv_aud_mults [16]
 
const AVCodec ff_bmv_audio_decoder
 

Function Documentation

◆ bmv_aud_decode_init()

static av_cold int bmv_aud_decode_init ( AVCodecContext avctx)
static

Definition at line 32 of file bmvaudio.c.

◆ bmv_aud_decode_frame()

static int bmv_aud_decode_frame ( AVCodecContext avctx,
void *  data,
int got_frame_ptr,
AVPacket avpkt 
)
static

Definition at line 41 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 28 of file bmvaudio.c.

Referenced by bmv_aud_decode_frame().

◆ ff_bmv_audio_decoder

const AVCodec ff_bmv_audio_decoder
Initial value:
= {
.name = "bmv_audio",
.long_name = NULL_IF_CONFIG_SMALL("Discworld II BMV audio"),
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
}

Definition at line 81 of file bmvaudio.c.

FF_CODEC_CAP_INIT_THREADSAFE
#define FF_CODEC_CAP_INIT_THREADSAFE
The codec does not modify any global variables in the init function, allowing to call the init functi...
Definition: internal.h:42
bmv_aud_decode_init
static av_cold int bmv_aud_decode_init(AVCodecContext *avctx)
Definition: bmvaudio.c:32
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
bmv_aud_decode_frame
static int bmv_aud_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt)
Definition: bmvaudio.c:41
AV_CODEC_ID_BMV_AUDIO
@ AV_CODEC_ID_BMV_AUDIO
Definition: codec_id.h:478