FFmpeg  1.2.12
formats.h
Go to the documentation of this file.
1 /*
2  * This file is part of FFmpeg.
3  *
4  * FFmpeg is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * FFmpeg is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with FFmpeg; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17  */
18 
19 #ifndef AVFILTER_FORMATS_H
20 #define AVFILTER_FORMATS_H
21 
22 #include "avfilter.h"
23 
65  unsigned format_count;
66  int *formats;
67 
68  unsigned refcount;
69  struct AVFilterFormats ***refs;
70 };
71 
85 typedef struct AVFilterChannelLayouts {
86  uint64_t *channel_layouts;
88  char all_layouts;
89  char all_counts;
90 
91  unsigned refcount;
94 
102 #define FF_COUNT2LAYOUT(c) (0x8000000000000000ULL | (c))
103 
108 #define FF_LAYOUT2COUNT(l) (((l) & 0x8000000000000000ULL) ? \
109  (int)((l) & 0x7FFFFFFF) : 0)
110 
122  AVFilterFormats *b);
123 
130 
136 
138 
139 
148  AVFilterFormats *samplerates);
149 
156 
157 int ff_add_channel_layout(AVFilterChannelLayouts **l, uint64_t channel_layout);
158 
163  AVFilterChannelLayouts **ref);
164 
169 
171  AVFilterChannelLayouts **newref);
172 
174 
182 
183 
191 AVFilterFormats *ff_make_format_list(const int *fmts);
192 
201 int ff_add_format(AVFilterFormats **avff, int64_t fmt);
202 
207 
212 
222  enum AVMediaType type);
223 
237 
254 
268 void ff_formats_changeref(AVFilterFormats **oldref, AVFilterFormats **newref);
269 
270 #endif /* AVFILTER_FORMATS_H */