All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions | Variables
dvaudiodec.c File Reference
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
#include "internal.h"
#include "dvaudio.h"

Go to the source code of this file.

Data Structures

struct  DVAudioContext


static av_cold int decode_init (AVCodecContext *avctx)
static uint16_t dv_audio_12to16 (uint16_t sample)
static int decode_frame (AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *pkt)


AVCodec ff_dvaudio_decoder

Function Documentation

static av_cold int decode_init ( AVCodecContext avctx)

Definition at line 33 of file dvaudiodec.c.

static uint16_t dv_audio_12to16 ( uint16_t  sample)

Definition at line 70 of file dvaudiodec.c.

Referenced by decode_frame().

static int decode_frame ( AVCodecContext avctx,
void data,
int got_frame_ptr,
AVPacket pkt 

Definition at line 90 of file dvaudiodec.c.

Variable Documentation

AVCodec ff_dvaudio_decoder
Initial value:
= {
.name = "dvaudio",
.long_name = NULL_IF_CONFIG_SMALL("Ulead DV Audio"),
.init = decode_init,
.decode = decode_frame,
.capabilities = AV_CODEC_CAP_DR1,
.priv_data_size = sizeof(DVAudioContext),
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:179
static av_cold int decode_init(AVCodecContext *avctx)
Definition: dvaudiodec.c:33
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *pkt)
Definition: dvaudiodec.c:90
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:1002

Definition at line 124 of file dvaudiodec.c.