00001 /* 00002 * This file is part of FFMpeg. 00003 * 00004 * FFmpeg is free software; you can redistribute it and/or 00005 * modify it under the terms of the GNU Lesser General Public 00006 * License as published by the Free Software Foundation; either 00007 * version 2.1 of the License, or (at your option) any later version. 00008 * 00009 * FFmpeg is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 * Lesser General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU Lesser General Public 00015 * License along with FFmpeg; if not, write to the Free Software 00016 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00017 */ 00018 00019 #ifndef AVFILTER_FORMATS_H 00020 #define AVFILTER_FORMATS_H 00021 00022 #include "avfilter.h" 00023 00024 typedef struct AVFilterChannelLayouts { 00025 uint64_t *channel_layouts; 00026 int nb_channel_layouts; 00027 00028 unsigned refcount; 00029 struct AVFilterChannelLayouts ***refs; 00030 } AVFilterChannelLayouts; 00031 00040 AVFilterChannelLayouts *ff_merge_channel_layouts(AVFilterChannelLayouts *a, 00041 AVFilterChannelLayouts *b); 00042 AVFilterFormats *ff_merge_samplerates(AVFilterFormats *a, 00043 AVFilterFormats *b); 00044 00049 AVFilterChannelLayouts *ff_all_channel_layouts(void); 00050 AVFilterFormats *ff_all_samplerates(void); 00051 00052 AVFilterChannelLayouts *avfilter_make_format64_list(const int64_t *fmts); 00053 00054 00060 void ff_set_common_channel_layouts(AVFilterContext *ctx, 00061 AVFilterChannelLayouts *layouts); 00062 void ff_set_common_samplerates(AVFilterContext *ctx, 00063 AVFilterFormats *samplerates); 00064 00065 int ff_add_channel_layout(AVFilterChannelLayouts **l, uint64_t channel_layout); 00066 00070 void ff_channel_layouts_ref(AVFilterChannelLayouts *f, 00071 AVFilterChannelLayouts **ref); 00072 00076 void ff_channel_layouts_unref(AVFilterChannelLayouts **ref); 00077 00078 void ff_channel_layouts_changeref(AVFilterChannelLayouts **oldref, 00079 AVFilterChannelLayouts **newref); 00080 00081 int ff_default_query_formats(AVFilterContext *ctx); 00082 00083 #endif // AVFILTER_FORMATS_H