libavfilter/internal.h File Reference

internal API functions More...

#include "avfilter.h"
#include "avfiltergraph.h"
#include "formats.h"

Go to the source code of this file.

Data Structures

struct  AVFilterPool
struct  AVFilterCommand

Defines

#define POOL_SIZE   32
#define FF_DPRINTF_START(ctx, func)   av_dlog(NULL, "%-16s: ", #func)

Functions

int ff_avfilter_graph_check_validity (AVFilterGraph *graphctx, AVClass *log_ctx)
 Check for the validity of graph.
int ff_avfilter_graph_config_links (AVFilterGraph *graphctx, AVClass *log_ctx)
 Configure all the links of graphctx.
int ff_avfilter_graph_config_formats (AVFilterGraph *graphctx, AVClass *log_ctx)
 Configure the formats of all the links in the graph.
void ff_avfilter_graph_update_heap (AVFilterGraph *graph, AVFilterLink *link)
 Update the position of a link in the age heap.
void ff_avfilter_default_free_buffer (AVFilterBuffer *buf)
 default handler for freeing audio/video buffer when there are no references left
int ff_fmt_is_in (int fmt, const int *fmts)
 Tell is a format is contained in the provided list terminated by -1.
int * ff_copy_int_list (const int *const list)
 Return a copy of a list of integers terminated by -1, or NULL in case of copy failure.
int64_t * ff_copy_int64_list (const int64_t *const list)
 Return a copy of a list of 64-bit integers, or NULL in case of copy failure.
int ff_parse_pixel_format (enum PixelFormat *ret, const char *arg, void *log_ctx)
 Parse a pixel format.
int ff_parse_sample_rate (int *ret, const char *arg, void *log_ctx)
 Parse a sample rate.
int ff_parse_time_base (AVRational *ret, const char *arg, void *log_ctx)
 Parse a time base.
int ff_parse_sample_format (int *ret, const char *arg, void *log_ctx)
 Parse a sample format name or a corresponding integer representation.
int ff_parse_channel_layout (int64_t *ret, const char *arg, void *log_ctx)
 Parse a channel layout or a corresponding integer representation.
static void ff_null_start_frame_keep_ref (AVFilterLink *inlink, AVFilterBufferRef *picref)
 Pass video frame along and keep an internal reference for later use.
void ff_update_link_current_pts (AVFilterLink *link, int64_t pts)
void ff_free_pool (AVFilterPool *pool)
void ff_command_queue_pop (AVFilterContext *filter)
void ff_dlog_link (void *ctx, AVFilterLink *link, int end)


Detailed Description

internal API functions

Definition in file internal.h.


Define Documentation

