FFmpeg
 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
 

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

static av_cold int pcm_dvd_decode_init ( AVCodecContext avctx)
static

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

static av_cold int pcm_dvd_decode_uninit ( AVCodecContext avctx)
static

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

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().

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().

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

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
signed 32 bits
Definition: samplefmt.h:63
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:176
AVSampleFormat
Audio sample formats.
Definition: samplefmt.h:59
static av_cold int pcm_dvd_decode_init(AVCodecContext *avctx)
Definition: pcm-dvd.c:41
static int decode(AVCodecContext *avctx, void *data, int *got_sub, AVPacket *avpkt)
Definition: ccaption_dec.c:572
signed 16 bits
Definition: samplefmt.h:62
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:856

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