FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
s302menc.c File Reference
#include "avcodec.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

AVCodec ff_s302m_encoder
 

Macro Definition Documentation

#define AES3_HEADER_LEN   4

Definition at line 28 of file s302menc.c.

Referenced by s302m_encode2_frame().

Function Documentation

static av_cold int s302m_encode_init ( AVCodecContext avctx)
static

Definition at line 34 of file s302menc.c.

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

Definition at line 69 of file s302menc.c.

Variable Documentation

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 },
}
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
#define AV_CODEC_CAP_EXPERIMENTAL
Codec is experimental and is thus avoided in favor of non experimental encoders.
Definition: avcodec.h:912
signed 32 bits
Definition: samplefmt.h:63
static int s302m_encode2_frame(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr)
Definition: s302menc.c:69
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:175
#define AV_CODEC_CAP_VARIABLE_FRAME_SIZE
Audio encoder supports receiving a different number of samples in each call.
Definition: avcodec.h:936
AVSampleFormat
Audio sample formats.
Definition: samplefmt.h:59
signed 16 bits
Definition: samplefmt.h:62
static enum AVSampleFormat sample_fmts[]
Definition: adpcmenc.c:701
static av_cold int s302m_encode_init(AVCodecContext *avctx)
Definition: s302menc.c:34

Definition at line 165 of file s302menc.c.