OLD | NEW |
1 /* | 1 /* |
2 * ITU H263 bitstream decoder | 2 * ITU H263 bitstream decoder |
3 * Copyright (c) 2000,2001 Fabrice Bellard | 3 * Copyright (c) 2000,2001 Fabrice Bellard |
4 * H263+ support. | 4 * H263+ support. |
5 * Copyright (c) 2001 Juan J. Sierralta P | 5 * Copyright (c) 2001 Juan J. Sierralta P |
6 * Copyright (c) 2002-2004 Michael Niedermayer <michaelni@gmx.at> | 6 * Copyright (c) 2002-2004 Michael Niedermayer <michaelni@gmx.at> |
7 * | 7 * |
8 * This file is part of FFmpeg. | 8 * This file is part of FFmpeg. |
9 * | 9 * |
10 * FFmpeg is free software; you can redistribute it and/or | 10 * FFmpeg is free software; you can redistribute it and/or |
11 * modify it under the terms of the GNU Lesser General Public | 11 * modify it under the terms of the GNU Lesser General Public |
12 * License as published by the Free Software Foundation; either | 12 * License as published by the Free Software Foundation; either |
13 * version 2.1 of the License, or (at your option) any later version. | 13 * version 2.1 of the License, or (at your option) any later version. |
14 * | 14 * |
15 * FFmpeg is distributed in the hope that it will be useful, | 15 * FFmpeg is distributed in the hope that it will be useful, |
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
18 * Lesser General Public License for more details. | 18 * Lesser General Public License for more details. |
19 * | 19 * |
20 * You should have received a copy of the GNU Lesser General Public | 20 * You should have received a copy of the GNU Lesser General Public |
21 * License along with FFmpeg; if not, write to the Free Software | 21 * License along with FFmpeg; if not, write to the Free Software |
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
23 */ | 23 */ |
24 | 24 |
25 /** | 25 /** |
26 * @file | 26 * @file |
27 * h263 decoder. | 27 * h263 decoder. |
28 */ | 28 */ |
29 | 29 |
30 #define UNCHECKED_BITSTREAM_READER 1 | |
31 | |
32 //#define DEBUG | 30 //#define DEBUG |
33 #include <limits.h> | 31 #include <limits.h> |
34 | 32 |
35 #include "libavutil/mathematics.h" | 33 #include "libavutil/mathematics.h" |
36 #include "dsputil.h" | 34 #include "dsputil.h" |
37 #include "avcodec.h" | 35 #include "avcodec.h" |
38 #include "mpegvideo.h" | 36 #include "mpegvideo.h" |
39 #include "h263.h" | 37 #include "h263.h" |
40 #include "mathops.h" | 38 #include "mathops.h" |
41 #include "unary.h" | 39 #include "unary.h" |
(...skipping 1082 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1124 v |= get_sbits(&s->gb, 8)<<8; | 1122 v |= get_sbits(&s->gb, 8)<<8; |
1125 av_log(s->avctx, AV_LOG_DEBUG, " %5d", v); | 1123 av_log(s->avctx, AV_LOG_DEBUG, " %5d", v); |
1126 } | 1124 } |
1127 av_log(s->avctx, AV_LOG_DEBUG, "\n"); | 1125 av_log(s->avctx, AV_LOG_DEBUG, "\n"); |
1128 } | 1126 } |
1129 for(i=0; i<50; i++) av_log(s->avctx, AV_LOG_DEBUG, "%d", get_bits1(&s->g
b)); | 1127 for(i=0; i<50; i++) av_log(s->avctx, AV_LOG_DEBUG, "%d", get_bits1(&s->g
b)); |
1130 } | 1128 } |
1131 | 1129 |
1132 return 0; | 1130 return 0; |
1133 } | 1131 } |
OLD | NEW |