libavfilter/vf_fps.c File Reference

a filter enforcing given constant framerate More...

#include "libavutil/common.h"
#include "libavutil/fifo.h"
#include "libavutil/mathematics.h"
#include "libavutil/opt.h"
#include "libavutil/parseutils.h"
#include "avfilter.h"
#include "internal.h"
#include "video.h"

Go to the source code of this file.

Data Structures

struct  FPSContext


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


static av_cold int init (AVFilterContext *ctx, const char *args)
static void flush_fifo (AVFifoBuffer *fifo)
static av_cold void uninit (AVFilterContext *ctx)
static int config_props (AVFilterLink *link)
static int request_frame (AVFilterLink *outlink)
static int write_to_fifo (AVFifoBuffer *fifo, AVFilterBufferRef *buf)
static int end_frame (AVFilterLink *inlink)
static int null_start_frame (AVFilterLink *link, AVFilterBufferRef *buf)
static int null_draw_slice (AVFilterLink *link, int y, int h, int slice_dir)


static const AVOption fps_options []
AVFilter avfilter_vf_fps

Detailed Description

a filter enforcing given constant framerate

Definition in file vf_fps.c.

Define Documentation


Definition at line 59 of file vf_fps.c.

#define OFFSET (  )     offsetof(FPSContext, x)

Definition at line 57 of file vf_fps.c.


Definition at line 58 of file vf_fps.c.

Function Documentation


static int config_props ( AVFilterLink link  )  [static]

Definition at line 115 of file vf_fps.c.

static int end_frame ( AVFilterLink inlink  )  [static]

Definition at line 175 of file vf_fps.c.

static void flush_fifo ( AVFifoBuffer fifo  )  [static]

Definition at line 94 of file vf_fps.c.

Referenced by end_frame(), and uninit().

static av_cold int init ( AVFilterContext ctx,
const char *  args 
) [static]

Definition at line 67 of file vf_fps.c.

static int null_draw_slice ( AVFilterLink link,
int  y,
int  h,
int  slice_dir 
) [static]

Definition at line 277 of file vf_fps.c.

static int null_start_frame ( AVFilterLink link,
AVFilterBufferRef buf 
) [static]

Definition at line 272 of file vf_fps.c.

static int request_frame ( AVFilterLink outlink  )  [static]

Definition at line 128 of file vf_fps.c.

static av_cold void uninit ( AVFilterContext ctx  )  [static]

Definition at line 103 of file vf_fps.c.

static int write_to_fifo ( AVFifoBuffer fifo,
AVFilterBufferRef buf 
) [static]

Definition at line 161 of file vf_fps.c.

Variable Documentation

Initial value:

    .name        = "fps",
    .description = NULL_IF_CONFIG_SMALL("Force constant framerate"),

    .init      = init,
    .uninit    = uninit,

    .priv_size = sizeof(FPSContext),

    .inputs    = (const AVFilterPad[]) {{ .name            = "default",
                                          .type            = AVMEDIA_TYPE_VIDEO,
                                          .min_perms       = AV_PERM_READ | AV_PERM_PRESERVE,
                                          .start_frame     = null_start_frame,
                                          .draw_slice      = null_draw_slice,
                                          .end_frame       = end_frame, },
                                        { .name = NULL}},
    .outputs   = (const AVFilterPad[]) {{ .name            = "default",
                                          .type            = AVMEDIA_TYPE_VIDEO,
                                          .rej_perms       = AV_PERM_WRITE,
                                          .request_frame   = request_frame,
                                          .config_props    = config_props},
                                        { .name = NULL}},
    .priv_class = &fps_class,

Definition at line 282 of file vf_fps.c.

const AVOption fps_options[] [static]

Initial value:

    { "fps", "A string describing desired output framerate", OFFSET(fps), AV_OPT_TYPE_STRING, { .str = "25" }, .flags = V|F },
    { NULL },

Definition at line 60 of file vf_fps.c.

Generated on Fri Oct 26 02:50:10 2012 for FFmpeg by  doxygen 1.5.8