FFmpeg
Loading...
Searching...
No Matches
pcm-dvdenc.c File Reference
#include "libavutil/avassert.h"
#include "libavutil/channel_layout.h"
#include "avcodec.h"
#include "bytestream.h"
#include "codec_internal.h"
#include "encode.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 FFCodec ff_pcm_dvd_encoder
 

Function Documentation

◆ pcm_dvd_encode_init()

static av_cold int pcm_dvd_encode_init ( AVCodecContext * avctx)
static

Definition at line 36 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 114 of file pcm-dvdenc.c.

Variable Documentation

◆ ff_pcm_dvd_encoder

const FFCodec ff_pcm_dvd_encoder
Initial value:
= {
.p.name = "pcm_dvd",
CODEC_LONG_NAME("PCM signed 16|20|24-bit big-endian for DVD-Video media"),
.p.type = AVMEDIA_TYPE_AUDIO,
.priv_data_size = sizeof(PCMDVDContext),
CODEC_SAMPLERATES(48000, 96000),
}
#define CODEC_CH_LAYOUTS(...)
#define CODEC_SAMPLERATES(...)
#define FF_CODEC_ENCODE_CB(func)
#define CODEC_LONG_NAME(str)
#define CODEC_SAMPLEFMTS(...)
int(* init)(AVBSFContext *ctx)
Definition dts2pts.c:608
#define AV_CODEC_CAP_ENCODER_REORDERED_OPAQUE
This encoder can reorder user opaque values from input AVFrames and return them with corresponding ou...
Definition codec.h:147
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
Definition codec.h:49
#define AV_CODEC_CAP_SMALL_LAST_FRAME
Codec can be fed a final frame with a smaller size.
Definition codec.h:84
@ AV_CODEC_ID_PCM_DVD
Definition codec_id.h:349
#define AV_CHANNEL_LAYOUT_STEREO
#define AV_CHANNEL_LAYOUT_5POINT1
#define AV_CHANNEL_LAYOUT_MONO
#define AV_CHANNEL_LAYOUT_7POINT1
@ AVMEDIA_TYPE_AUDIO
Definition avutil.h:201
@ AV_SAMPLE_FMT_S32
signed 32 bits
Definition samplefmt.h:59
@ AV_SAMPLE_FMT_S16
signed 16 bits
Definition samplefmt.h:58
static av_cold int pcm_dvd_encode_init(AVCodecContext *avctx)
Definition pcm-dvdenc.c:36
static int pcm_dvd_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr)
Definition pcm-dvdenc.c:114

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