OLD | NEW |
1 /* | 1 /* |
2 * H.26L/H.264/AVC/JVT/14496-10/... cavlc bitstream decoding | 2 * H.26L/H.264/AVC/JVT/14496-10/... cavlc bitstream decoding |
3 * Copyright (c) 2003 Michael Niedermayer <michaelni@gmx.at> | 3 * Copyright (c) 2003 Michael Niedermayer <michaelni@gmx.at> |
4 * | 4 * |
5 * This file is part of FFmpeg. | 5 * This file is part of FFmpeg. |
6 * | 6 * |
7 * FFmpeg is free software; you can redistribute it and/or | 7 * FFmpeg is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Lesser General Public | 8 * modify it under the terms of the GNU Lesser General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2.1 of the License, or (at your option) any later version. | 10 * version 2.1 of the License, or (at your option) any later version. |
11 * | 11 * |
12 * FFmpeg is distributed in the hope that it will be useful, | 12 * FFmpeg is distributed in the hope that it will be useful, |
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
15 * Lesser General Public License for more details. | 15 * Lesser General Public License for more details. |
16 * | 16 * |
17 * You should have received a copy of the GNU Lesser General Public | 17 * You should have received a copy of the GNU Lesser General Public |
18 * License along with FFmpeg; if not, write to the Free Software | 18 * License along with FFmpeg; if not, write to the Free Software |
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
20 */ | 20 */ |
21 | 21 |
22 /** | 22 /** |
23 * @file | 23 * @file |
24 * H.264 / AVC / MPEG4 part10 cavlc bitstream decoding. | 24 * H.264 / AVC / MPEG4 part10 cavlc bitstream decoding. |
25 * @author Michael Niedermayer <michaelni@gmx.at> | 25 * @author Michael Niedermayer <michaelni@gmx.at> |
26 */ | 26 */ |
27 | 27 |
28 #define CABAC 0 | 28 #define CABAC 0 |
29 #define UNCHECKED_BITSTREAM_READER 1 | |
30 | 29 |
31 #include "internal.h" | 30 #include "internal.h" |
32 #include "avcodec.h" | 31 #include "avcodec.h" |
33 #include "mpegvideo.h" | 32 #include "mpegvideo.h" |
34 #include "h264.h" | 33 #include "h264.h" |
35 #include "h264data.h" // FIXME FIXME FIXME | 34 #include "h264data.h" // FIXME FIXME FIXME |
36 #include "h264_mvpred.h" | 35 #include "h264_mvpred.h" |
37 #include "golomb.h" | 36 #include "golomb.h" |
38 | 37 |
39 //#undef NDEBUG | 38 //#undef NDEBUG |
(...skipping 1122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1162 s->current_picture.f.qscale_table[mb_xy] = s->qscale; | 1161 s->current_picture.f.qscale_table[mb_xy] = s->qscale; |
1163 write_back_non_zero_count(h); | 1162 write_back_non_zero_count(h); |
1164 | 1163 |
1165 if(MB_MBAFF){ | 1164 if(MB_MBAFF){ |
1166 h->ref_count[0] >>= 1; | 1165 h->ref_count[0] >>= 1; |
1167 h->ref_count[1] >>= 1; | 1166 h->ref_count[1] >>= 1; |
1168 } | 1167 } |
1169 | 1168 |
1170 return 0; | 1169 return 0; |
1171 } | 1170 } |
OLD | NEW |