FFmpeg
Data Structures | Functions | Variables
pcm-dvd.c File Reference
#include "avcodec.h"
#include "bytestream.h"
#include "codec_internal.h"
#include "decode.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",
CODEC_LONG_NAME("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[]) {
},
}

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

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:287
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:347
CODEC_LONG_NAME
#define CODEC_LONG_NAME(str)
Definition: codec_internal.h:272
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:106
init
int(* init)(AVBSFContext *ctx)
Definition: dts2pts.c:365
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
AV_SAMPLE_FMT_NONE
@ AV_SAMPLE_FMT_NONE
Definition: samplefmt.h:56
AVSampleFormat
AVSampleFormat
Audio sample formats.
Definition: samplefmt.h:55
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