FFmpeg
 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
 

Functions

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)
 

Variables

AVCodec ff_dvaudio_decoder
 

Function Documentation

static av_cold int decode_init ( AVCodecContext avctx)
static

Definition at line 33 of file dvaudiodec.c.

static uint16_t dv_audio_12to16 ( uint16_t  sample)
inlinestatic

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 
)
static

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),
}
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:176
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:956

Definition at line 124 of file dvaudiodec.c.