1 /*
2 * FLV decoding.
3 * This file is part of FFmpeg.
4 *
5 * FFmpeg is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * FFmpeg is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with FFmpeg; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19
24
26 {
30 if (is11) {
32 } else {
34 }
35 }
36
38 {
40
41 /* picture header */
45 }
47 if (format != 0 && format != 1) {
50 }
54 switch (format) {
55 case 0:
58 break;
59 case 1:
62 break;
63 case 2:
64 width = 352;
65 height = 288;
66 break;
67 case 3:
68 width = 176;
69 height = 144;
70 break;
71 case 4:
72 width = 128;
73 height = 96;
74 break;
75 case 5:
76 width = 320;
77 height = 240;
78 break;
79 case 6:
80 width = 160;
81 height = 120;
82 break;
83 default:
84 width = height = 0;
85 break;
86 }
91
96
99
101
104
105 /* PEI */
108
110
113
118 }
119
121
122 return 0;
123 }
124
135 .max_lowres = 3,
139 },
140 };