libavfilter/vsink_buffer.c File Reference

buffer video sink More...

#include "avfilter.h"
#include "vsink_buffer.h"

Go to the source code of this file.

Data Structures

struct  BufferSinkContext

Functions

static av_cold int init (AVFilterContext *ctx, const char *args, void *opaque)
static av_cold void uninit (AVFilterContext *ctx)
static void end_frame (AVFilterLink *inlink)
static int query_formats (AVFilterContext *ctx)
int av_vsink_buffer_get_video_buffer_ref (AVFilterContext *ctx, AVFilterBufferRef **picref, int flags)
 Get a video buffer data from buffer_sink and put it in picref.

Variables

AVFilter avfilter_vsink_buffersink


Detailed Description

buffer video sink

Definition in file vsink_buffer.c.


Function Documentation

int av_vsink_buffer_get_video_buffer_ref ( AVFilterContext buffer_sink,
AVFilterBufferRef **  picref,
int  flags 
)

Get a video buffer data from buffer_sink and put it in picref.

Parameters:
buffer_sink pointer to a buffer sink context
flags a combination of AV_VSINK_BUF_FLAG_* flags
Returns:
>= 0 in case of success, a negative AVERROR code in case of failure

Definition at line 73 of file vsink_buffer.c.

Referenced by output_packet(), and video_thread().

static void end_frame ( AVFilterLink inlink  )  [static]

Definition at line 56 of file vsink_buffer.c.

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

Definition at line 34 of file vsink_buffer.c.

static int query_formats ( AVFilterContext ctx  )  [static]

Definition at line 65 of file vsink_buffer.c.

static av_cold void uninit ( AVFilterContext ctx  )  [static]

Definition at line 47 of file vsink_buffer.c.


Variable Documentation

Initial value:

 {
    .name      = "buffersink",
    .priv_size = sizeof(BufferSinkContext),
    .init      = init,
    .uninit    = uninit,

    .query_formats = query_formats,

    .inputs    = (AVFilterPad[]) {{ .name          = "default",
                                    .type          = AVMEDIA_TYPE_VIDEO,
                                    .end_frame     = end_frame,
                                    .min_perms     = AV_PERM_READ, },
                                  { .name = NULL }},
    .outputs   = (AVFilterPad[]) {{ .name = NULL }},
}

Definition at line 97 of file vsink_buffer.c.


Generated on Fri Oct 26 02:38:20 2012 for FFmpeg by  doxygen 1.5.8