FFmpeg
Data Structures | Macros | Functions | Variables
s302menc.c File Reference
#include "avcodec.h"
#include "encode.h"
#include "internal.h"
#include "mathops.h"
#include "put_bits.h"

Go to the source code of this file.

Data Structures

struct  S302MEncContext
 

Macros

#define AES3_HEADER_LEN   4
 

Functions

static av_cold int s302m_encode_init (AVCodecContext *avctx)
 
static int s302m_encode2_frame (AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr)
 

Variables

const AVCodec ff_s302m_encoder
 

Macro Definition Documentation

◆ AES3_HEADER_LEN

#define AES3_HEADER_LEN   4

Definition at line 29 of file s302menc.c.

Function Documentation

◆ s302m_encode_init()

static av_cold int s302m_encode_init ( AVCodecContext avctx)
static

Definition at line 35 of file s302menc.c.

◆ s302m_encode2_frame()

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

Definition at line 70 of file s302menc.c.

Variable Documentation

◆ ff_s302m_encoder

const AVCodec ff_s302m_encoder
Initial value:
= {
.name = "s302m",
.long_name = NULL_IF_CONFIG_SMALL("SMPTE 302M"),
.priv_data_size = sizeof(S302MEncContext),
.encode2 = s302m_encode2_frame,
.supported_samplerates = (const int[]) { 48000, 0 },
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
}

Definition at line 171 of file s302menc.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:41
init
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:31
sample_fmts
static enum AVSampleFormat sample_fmts[]
Definition: adpcmenc.c:953
AV_CODEC_CAP_EXPERIMENTAL
#define AV_CODEC_CAP_EXPERIMENTAL
Codec is experimental and is thus avoided in favor of non experimental encoders.
Definition: codec.h:100
AV_CODEC_ID_S302M
@ AV_CODEC_ID_S302M
Definition: codec_id.h:339
AVMEDIA_TYPE_AUDIO
@ AVMEDIA_TYPE_AUDIO
Definition: avutil.h:202
s302m_encode_init
static av_cold int s302m_encode_init(AVCodecContext *avctx)
Definition: s302menc.c:35
AV_CODEC_CAP_VARIABLE_FRAME_SIZE
#define AV_CODEC_CAP_VARIABLE_FRAME_SIZE
Audio encoder supports receiving a different number of samples in each call.
Definition: codec.h:129
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_SAMPLE_FMT_S16
@ AV_SAMPLE_FMT_S16
signed 16 bits
Definition: samplefmt.h:61
S302MEncContext
Definition: s302menc.c:31
AV_SAMPLE_FMT_S32
@ AV_SAMPLE_FMT_S32
signed 32 bits
Definition: samplefmt.h:62
s302m_encode2_frame
static int s302m_encode2_frame(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr)
Definition: s302menc.c:70