#define FF_DPRINTF_START ( ctx,
func   )     av_dlog(NULL, "%-16s: ", #func)

#define POOL_SIZE   32

Definition at line 31 of file internal.h.

Referenced by ff_default_get_video_buffer(), ff_free_pool(), and store_in_pool().


Function Documentation

void ff_avfilter_default_free_buffer ( AVFilterBuffer buf  ) 

default handler for freeing audio/video buffer when there are no references left

Definition at line 31 of file buffer.c.

Referenced by avfilter_get_audio_buffer_ref_from_arrays(), and avfilter_get_video_buffer_ref_from_arrays().

int ff_avfilter_graph_check_validity ( AVFilterGraph graphctx,
AVClass log_ctx 
)

Check for the validity of graph.

A graph is considered valid if all its input and output pads are connected.

Returns:
0 in case of success, a negative value otherwise

Definition at line 105 of file avfiltergraph.c.

Referenced by avfilter_graph_config().

int ff_avfilter_graph_config_formats ( AVFilterGraph graphctx,
AVClass log_ctx 
)

Configure the formats of all the links in the graph.

Definition at line 691 of file avfiltergraph.c.

Referenced by avfilter_graph_config().

int ff_avfilter_graph_config_links ( AVFilterGraph graphctx,
AVClass log_ctx 
)

Configure all the links of graphctx.

Returns:
0 in case of success, a negative value otherwise

Definition at line 135 of file avfiltergraph.c.

Referenced by avfilter_graph_config().

void ff_avfilter_graph_update_heap ( AVFilterGraph graph,
AVFilterLink link 
)

Update the position of a link in the age heap.

Definition at line 871 of file avfiltergraph.c.

Referenced by ff_update_link_current_pts().

void ff_command_queue_pop ( AVFilterContext filter  ) 

Definition at line 50 of file avfilter.c.

Referenced by avfilter_free(), and avfilter_start_frame().

int64_t* ff_copy_int64_list ( const int64_t *const   list  ) 

Return a copy of a list of 64-bit integers, or NULL in case of copy failure.

Definition at line 192 of file formats.c.

int* ff_copy_int_list ( const int *const   list  ) 

Return a copy of a list of integers terminated by -1, or NULL in case of copy failure.

Definition at line 185 of file formats.c.

void ff_dlog_link ( void *  ctx,
AVFilterLink link,
int  end 
)

int ff_fmt_is_in ( int  fmt,
const int *  fmts 
)

Tell is a format is contained in the provided list terminated by -1.

Definition at line 162 of file formats.c.

Referenced by config_input(), config_input_main(), config_input_overlay(), config_out_props(), and config_props().

void ff_free_pool ( AVFilterPool pool  ) 

Definition at line 79 of file buffer.c.

Referenced by avfilter_link_free(), and store_in_pool().

static void ff_null_start_frame_keep_ref ( AVFilterLink inlink,
AVFilterBufferRef picref 
) [inline, static]

Pass video frame along and keep an internal reference for later use.

Definition at line 147 of file internal.h.

int ff_parse_channel_layout ( int64_t *  ret,
const char *  arg,
void *  log_ctx 
)

Parse a channel layout or a corresponding integer representation.

Parameters:
ret 64bit integer pointer to where the value should be written.
arg string to parse
log_ctx log context
Returns:
0 in case of success, a negative AVERROR code on error

Definition at line 522 of file formats.c.

Referenced by init().

int ff_parse_pixel_format ( enum PixelFormat ret,
const char *  arg,
void *  log_ctx 
)

Parse a pixel format.

Parameters:
ret pixel format pointer to where the value should be written
arg string to parse
log_ctx log context
Returns:
0 in case of success, a negative AVERROR code on error

Definition at line 469 of file formats.c.

Referenced by init(), and init_video().

int ff_parse_sample_format ( int *  ret,
const char *  arg,
void *  log_ctx 
)

Parse a sample format name or a corresponding integer representation.

Parameters:
ret integer pointer to where the value should be written
arg string to parse
log_ctx log context
Returns:
0 in case of success, a negative AVERROR code on error

Definition at line 484 of file formats.c.

Referenced by init().

int ff_parse_sample_rate ( int *  ret,
const char *  arg,
void *  log_ctx 
)

Parse a sample rate.

Parameters:
ret unsigned integer pointer to where the value should be written
arg string to parse
log_ctx log context
Returns:
0 in case of success, a negative AVERROR code on error

Definition at line 510 of file formats.c.

Referenced by init().

int ff_parse_time_base ( AVRational ret,
const char *  arg,
void *  log_ctx 
)

Parse a time base.

Parameters:
ret unsigned AVRational pointer to where the value should be written
arg string to parse
log_ctx log context
Returns:
0 in case of success, a negative AVERROR code on error

Definition at line 499 of file formats.c.

void ff_update_link_current_pts ( AVFilterLink link,
int64_t  pts 
)

Definition at line 299 of file avfilter.c.

Referenced by avfilter_start_frame(), and ff_filter_samples().


Generated on Fri Oct 26 02:47:57 2012 for FFmpeg by  doxygen 1.5.8