All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
s302m.c File Reference
#include "libavutil/intreadwrite.h"
#include "libavutil/opt.h"
#include "libavutil/log.h"
#include "avcodec.h"
#include "internal.h"
#include "mathops.h"

Go to the source code of this file.

Data Structures

struct  S302Context


#define AES3_HEADER_LEN   4


static int s302m_parse_frame_header (AVCodecContext *avctx, const uint8_t *buf, int buf_size)
static int s302m_decode_frame (AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt)


static const AVOption s302m_options []
static const AVClass s302m_class
AVCodec ff_s302m_decoder

Macro Definition Documentation

#define AES3_HEADER_LEN   4

Definition at line 30 of file s302m.c.

Referenced by s302m_decode_frame(), and s302m_parse_frame_header().

Definition at line 206 of file s302m.c.

Function Documentation

static int s302m_parse_frame_header ( AVCodecContext avctx,
const uint8_t buf,
int  buf_size 

Definition at line 37 of file s302m.c.

Referenced by s302m_decode_frame().

static int s302m_decode_frame ( AVCodecContext avctx,
void data,
int *  got_frame_ptr,
AVPacket avpkt 

Definition at line 96 of file s302m.c.

Variable Documentation

const AVOption s302m_options[]
Initial value:
= {
{"non_pcm_mode", "Chooses what to do with NON-PCM", 0x42, FF_OPT_TYPE_INT, {.i64 = 3}, 0, 3, FLAGS, "non_pcm_mode"},
{"copy" , "Pass NON-PCM through unchanged" , 0, FF_OPT_TYPE_CONST, {.i64 = 0}, 0, 3, FLAGS, "non_pcm_mode"},
{"drop" , "Drop NON-PCM" , 0, FF_OPT_TYPE_CONST, {.i64 = 1}, 0, 3, FLAGS, "non_pcm_mode"},
{"decode_copy" , "Decode if possible else passthrough", 0, FF_OPT_TYPE_CONST, {.i64 = 2}, 0, 3, FLAGS, "non_pcm_mode"},
{"decode_drop" , "Decode if possible else drop" , 0, FF_OPT_TYPE_CONST, {.i64 = 3}, 0, 3, FLAGS, "non_pcm_mode"},
#define NULL
Definition: coverity.c:32
#define FLAGS
Definition: s302m.c:206

Definition at line 207 of file s302m.c.

const AVClass s302m_class
Initial value:
= {
"SMPTE 302M Decoder",
Definition: version.h:62
static const AVOption s302m_options[]
Definition: s302m.c:207

Definition at line 216 of file s302m.c.

AVCodec ff_s302m_decoder
Initial value:
= {
.name = "s302m",
.long_name = NULL_IF_CONFIG_SMALL("SMPTE 302M"),
.priv_data_size = sizeof(S302Context),
.capabilities = CODEC_CAP_DR1,
.priv_class = &s302m_class,
#define CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:789
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:175
static const AVClass s302m_class
Definition: s302m.c:216
static int decode(AVCodecContext *avctx, void *data, int *got_sub, AVPacket *avpkt)
Definition: ccaption_dec.c:522
static int s302m_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt)
Definition: s302m.c:96

Definition at line 223 of file s302m.c.