All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions | Variables
pcm-dvd.c File Reference

LPCM codecs for PCM formats found in Video DVD streams. More...

#include "avcodec.h"
#include "bytestream.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  PCMDVDContext


static av_cold int pcm_dvd_decode_init (AVCodecContext *avctx)
static av_cold int pcm_dvd_decode_uninit (AVCodecContext *avctx)
static int pcm_dvd_parse_header (AVCodecContext *avctx, const uint8_t *header)
static voidpcm_dvd_decode_samples (AVCodecContext *avctx, const uint8_t *src, void *dst, int blocks)
static int pcm_dvd_decode_frame (AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt)


AVCodec ff_pcm_dvd_decoder

Detailed Description

LPCM codecs for PCM formats found in Video DVD streams.

Definition in file pcm-dvd.c.

Function Documentation

static av_cold int pcm_dvd_decode_init ( AVCodecContext avctx)

Definition at line 41 of file pcm-dvd.c.

static av_cold int pcm_dvd_decode_uninit ( AVCodecContext avctx)

Definition at line 54 of file pcm-dvd.c.

static int pcm_dvd_parse_header ( AVCodecContext avctx,
const uint8_t header 

Definition at line 63 of file pcm-dvd.c.

Referenced by pcm_dvd_decode_frame().

static void* pcm_dvd_decode_samples ( AVCodecContext avctx,
const uint8_t src,
void dst,
int  blocks 

Definition at line 152 of file pcm-dvd.c.

Referenced by pcm_dvd_decode_frame().

static int pcm_dvd_decode_frame ( AVCodecContext avctx,
void data,
int got_frame_ptr,
AVPacket avpkt 

Definition at line 234 of file pcm-dvd.c.

Variable Documentation

AVCodec ff_pcm_dvd_decoder
Initial value:
= {
.name = "pcm_dvd",
.long_name = NULL_IF_CONFIG_SMALL("PCM signed 16|20|24-bit big-endian for DVD media"),
.priv_data_size = sizeof(PCMDVDContext),
.capabilities = AV_CODEC_CAP_DR1,
.sample_fmts = (const enum AVSampleFormat[]) {
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
static av_cold int pcm_dvd_decode_uninit(AVCodecContext *avctx)
Definition: pcm-dvd.c:54
static void decode(AVCodecContext *dec_ctx, AVPacket *pkt, AVFrame *frame, FILE *outfile)
Definition: decode_audio.c:42
signed 32 bits
Definition: samplefmt.h:62
static int pcm_dvd_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt)
Definition: pcm-dvd.c:234
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:179
Audio sample formats.
Definition: samplefmt.h:58
static av_cold int pcm_dvd_decode_init(AVCodecContext *avctx)
Definition: pcm-dvd.c:41
signed 16 bits
Definition: samplefmt.h:61
static enum AVSampleFormat sample_fmts[]
Definition: adpcmenc.c:701
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:1002

Definition at line 305 of file pcm-dvd.c.