FFmpeg  4.0
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
 

Functions

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)
 

Variables

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

◆ pcm_dvd_decode_init()

static av_cold int pcm_dvd_decode_init ( AVCodecContext avctx)
static

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

◆ pcm_dvd_decode_uninit()

static av_cold int pcm_dvd_decode_uninit ( AVCodecContext avctx)
static

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

◆ pcm_dvd_parse_header()

static int pcm_dvd_parse_header ( AVCodecContext avctx,
const uint8_t header 
)
static

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

Referenced by pcm_dvd_decode_frame().

◆ pcm_dvd_decode_samples()

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

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

Referenced by pcm_dvd_decode_frame().

◆ pcm_dvd_decode_frame()

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

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

Variable Documentation

◆ ff_pcm_dvd_decoder

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

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