1 /*
2 * H.263i decoder
3 *
4 * This file is part of FFmpeg.
5 *
6 * FFmpeg is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (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 GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with FFmpeg; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 */
20
23
24 /* don't understand why they choose a different header ! */
26 {
27 int format;
28
31 }
32
33 /* picture header */
36 return -1;
37 }
39
42 return -1; /* marker */
43 }
46 return -1; /* h263 id */
47 }
51
53 if (format == 0 || format == 6) {
55 return -1;
56 }
58
60
62
65 return -1; /* SAC: off */
66 }
70
71 if (format < 6) {
76 } else {
78 if(format == 0 || format == 7){
80 return -1;
81 }
93 }
94 if(format == 6){
99 if(ar == 15){
102 } else {
104 }
107 }
108
110 skip_bits1(&s->
gb);
/* Continuous Presence Multipoint mode: off */
111
113 skip_bits(&s->
gb, 3);
//temporal reference for B-frame
115 }
116
117 /* PEI */
121
124
126
127 return 0;
128 }
129
143 },
144 };