1 /*
2 * FFV1 codec for libavcodec
3 *
4 * Copyright (c) 2003-2013 Michael Niedermayer <michaelni@gmx.at>
5 *
6 * This file is part of FFmpeg.
7 *
8 * FFmpeg is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * FFmpeg is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with FFmpeg; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23 /**
24 * @file
25 * FF Video Codec 1 (a lossless codec)
26 */
27
41
43 {
45
48
51
56
59
60 // defaults
63
64 return 0;
65 }
66
68 {
69 int j;
70
75
82 } else {
87 }
88 }
89
91 //FIXME only redo if state_transition changed
92 for (j = 1; j < 256; j++) {
95 }
96 }
97
98 return 0;
99 }
100
102 {
108 }
109 return 0;
110 }
111
113 {
114 int i;
115
118
127
128 if (!fs)
130
132 memcpy(fs, f, sizeof(*fs));
134
139
144 }
145 return 0;
146 }
147
149 {
150 int i;
151
159 }
160 return 0;
161 }
162
164 {
165 int i, j;
166
169
172
177 } else
179 } else {
185 }
186 }
187 }
188 }
189
190
192 {
194 int i, j;
195
199
203
208
211 }
213 }
214
221 }
223 }
224
227
228 return 0;
229 }