FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
ffmdec.c File Reference
#include <stdint.h>
#include "libavutil/imgutils.h"
#include "libavutil/internal.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/intfloat.h"
#include "libavutil/opt.h"
#include "libavutil/avassert.h"
#include "libavutil/avstring.h"
#include "libavutil/pixdesc.h"
#include "libavcodec/internal.h"
#include "avformat.h"
#include "internal.h"
#include "ffm.h"
#include "avio_internal.h"

Go to the source code of this file.

Macros

#define VALIDATE_PARAMETER(parameter, name, check)
 

Functions

static int ffm_is_avail_data (AVFormatContext *s, int size)
 
static int ffm_resync (AVFormatContext *s, uint32_t state)
 
static int ffm_read_data (AVFormatContext *s, uint8_t *buf, int size, int header)
 
static int64_t ffm_seek1 (AVFormatContext *s, int64_t pos1)
 
static int64_t get_dts (AVFormatContext *s, int64_t pos)
 
static void adjust_write_index (AVFormatContext *s)
 
static int ffm_append_recommended_configuration (AVStream *st, char **conf)
 
static int ffm2_read_header (AVFormatContext *s)
 
static int ffm_read_header (AVFormatContext *s)
 
static int ffm_read_packet (AVFormatContext *s, AVPacket *pkt)
 
static int ffm_seek (AVFormatContext *s, int stream_index, int64_t wanted_pts, int flags)
 
static int ffm_probe (AVProbeData *p)
 

Variables

static const AVOption options []
 
static const AVClass ffm_class
 
AVInputFormat ff_ffm_demuxer
 

Macro Definition Documentation

#define VALIDATE_PARAMETER (   parameter,
  name,
  check 
)
Value:
{ \
if (check) { \
av_log(s, AV_LOG_ERROR, "Invalid " name " %d\n", codecpar->parameter); \
goto fail; \
} \
}
const char * s
Definition: avisynth_c.h:768
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
Definition: error.h:59
#define av_log(a,...)
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
Definition: log.h:176
#define fail()
Definition: checkasm.h:84
if(ret< 0)
Definition: vf_mcdeint.c:282
const char * name
Definition: opengl_enc.c:103
#define check(x, y, S, v)

Definition at line 272 of file ffmdec.c.

Referenced by ffm2_read_header(), and ffm_read_header().

Function Documentation

static int ffm_is_avail_data ( AVFormatContext s,
int  size 
)
static

Definition at line 38 of file ffmdec.c.

Referenced by ffm_read_packet().

static int ffm_resync ( AVFormatContext s,
uint32_t  state 
)
static

Definition at line 74 of file ffmdec.c.

Referenced by ffm_read_data().

static int ffm_read_data ( AVFormatContext s,
uint8_t buf,
int  size,
int  header 
)
static

Definition at line 88 of file ffmdec.c.

Referenced by ffm_read_packet().

static int64_t ffm_seek1 ( AVFormatContext s,
int64_t  pos1 
)
static

Definition at line 173 of file ffmdec.c.

Referenced by ffm_seek(), and get_dts().

static int64_t get_dts ( AVFormatContext s,
int64_t  pos 
)
static

Definition at line 185 of file ffmdec.c.

Referenced by adjust_write_index(), and ffm_seek().

static void adjust_write_index ( AVFormatContext s)
static

Definition at line 197 of file ffmdec.c.

Referenced by ffm2_read_header(), and ffm_read_header().

static int ffm_append_recommended_configuration ( AVStream st,
char **  conf 
)
static

Definition at line 251 of file ffmdec.c.

Referenced by ffm2_read_header().

static int ffm2_read_header ( AVFormatContext s)
static

Definition at line 280 of file ffmdec.c.

Referenced by ffm_read_header().

static int ffm_read_header ( AVFormatContext s)
static

Definition at line 536 of file ffmdec.c.

static int ffm_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 723 of file ffmdec.c.

static int ffm_seek ( AVFormatContext s,
int  stream_index,
int64_t  wanted_pts,
int  flags 
)
static

Definition at line 785 of file ffmdec.c.

static int ffm_probe ( AVProbeData p)
static

Definition at line 847 of file ffmdec.c.

Variable Documentation

const AVOption options[]
static
Initial value:
= {
{"server_attached", NULL, 0x42, AV_OPT_TYPE_BOOL, {.i64 = 0}, 0, 1, AV_OPT_FLAG_EXPORT },
{"ffm_write_index", NULL, 0x42, AV_OPT_TYPE_INT64, {.i64 = 0}, 0, INT64_MAX, AV_OPT_FLAG_EXPORT },
{"ffm_file_size", NULL, 0x42, AV_OPT_TYPE_INT64, {.i64 = 0}, 0, INT64_MAX, AV_OPT_FLAG_EXPORT },
{ NULL },
}
#define NULL
Definition: coverity.c:32
#define AV_OPT_FLAG_EXPORT
The option is intended for exporting values to the caller.
Definition: opt.h:287

Definition at line 856 of file ffmdec.c.

const AVClass ffm_class
static
Initial value:
= {
.class_name = "ffm demuxer",
.item_name = av_default_item_name,
.option = options,
}
static const AVOption options[]
Definition: ffmdec.c:856
#define LIBAVUTIL_VERSION_INT
Definition: version.h:85
av_default_item_name

Definition at line 863 of file ffmdec.c.

AVInputFormat ff_ffm_demuxer
Initial value:
= {
.name = "ffm",
.long_name = NULL_IF_CONFIG_SMALL("FFM (FFserver live feed)"),
.priv_data_size = sizeof(FFMContext),
.priv_class = &ffm_class,
}
static int read_seek(AVFormatContext *ctx, int stream_index, int64_t timestamp, int flags)
Definition: libcdio.c:153
static int ffm_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: ffmdec.c:723
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:176
static const AVClass ffm_class
Definition: ffmdec.c:863
static int ffm_probe(AVProbeData *p)
Definition: ffmdec.c:847
static int read_probe(AVProbeData *pd)
Definition: jvdec.c:55
static int read_header(FFV1Context *f)
Definition: ffv1dec.c:514
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
Definition: avio_reading.c:42
Definition: ffm.h:44
static int ffm_read_header(AVFormatContext *s)
Definition: ffmdec.c:536
static int ffm_seek(AVFormatContext *s, int stream_index, int64_t wanted_pts, int flags)
Definition: ffmdec.c:785

Definition at line 869 of file ffmdec.c.