buffer video sink More...
#include "libavutil/fifo.h"
#include "avfilter.h"
#include "buffersink.h"
#include "internal.h"
Go to the source code of this file.
buffer video sink
Definition in file sink_buffer.c.
#define FIFO_INIT_SIZE 8 |
Definition at line 70 of file sink_buffer.c.
Referenced by common_init().
static av_cold int asink_init | ( | AVFilterContext * | ctx, | |
const char * | args, | |||
void * | opaque | |||
) | [static] |
Definition at line 227 of file sink_buffer.c.
static int asink_query_formats | ( | AVFilterContext * | ctx | ) | [static] |
Definition at line 262 of file sink_buffer.c.
static av_cold void asink_uninit | ( | AVFilterContext * | ctx | ) | [static] |
Definition at line 252 of file sink_buffer.c.
AVABufferSinkParams* av_abuffersink_params_alloc | ( | void | ) |
Create an AVABufferSinkParams structure.
Must be freed with av_free().
Definition at line 42 of file sink_buffer.c.
Referenced by lavfi_read_header().
int av_buffersink_get_buffer_ref | ( | AVFilterContext * | buffer_sink, | |
AVFilterBufferRef ** | bufref, | |||
int | flags | |||
) |
Get an audio/video buffer data from buffer_sink and put it in bufref.
This function works with both audio and video buffer sinks.
buffer_sink | pointer to a buffersink or abuffersink context | |
flags | a combination of AV_BUFFERSINK_FLAG_* flags |
Definition at line 119 of file sink_buffer.c.
Referenced by av_vsink_buffer_get_video_buffer_ref(), lavfi_read_packet(), transcode_video(), and video_thread().
AVBufferSinkParams* av_buffersink_params_alloc | ( | void | ) |
Create an AVBufferSinkParams structure.
Must be freed with av_free().
Definition at line 31 of file sink_buffer.c.
Referenced by configure_video_filters(), and lavfi_read_header().
int av_buffersink_poll_frame | ( | AVFilterContext * | ctx | ) |
Get the number of immediately available frames.
Definition at line 144 of file sink_buffer.c.
Referenced by transcode_video().
int av_vsink_buffer_get_video_buffer_ref | ( | AVFilterContext * | buffer_sink, | |
AVFilterBufferRef ** | picref, | |||
int | flags | |||
) |
Definition at line 153 of file sink_buffer.c.
Referenced by main().
static av_cold int common_init | ( | AVFilterContext * | ctx | ) | [static] |
Definition at line 72 of file sink_buffer.c.
Referenced by asink_init(), and vsink_init().
static av_cold void common_uninit | ( | AVFilterContext * | ctx | ) | [static] |
Definition at line 84 of file sink_buffer.c.
Referenced by asink_uninit(), and vsink_uninit().
static void end_frame | ( | AVFilterLink * | inlink | ) | [static] |
Definition at line 99 of file sink_buffer.c.
Referenced by filter_samples().
static void filter_samples | ( | AVFilterLink * | link, | |
AVFilterBufferRef * | samplesref | |||
) | [static] |
Definition at line 222 of file sink_buffer.c.
static av_cold int vsink_init | ( | AVFilterContext * | ctx, | |
const char * | args, | |||
void * | opaque | |||
) | [static] |
Definition at line 162 of file sink_buffer.c.
static int vsink_query_formats | ( | AVFilterContext * | ctx | ) | [static] |
Definition at line 193 of file sink_buffer.c.
static av_cold void vsink_uninit | ( | AVFilterContext * | ctx | ) | [static] |
Definition at line 186 of file sink_buffer.c.
{ .name = "abuffersink", .description = NULL_IF_CONFIG_SMALL("Buffer audio frames, and make them available to the end of the filter graph."), .init = asink_init, .uninit = asink_uninit, .priv_size = sizeof(BufferSinkContext), .query_formats = asink_query_formats, .inputs = (const AVFilterPad[]) {{ .name = "default", .type = AVMEDIA_TYPE_AUDIO, .filter_samples = filter_samples, .min_perms = AV_PERM_READ, }, { .name = NULL }}, .outputs = (const AVFilterPad[]) {{ .name = NULL }}, }
Definition at line 282 of file sink_buffer.c.
{ .name = "buffersink", .description = NULL_IF_CONFIG_SMALL("Buffer video frames, and make them available to the end of the filter graph."), .priv_size = sizeof(BufferSinkContext), .init = vsink_init, .uninit = vsink_uninit, .query_formats = vsink_query_formats, .inputs = (const AVFilterPad[]) {{ .name = "default", .type = AVMEDIA_TYPE_VIDEO, .end_frame = end_frame, .min_perms = AV_PERM_READ, }, { .name = NULL }}, .outputs = (const AVFilterPad[]) {{ .name = NULL }}, }
Definition at line 201 of file sink_buffer.c.