All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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 "internal.h"
#include "avformat.h"

Go to the source code of this file.

Data Structures

struct  SERDemuxerContext


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


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


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

Macro Definition Documentation


Definition at line 29 of file serdec.c.

Referenced by ser_probe().

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

Definition at line 121 of file serdec.c.


Definition at line 122 of file serdec.c.

Function Documentation

static int ser_probe ( AVProbeData pd)

Definition at line 38 of file serdec.c.

static int ser_read_header ( AVFormatContext s)

Definition at line 46 of file serdec.c.

static int ser_read_packet ( AVFormatContext s,
AVPacket pkt 

Definition at line 102 of file serdec.c.

Variable Documentation

const AVOption ser_options[]
Initial value:
= {
{ "framerate", "set frame rate", OFFSET(framerate), AV_OPT_TYPE_VIDEO_RATE, {.str = "25"}, 0, INT_MAX, DEC },
{ NULL },
#define NULL
Definition: coverity.c:32
#define DEC
Definition: serdec.c:122
offset must point to AVRational
Definition: opt.h:236
#define OFFSET(x)
Definition: serdec.c:121

Definition at line 123 of file serdec.c.

const AVClass ser_demuxer_class
Initial value:
= {
.class_name = "ser demuxer",
.item_name = av_default_item_name,
.option = ser_options,
Definition: version.h:85
const char * av_default_item_name(void *ptr)
Return the context name.
Definition: log.c:191
static const AVOption ser_options[]
Definition: serdec.c:123

Definition at line 128 of file serdec.c.

AVInputFormat ff_ser_demuxer
Initial value:
= {
.name = "ser",
.long_name = NULL_IF_CONFIG_SMALL("SER (Simple uncompressed video format for astronomical capturing)"),
.priv_data_size = sizeof(SERDemuxerContext),
.extensions = "ser",
.raw_codec_id = AV_CODEC_ID_RAWVIDEO,
.priv_class = &ser_demuxer_class,
static int ser_probe(AVProbeData *pd)
Definition: serdec.c:38
static int ser_read_header(AVFormatContext *s)
Definition: serdec.c:46
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
static const AVClass ser_demuxer_class
Definition: serdec.c:128
static int read_probe(AVProbeData *pd)
Definition: jvdec.c:55
static int read_header(FFV1Context *f)
Definition: ffv1dec.c:530
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
Definition: avio_reading.c:42
Use generic index building code.
Definition: avformat.h:470
#define flags(name, subs,...)
Definition: cbs_av1.c:596
static int ser_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: serdec.c:102

Definition at line 135 of file serdec.c.