libavfilter/vf_fps.c File Reference

a filter enforcing given constant framerate More...

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

Go to the source code of this file.

Data Structures

struct  FPSContext

Defines

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

Functions

static av_cold int init (AVFilterContext *ctx, const char *args, void *opaque)
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 void end_frame (AVFilterLink *inlink)
static void null_start_frame (AVFilterLink *link, AVFilterBufferRef *buf)
static void null_draw_slice (AVFilterLink *link, int y, int h, int slice_dir)

Variables

static const AVOption options []
class {
      class_name = "FPS filter"
      item_name = av_default_item_name
      option = options
      version = LIBAVUTIL_VERSION_INT
}; 
AVFilter avfilter_vf_fps


Detailed Description

a filter enforcing given constant framerate

Definition in file vf_fps.c.


Define Documentation

#define OFFSET (  )     offsetof(FPSContext, x)

Definition at line 54 of file vf_fps.c.

#define V   AV_OPT_FLAG_VIDEO_PARAM

Definition at line 55 of file vf_fps.c.


Function Documentation

static int config_props ( AVFilterLink link  )  [static]

Definition at line 116 of file vf_fps.c.

static void end_frame ( AVFilterLink inlink  )  [static]

Definition at line 171 of file vf_fps.c.

static void flush_fifo ( AVFifoBuffer fifo  )  [static]

Definition at line 95 of file vf_fps.c.

Referenced by end_frame(), and uninit().

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

Definition at line 68 of file vf_fps.c.

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

Definition at line 251 of file vf_fps.c.

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

Definition at line 247 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 104 of file vf_fps.c.

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

Definition at line 159 of file vf_fps.c.


Variable Documentation

const { ... } [static]

Initial value:

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

    .init      = init,
    .uninit    = uninit,

    .priv_size = sizeof(FPSContext),

    .inputs    = (AVFilterPad[]) {{ .name            = "default",
                                    .type            = AVMEDIA_TYPE_VIDEO,
                                    .start_frame     = null_start_frame,
                                    .draw_slice      = null_draw_slice,
                                    .end_frame       = end_frame, },
                                  { .name = NULL}},
    .outputs   = (AVFilterPad[]) {{ .name            = "default",
                                    .type            = AVMEDIA_TYPE_VIDEO,
                                    .request_frame   = request_frame,
                                    .config_props    = config_props},
                                  { .name = NULL}},
}

Definition at line 255 of file vf_fps.c.

class_name = "FPS filter"

Definition at line 62 of file vf_fps.c.

item_name = av_default_item_name

Definition at line 63 of file vf_fps.c.

Definition at line 64 of file vf_fps.c.

const AVOption options[] [static]

Initial value:

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

Definition at line 56 of file vf_fps.c.

Definition at line 65 of file vf_fps.c.


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