All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
lavfi.c File Reference

libavfilter virtual input device More...

#include <float.h>
#include "libavutil/bprint.h"
#include "libavutil/channel_layout.h"
#include "libavutil/file.h"
#include "libavutil/imgutils.h"
#include "libavutil/internal.h"
#include "libavutil/log.h"
#include "libavutil/mem.h"
#include "libavutil/opt.h"
#include "libavutil/parseutils.h"
#include "libavutil/pixdesc.h"
#include "libavfilter/avfilter.h"
#include "libavfilter/avfiltergraph.h"
#include "libavfilter/buffersink.h"
#include "libavformat/avio_internal.h"
#include "libavformat/internal.h"
#include "avdevice.h"

Go to the source code of this file.

Data Structures

struct  LavfiContext


#define FAIL(ERR)   { ret = ERR; goto end; }
#define OFFSET(x)   offsetof(LavfiContext, x)


static int * create_all_formats (int n)
static av_cold int lavfi_read_close (AVFormatContext *avctx)
static int create_subcc_streams (AVFormatContext *avctx)
static av_cold int lavfi_read_header (AVFormatContext *avctx)
static int create_subcc_packet (AVFormatContext *avctx, AVFrame *frame, int sink_idx)
static int lavfi_read_packet (AVFormatContext *avctx, AVPacket *pkt)


static const AVOption options []
static const AVClass lavfi_class
AVInputFormat ff_lavfi_demuxer

Detailed Description

libavfilter virtual input device

Definition in file lavfi.c.

Macro Definition Documentation

#define FAIL (   ERR)    { ret = ERR; goto end; }

Referenced by lavfi_read_header().

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

Definition at line 487 of file lavfi.c.


Definition at line 489 of file lavfi.c.

Function Documentation

static int* create_all_formats ( int  n)

Definition at line 63 of file lavfi.c.

Referenced by lavfi_read_header().

static av_cold int lavfi_read_close ( AVFormatContext avctx)

Definition at line 84 of file lavfi.c.

Referenced by lavfi_read_header().

static int create_subcc_streams ( AVFormatContext avctx)

Definition at line 99 of file lavfi.c.

Referenced by lavfi_read_header().

static av_cold int lavfi_read_header ( AVFormatContext avctx)

Definition at line 120 of file lavfi.c.

static int create_subcc_packet ( AVFormatContext avctx,
AVFrame frame,
int  sink_idx 

Definition at line 358 of file lavfi.c.

Referenced by lavfi_read_packet().

static int lavfi_read_packet ( AVFormatContext avctx,
AVPacket pkt 

Definition at line 382 of file lavfi.c.

Variable Documentation

const AVOption options[]
Initial value:
= {
{ "graph", "set libavfilter graph", OFFSET(graph_str), AV_OPT_TYPE_STRING, {.str = NULL}, 0, 0, DEC },
{ "graph_file","set libavfilter graph filename", OFFSET(graph_filename), AV_OPT_TYPE_STRING, {.str = NULL}, 0, 0, DEC},
{ "dumpgraph", "dump graph to stderr", OFFSET(dump_graph), AV_OPT_TYPE_STRING, {.str = NULL}, 0, 0, DEC },
{ NULL },
#define NULL
Definition: coverity.c:32
#define OFFSET(x)
Definition: lavfi.c:487
#define DEC
Definition: lavfi.c:489

Definition at line 491 of file lavfi.c.

Referenced by lavfi_read_header().

const AVClass lavfi_class
Initial value:
= {
.class_name = "lavfi indev",
.item_name = av_default_item_name,
.option = options,
Definition: version.h:85
static const AVOption options[]
Definition: lavfi.c:491

Definition at line 498 of file lavfi.c.

AVInputFormat ff_lavfi_demuxer
Initial value:
= {
.name = "lavfi",
.long_name = NULL_IF_CONFIG_SMALL("Libavfilter virtual input device"),
.priv_data_size = sizeof(LavfiContext),
.priv_class = &lavfi_class,
static av_cold int lavfi_read_close(AVFormatContext *avctx)
Definition: lavfi.c:84
static const AVClass lavfi_class
Definition: lavfi.c:498
static av_cold int read_close(AVFormatContext *ctx)
Definition: libcdio.c:145
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:176
static av_cold int lavfi_read_header(AVFormatContext *avctx)
Definition: lavfi.c:120
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
static int lavfi_read_packet(AVFormatContext *avctx, AVPacket *pkt)
Definition: lavfi.c:382
static int flags
Definition: cpu.c:47
Demuxer will use avio_open, no opened file should be provided by the caller.
Definition: avformat.h:478

Definition at line 506 of file lavfi.c.