libavfilter/formats.h File Reference

#include "avfilter.h"

Go to the source code of this file.

Data Structures

struct  AVFilterChannelLayouts

Functions

AVFilterChannelLayoutsff_merge_channel_layouts (AVFilterChannelLayouts *a, AVFilterChannelLayouts *b)
 Return a channel layouts/samplerates list which contains the intersection of the layouts/samplerates of a and b.
AVFilterFormatsff_merge_samplerates (AVFilterFormats *a, AVFilterFormats *b)
AVFilterChannelLayoutsff_all_channel_layouts (void)
 Construct an empty AVFilterChannelLayouts/AVFilterFormats struct -- representing any channel layout/sample rate.
AVFilterFormatsff_all_samplerates (void)
AVFilterChannelLayoutsavfilter_make_format64_list (const int64_t *fmts)
void ff_set_common_channel_layouts (AVFilterContext *ctx, AVFilterChannelLayouts *layouts)
 A helper for query_formats() which sets all links to the same list of channel layouts/sample rates.
void ff_set_common_samplerates (AVFilterContext *ctx, AVFilterFormats *samplerates)
int ff_add_channel_layout (AVFilterChannelLayouts **l, uint64_t channel_layout)
void ff_channel_layouts_ref (AVFilterChannelLayouts *f, AVFilterChannelLayouts **ref)
 Add *ref as a new reference to f.
void ff_channel_layouts_unref (AVFilterChannelLayouts **ref)
 Remove a reference to a channel layouts list.
void ff_channel_layouts_changeref (AVFilterChannelLayouts **oldref, AVFilterChannelLayouts **newref)
int ff_default_query_formats (AVFilterContext *ctx)


Function Documentation

AVFilterChannelLayouts* avfilter_make_format64_list ( const int64_t *  fmts  ) 

Definition at line 225 of file formats.c.

Referenced by query_formats().

int ff_add_channel_layout ( AVFilterChannelLayouts **  l,
uint64_t  channel_layout 
)

Definition at line 258 of file formats.c.

Referenced by init(), query_formats(), and reduce_formats_on_filter().

AVFilterChannelLayouts* ff_all_channel_layouts ( void   ) 

Construct an empty AVFilterChannelLayouts/AVFilterFormats struct -- representing any channel layout/sample rate.

Definition at line 314 of file formats.c.

Referenced by ff_default_query_formats(), and query_formats().

AVFilterFormats* ff_all_samplerates ( void   ) 

Definition at line 308 of file formats.c.

Referenced by ff_default_query_formats(), and query_formats().

void ff_channel_layouts_changeref ( AVFilterChannelLayouts **  oldref,
AVFilterChannelLayouts **  newref 
)

Definition at line 391 of file formats.c.

Referenced by avfilter_insert_filter().

void ff_channel_layouts_ref ( AVFilterChannelLayouts f,
AVFilterChannelLayouts **  ref 
)

Add *ref as a new reference to f.

Definition at line 327 of file formats.c.

Referenced by ff_set_common_channel_layouts(), and query_formats().

void ff_channel_layouts_unref ( AVFilterChannelLayouts **  ref  ) 

Remove a reference to a channel layouts list.

Definition at line 373 of file formats.c.

Referenced by avfilter_free(), and pick_format().

int ff_default_query_formats ( AVFilterContext ctx  ) 

Definition at line 452 of file formats.c.

Referenced by avfilter_default_query_formats(), main(), and query_formats().

AVFilterChannelLayouts* ff_merge_channel_layouts ( AVFilterChannelLayouts a,
AVFilterChannelLayouts b 
)

Return a channel layouts/samplerates list which contains the intersection of the layouts/samplerates of a and b.

Also, all the references of a, all the references of b, and a and b themselves will be deallocated.

If a and b do not share any common elements, neither is modified, and NULL is returned.

Definition at line 134 of file formats.c.

Referenced by insert_conv_filter(), and query_formats().

AVFilterFormats* ff_merge_samplerates ( AVFilterFormats a,
AVFilterFormats b 
)

Definition at line 107 of file formats.c.

Referenced by query_formats().

void ff_set_common_channel_layouts ( AVFilterContext ctx,
AVFilterChannelLayouts layouts 
)

A helper for query_formats() which sets all links to the same list of channel layouts/sample rates.

If there are no links hooked to this filter, the list is freed.

Definition at line 427 of file formats.c.

Referenced by ff_default_query_formats(), and query_formats().

void ff_set_common_samplerates ( AVFilterContext ctx,
AVFilterFormats samplerates 
)

Definition at line 434 of file formats.c.

Referenced by ff_default_query_formats(), and query_formats().


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