FFmpeg
Data Structures | Functions | Variables
pcm-dvd.c File Reference
#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 int pcm_dvd_parse_header (AVCodecContext *avctx, const uint8_t *header)
 
static void * pcm_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

const 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 42 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 52 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 141 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 223 of file pcm-dvd.c.

Variable Documentation

◆ ff_pcm_dvd_decoder

const 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_CHANNEL_CONF |
.sample_fmts = (const enum AVSampleFormat[]) {
},
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
}

Definition at line 294 of file pcm-dvd.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
sample_fmts
static enum AVSampleFormat sample_fmts[]
Definition: adpcmenc.c:948
init
static int init
Definition: av_tx.c:47
pcm_dvd_decode_frame
static int pcm_dvd_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt)
Definition: pcm-dvd.c:223
decode
static void decode(AVCodecContext *dec_ctx, AVPacket *pkt, AVFrame *frame, FILE *outfile)
Definition: decode_audio.c:71
PCMDVDContext
Definition: pcm-dvd.c:31
AVMEDIA_TYPE_AUDIO
@ AVMEDIA_TYPE_AUDIO
Definition: avutil.h:202
AV_CODEC_ID_PCM_DVD
@ AV_CODEC_ID_PCM_DVD
Definition: codec_id.h:333
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
AV_SAMPLE_FMT_NONE
@ AV_SAMPLE_FMT_NONE
Definition: samplefmt.h:59
AVSampleFormat
AVSampleFormat
Audio sample formats.
Definition: samplefmt.h:58
AV_SAMPLE_FMT_S16
@ AV_SAMPLE_FMT_S16
signed 16 bits
Definition: samplefmt.h:61
pcm_dvd_decode_init
static av_cold int pcm_dvd_decode_init(AVCodecContext *avctx)
Definition: pcm-dvd.c:42
AV_SAMPLE_FMT_S32
@ AV_SAMPLE_FMT_S32
signed 32 bits
Definition: samplefmt.h:62