libavfilter/buffersink.c File Reference

buffer sink More...

#include "libavutil/audio_fifo.h"
#include "libavutil/audioconvert.h"
#include "libavutil/avassert.h"
#include "libavutil/common.h"
#include "libavutil/mathematics.h"
#include "audio.h"
#include "avfilter.h"
#include "buffersink.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  BufferSinkContext

Functions

static av_cold void uninit (AVFilterContext *ctx)
static int start_frame (AVFilterLink *link, AVFilterBufferRef *buf)
int ff_buffersink_read_compat (AVFilterContext *ctx, AVFilterBufferRef **buf)
static int read_from_fifo (AVFilterContext *ctx, AVFilterBufferRef **pbuf, int nb_samples)
int ff_buffersink_read_samples_compat (AVFilterContext *ctx, AVFilterBufferRef **pbuf, int nb_samples)

Variables

AVFilter avfilter_vsink_buffer
AVFilter avfilter_asink_abuffer


Detailed Description

buffer sink

Definition in file buffersink.c.


Function Documentation

int ff_buffersink_read_compat ( AVFilterContext ctx,
AVFilterBufferRef **  buf 
)

Definition at line 62 of file buffersink.c.

Referenced by av_buffersink_read().

int ff_buffersink_read_samples_compat ( AVFilterContext ctx,
AVFilterBufferRef **  pbuf,
int  nb_samples 
)

Definition at line 103 of file buffersink.c.

Referenced by av_buffersink_read_samples().

static int read_from_fifo ( AVFilterContext ctx,
AVFilterBufferRef **  pbuf,
int  nb_samples 
) [static]

Definition at line 83 of file buffersink.c.

Referenced by ff_buffersink_read_samples_compat().

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

Definition at line 51 of file buffersink.c.

static av_cold void uninit ( AVFilterContext ctx  )  [static]

Definition at line 43 of file buffersink.c.


Variable Documentation

Initial value:

 {



    .name      = "abuffersink_old",

    .description = NULL_IF_CONFIG_SMALL("Buffer audio frames, and make them available to the end of the filter graph."),
    .priv_size = sizeof(BufferSinkContext),
    .uninit    = uninit,

    .inputs    = (const AVFilterPad[]) {{ .name           = "default",
                                          .type           = AVMEDIA_TYPE_AUDIO,
                                          .filter_samples = start_frame,
                                          .min_perms      = AV_PERM_READ,
                                          .needs_fifo     = 1 },
                                        { .name = NULL }},
    .outputs   = NULL,
}

Definition at line 162 of file buffersink.c.

Referenced by avfilter_register_all().

Initial value:

 {



    .name      = "buffersink_old",

    .description = NULL_IF_CONFIG_SMALL("Buffer video frames, and make them available to the end of the filter graph."),
    .priv_size = sizeof(BufferSinkContext),
    .uninit    = uninit,

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

Definition at line 143 of file buffersink.c.

Referenced by avfilter_register_all().


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