FFmpeg
Data Structures | Macros | Functions | Variables
serdec.c File Reference
#include "libavutil/imgutils.h"
#include "libavutil/parseutils.h"
#include "libavutil/pixdesc.h"
#include "libavutil/opt.h"
#include "demux.h"
#include "internal.h"
#include "avformat.h"

Go to the source code of this file.

Data Structures

struct  SERDemuxerContext
 

Macros

#define SER_MAGIC   "LUCAM-RECORDER"
 
#define OFFSET(x)   offsetof(SERDemuxerContext, x)
 
#define DEC   AV_OPT_FLAG_DECODING_PARAM
 

Functions

static int ser_probe (const AVProbeData *pd)
 
static int ser_read_header (AVFormatContext *s)
 
static int ser_read_packet (AVFormatContext *s, AVPacket *pkt)
 

Variables

static const AVOption ser_options []
 
static const AVClass ser_demuxer_class
 
const FFInputFormat ff_ser_demuxer
 

Macro Definition Documentation

◆ SER_MAGIC

#define SER_MAGIC   "LUCAM-RECORDER"

Definition at line 30 of file serdec.c.

◆ OFFSET

#define OFFSET (   x)    offsetof(SERDemuxerContext, x)

Definition at line 122 of file serdec.c.

◆ DEC

#define DEC   AV_OPT_FLAG_DECODING_PARAM

Definition at line 123 of file serdec.c.

Function Documentation

◆ ser_probe()

static int ser_probe ( const AVProbeData pd)
static

Definition at line 39 of file serdec.c.

◆ ser_read_header()

static int ser_read_header ( AVFormatContext s)
static

Definition at line 47 of file serdec.c.

◆ ser_read_packet()

static int ser_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 103 of file serdec.c.

Variable Documentation

◆ ser_options

const AVOption ser_options[]
static
Initial value:
= {
{ "framerate", "set frame rate", OFFSET(framerate), AV_OPT_TYPE_VIDEO_RATE, {.str = "25"}, 0, INT_MAX, DEC },
{ NULL },
}

Definition at line 124 of file serdec.c.

◆ ser_demuxer_class

const AVClass ser_demuxer_class
static
Initial value:
= {
.class_name = "ser demuxer",
.item_name = av_default_item_name,
.option = ser_options,
}

Definition at line 129 of file serdec.c.

◆ ff_ser_demuxer

const FFInputFormat ff_ser_demuxer
Initial value:
= {
.p.name = "ser",
.p.long_name = NULL_IF_CONFIG_SMALL("SER (Simple uncompressed video format for astronomical capturing)"),
.p.flags = AVFMT_GENERIC_INDEX,
.p.extensions = "ser",
.p.priv_class = &ser_demuxer_class,
.priv_data_size = sizeof(SERDemuxerContext),
.raw_codec_id = AV_CODEC_ID_RAWVIDEO,
}

Definition at line 136 of file serdec.c.

ser_read_packet
static int ser_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: serdec.c:103
AV_OPT_TYPE_VIDEO_RATE
@ AV_OPT_TYPE_VIDEO_RATE
Underlying C type is AVRational.
Definition: opt.h:315
AV_CODEC_ID_RAWVIDEO
@ AV_CODEC_ID_RAWVIDEO
Definition: codec_id.h:65
ser_probe
static int ser_probe(const AVProbeData *pd)
Definition: serdec.c:39
AVFMT_GENERIC_INDEX
#define AVFMT_GENERIC_INDEX
Use generic index building code.
Definition: avformat.h:480
read_packet
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
Definition: avio_read_callback.c:42
OFFSET
#define OFFSET(x)
Definition: serdec.c:122
framerate
float framerate
Definition: av1_levels.c:29
LIBAVUTIL_VERSION_INT
#define LIBAVUTIL_VERSION_INT
Definition: version.h:85
read_header
static int read_header(FFV1Context *f)
Definition: ffv1dec.c:540
NULL
#define NULL
Definition: coverity.c:32
DEC
#define DEC
Definition: serdec.c:123
av_default_item_name
const char * av_default_item_name(void *ptr)
Return the context name.
Definition: log.c:237
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:94
ser_demuxer_class
static const AVClass ser_demuxer_class
Definition: serdec.c:129
ser_read_header
static int ser_read_header(AVFormatContext *s)
Definition: serdec.c:47
read_probe
static int read_probe(const AVProbeData *p)
Definition: cdg.c:30
ser_options
static const AVOption ser_options[]
Definition: serdec.c:124
SERDemuxerContext
Definition: serdec.c:32