libavfilter/src_movie.c File Reference

movie video source More...

#include <float.h>
#include "libavutil/avstring.h"
#include "libavutil/opt.h"
#include "libavutil/imgutils.h"
#include "libavformat/avformat.h"
#include "audio.h"
#include "avcodec.h"
#include "avfilter.h"
#include "formats.h"

Go to the source code of this file.

Data Structures

struct  MovieContext

Defines

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

Functions

static const char * movie_get_name (void *ctx)
static av_cold int movie_common_init (AVFilterContext *ctx, const char *args, void *opaque, enum AVMediaType type)
static av_cold void movie_common_uninit (AVFilterContext *ctx)

Variables

static const AVOption movie_options []
static const AVClass movie_class


Detailed Description

movie video source

Todo:
use direct rendering (no allocation of a new frame)

support a PTS correction mechanism

support more than one output stream

Definition in file src_movie.c.


Define Documentation

#define OFFSET (  )     offsetof(MovieContext, x)

Definition at line 68 of file src_movie.c.


Function Documentation

static av_cold int movie_common_init ( AVFilterContext ctx,
const char *  args,
void *  opaque,
enum AVMediaType  type 
) [static]

Definition at line 92 of file src_movie.c.

static av_cold void movie_common_uninit ( AVFilterContext ctx  )  [static]

Definition at line 189 of file src_movie.c.

static const char* movie_get_name ( void *  ctx  )  [static]

Definition at line 81 of file src_movie.c.


Variable Documentation

const AVClass movie_class [static]

Initial value:

 {
    "MovieContext",
    movie_get_name,
    movie_options
}

Definition at line 86 of file src_movie.c.

const AVOption movie_options[] [static]

Initial value:

 {
{"format_name",  "set format name",         OFFSET(format_name),  AV_OPT_TYPE_STRING, {.str =  0},  CHAR_MIN, CHAR_MAX },
{"f",            "set format name",         OFFSET(format_name),  AV_OPT_TYPE_STRING, {.str =  0},  CHAR_MIN, CHAR_MAX },
{"stream_index", "set stream index",        OFFSET(stream_index), AV_OPT_TYPE_INT,    {.dbl = -1},  -1,       INT_MAX  },
{"si",           "set stream index",        OFFSET(stream_index), AV_OPT_TYPE_INT,    {.dbl = -1},  -1,       INT_MAX  },
{"seek_point",   "set seekpoint (seconds)", OFFSET(seek_point_d), AV_OPT_TYPE_DOUBLE, {.dbl =  0},  0,        (INT64_MAX-1) / 1000000 },
{"sp",           "set seekpoint (seconds)", OFFSET(seek_point_d), AV_OPT_TYPE_DOUBLE, {.dbl =  0},  0,        (INT64_MAX-1) / 1000000 },
{"loop",         "set loop count",          OFFSET(loop_count),   AV_OPT_TYPE_INT,    {.dbl =  1},  0,        INT_MAX  },
{NULL},
}

Definition at line 70 of file src_movie.c.


Generated on Fri Oct 26 02:48:01 2012 for FFmpeg by  doxygen 1.5.8