FFmpeg
Data Structures | Functions | Variables
pcm-dvdenc.c File Reference
#include "libavutil/channel_layout.h"
#include "avcodec.h"
#include "bytestream.h"
#include "encode.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  PCMDVDContext
 

Functions

static av_cold int pcm_dvd_encode_init (AVCodecContext *avctx)
 
static int pcm_dvd_encode_frame (AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr)
 

Variables

const AVCodec ff_pcm_dvd_encoder
 

Function Documentation

◆ pcm_dvd_encode_init()

static av_cold int pcm_dvd_encode_init ( AVCodecContext avctx)
static

Definition at line 37 of file pcm-dvdenc.c.

◆ pcm_dvd_encode_frame()

static int pcm_dvd_encode_frame ( AVCodecContext avctx,
AVPacket avpkt,
const AVFrame frame,
int got_packet_ptr 
)
static

Definition at line 112 of file pcm-dvdenc.c.

Variable Documentation

◆ ff_pcm_dvd_encoder

const AVCodec ff_pcm_dvd_encoder
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),
.supported_samplerates = (const int[]) { 48000, 96000, 0},
.channel_layouts = (const uint64_t[]) { AV_CH_LAYOUT_MONO,
0 },
.sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S16,
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
}

Definition at line 174 of file pcm-dvdenc.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
AV_CH_LAYOUT_MONO
#define AV_CH_LAYOUT_MONO
Definition: channel_layout.h:90
pcm_dvd_encode_init
static av_cold int pcm_dvd_encode_init(AVCodecContext *avctx)
Definition: pcm-dvdenc.c:37
init
static int init
Definition: av_tx.c:47
AV_CH_LAYOUT_STEREO
#define AV_CH_LAYOUT_STEREO
Definition: channel_layout.h:91
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_CH_LAYOUT_5POINT1
#define AV_CH_LAYOUT_5POINT1
Definition: channel_layout.h:101
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_CH_LAYOUT_7POINT1
#define AV_CH_LAYOUT_7POINT1
Definition: channel_layout.h:112
AV_SAMPLE_FMT_S16
@ AV_SAMPLE_FMT_S16
signed 16 bits
Definition: samplefmt.h:61
pcm_dvd_encode_frame
static int pcm_dvd_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr)
Definition: pcm-dvdenc.c:112
AV_CODEC_CAP_SMALL_LAST_FRAME
#define AV_CODEC_CAP_SMALL_LAST_FRAME
Codec can be fed a final frame with a smaller size.
Definition: codec.h:87
AV_SAMPLE_FMT_S32
@ AV_SAMPLE_FMT_S32
signed 32 bits
Definition: samplefmt.h:62