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
28
29 /* don't understand why they choose a different header ! */
31 {
33
36 }
37
38 /* picture header */
41 return -1;
42 }
43 s->picture_number =
get_bits(&
s->gb, 8);
/* picture timestamp */
44
46 return -1; /* marker */
47 }
50 return -1; /* H.263 id */
51 }
54 skip_bits1(&
s->gb);
/* freeze picture release off */
55
59 return -1;
60 }
62
64
66
69 return -1; /* SAC: off */
70 }
73
77 s->avctx->sample_aspect_ratio.num = 12;
78 s->avctx->sample_aspect_ratio.den = 11;
79 } else {
83 return -1;
84 }
96 }
102 if(ar == 15){
103 s->avctx->sample_aspect_ratio.num =
get_bits(&
s->gb, 8);
// aspect ratio - width
104 s->avctx->sample_aspect_ratio.den =
get_bits(&
s->gb, 8);
// aspect ratio - height
105 } else {
107 }
108 if (
s->avctx->sample_aspect_ratio.num == 0)
110 }
111
113 skip_bits1(&
s->gb);
/* Continuous Presence Multipoint mode: off */
114
116 skip_bits(&
s->gb, 3);
//temporal reference for B-frame
118 }
119
120 /* PEI */
124
127
129
130 return 0;
131 }
132
148 },
149 };