OLD | NEW |
1 /* | 1 /* |
2 * MPEG-1/2 decoder | 2 * MPEG-1/2 decoder |
3 * Copyright (c) 2000, 2001 Fabrice Bellard | 3 * Copyright (c) 2000, 2001 Fabrice Bellard |
4 * Copyright (c) 2002-2004 Michael Niedermayer <michaelni@gmx.at> | 4 * Copyright (c) 2002-2004 Michael Niedermayer <michaelni@gmx.at> |
5 * | 5 * |
6 * This file is part of FFmpeg. | 6 * This file is part of FFmpeg. |
7 * | 7 * |
8 * FFmpeg is free software; you can redistribute it and/or | 8 * FFmpeg is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Lesser General Public | 9 * modify it under the terms of the GNU Lesser General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
11 * version 2.1 of the License, or (at your option) any later version. | 11 * version 2.1 of the License, or (at your option) any later version. |
12 * | 12 * |
13 * FFmpeg is distributed in the hope that it will be useful, | 13 * FFmpeg is distributed in the hope that it will be useful, |
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
16 * Lesser General Public License for more details. | 16 * Lesser General Public License for more details. |
17 * | 17 * |
18 * You should have received a copy of the GNU Lesser General Public | 18 * You should have received a copy of the GNU Lesser General Public |
19 * License along with FFmpeg; if not, write to the Free Software | 19 * License along with FFmpeg; if not, write to the Free Software |
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
21 */ | 21 */ |
22 | 22 |
23 /** | 23 /** |
24 * @file | 24 * @file |
25 * MPEG-1/2 decoder | 25 * MPEG-1/2 decoder |
26 */ | 26 */ |
27 | 27 |
28 #define UNCHECKED_BITSTREAM_READER 1 | |
29 | |
30 //#define DEBUG | 28 //#define DEBUG |
31 #include "internal.h" | 29 #include "internal.h" |
32 #include "avcodec.h" | 30 #include "avcodec.h" |
33 #include "dsputil.h" | 31 #include "dsputil.h" |
34 #include "mpegvideo.h" | 32 #include "mpegvideo.h" |
35 #include "libavutil/avassert.h" | 33 #include "libavutil/avassert.h" |
36 #include "libavutil/timecode.h" | 34 #include "libavutil/timecode.h" |
37 | 35 |
38 #include "mpeg12.h" | 36 #include "mpeg12.h" |
39 #include "mpeg12data.h" | 37 #include "mpeg12data.h" |
(...skipping 2618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2658 .id = CODEC_ID_MPEG1VIDEO, | 2656 .id = CODEC_ID_MPEG1VIDEO, |
2659 .priv_data_size = sizeof(Mpeg1Context), | 2657 .priv_data_size = sizeof(Mpeg1Context), |
2660 .init = mpeg_decode_init, | 2658 .init = mpeg_decode_init, |
2661 .close = mpeg_decode_end, | 2659 .close = mpeg_decode_end, |
2662 .decode = mpeg_decode_frame, | 2660 .decode = mpeg_decode_frame, |
2663 .capabilities = CODEC_CAP_DR1 | CODEC_CAP_TRUNCATED | CODEC_CAP_HWACCEL_VD
PAU | CODEC_CAP_DELAY, | 2661 .capabilities = CODEC_CAP_DR1 | CODEC_CAP_TRUNCATED | CODEC_CAP_HWACCEL_VD
PAU | CODEC_CAP_DELAY, |
2664 .flush = flush, | 2662 .flush = flush, |
2665 .long_name = NULL_IF_CONFIG_SMALL("MPEG-1 video (VDPAU acceleration)"), | 2663 .long_name = NULL_IF_CONFIG_SMALL("MPEG-1 video (VDPAU acceleration)"), |
2666 }; | 2664 }; |
2667 #endif | 2665 #endif |
OLD | NEW |