1 /*
2 * Copyright (c) 2003 Tobias Diedrich
3 *
4 * This file is part of FFmpeg.
5 *
6 * FFmpeg is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * FFmpeg is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License along
17 * with FFmpeg; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 */
20
24
33
35 {
37
39 }
40
42 {
51 };
52
54
55 return 0;
56 }
57
59 {
63
66
69
71
72 return 0;
73 }
74
76 {
79 ) {
81 } else
83 }
84
92
98 }
99
101
105 "state=%d top_field_first=%d repeat_first_field=%d\n",
107 state ^= 1;
108 }
109
110 if (state == 0) {
112
114 if (!new)
116
118
126 }
127 state = 1;
128 }
129 } else {
135 }
136
138
141
143 if (!new)
145
147 state = 0;
148 } else {
155 }
156 }
157 }
158
160
163 }
164
166 {
171 },
173 };
174
176 {
179 },
181 };
182
184 .
name =
"repeatfields",
188 .
inputs = repeatfields_inputs,
189 .
outputs = repeatfields_outputs,
191 };