FFmpeg
Data Structures | Functions | Variables
pcm-dvd.c File Reference
#include "avcodec.h"
#include "bytestream.h"
#include "codec_internal.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, AVFrame *frame, int *got_frame_ptr, AVPacket *avpkt)
 

Variables

const FFCodec 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 43 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 53 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 146 of file pcm-dvd.c.

Referenced by pcm_dvd_decode_frame().

◆ pcm_dvd_decode_frame()

static int pcm_dvd_decode_frame ( AVCodecContext avctx,
AVFrame frame,
int got_frame_ptr,
AVPacket avpkt 
)
static

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

Variable Documentation

◆ ff_pcm_dvd_decoder

const FFCodec ff_pcm_dvd_decoder
Initial value:
= {
.p.name = "pcm_dvd",
.p.long_name = NULL_IF_CONFIG_SMALL("PCM signed 16|20|24-bit big-endian for DVD media"),
.p.type = AVMEDIA_TYPE_AUDIO,
.priv_data_size = sizeof(PCMDVDContext),
.p.capabilities = AV_CODEC_CAP_CHANNEL_CONF |
.p.sample_fmts = (const enum AVSampleFormat[]) {
},
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
}

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

init
static int init
Definition: av_tx.c:47
pcm_dvd_decode_frame
static int pcm_dvd_decode_frame(AVCodecContext *avctx, AVFrame *frame, int *got_frame_ptr, AVPacket *avpkt)
Definition: pcm-dvd.c:228
FF_CODEC_DECODE_CB
#define FF_CODEC_DECODE_CB(func)
Definition: codec_internal.h:254
PCMDVDContext
Definition: pcm-dvd.c:32
AVMEDIA_TYPE_AUDIO
@ AVMEDIA_TYPE_AUDIO
Definition: avutil.h:202
AV_CODEC_ID_PCM_DVD
@ AV_CODEC_ID_PCM_DVD
Definition: codec_id.h:335
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:116
AV_SAMPLE_FMT_NONE
@ AV_SAMPLE_FMT_NONE
Definition: samplefmt.h:56
AVSampleFormat
AVSampleFormat
Audio sample formats.
Definition: samplefmt.h:55
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: codec_internal.h:31
AV_SAMPLE_FMT_S16
@ AV_SAMPLE_FMT_S16
signed 16 bits
Definition: samplefmt.h:58
pcm_dvd_decode_init
static av_cold int pcm_dvd_decode_init(AVCodecContext *avctx)
Definition: pcm-dvd.c:43
AV_SAMPLE_FMT_S32
@ AV_SAMPLE_FMT_S32
signed 32 bits
Definition: samplefmt.h:59