OLD | NEW |
1 /* | 1 /* |
2 * MPEG4 decoder. | 2 * MPEG4 decoder. |
3 * Copyright (c) 2000,2001 Fabrice Bellard | 3 * Copyright (c) 2000,2001 Fabrice Bellard |
4 * Copyright (c) 2002-2010 Michael Niedermayer <michaelni@gmx.at> | 4 * Copyright (c) 2002-2010 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 #define UNCHECKED_BITSTREAM_READER 1 | |
24 | |
25 #include "libavutil/opt.h" | 23 #include "libavutil/opt.h" |
26 #include "mpegvideo.h" | 24 #include "mpegvideo.h" |
27 #include "mpeg4video.h" | 25 #include "mpeg4video.h" |
28 #include "h263.h" | 26 #include "h263.h" |
29 #include "thread.h" | 27 #include "thread.h" |
30 | 28 |
31 // The defines below define the number of bits that are read at once for | 29 // The defines below define the number of bits that are read at once for |
32 // reading vlc values. Changing these may improve speed and data cache needs | 30 // reading vlc values. Changing these may improve speed and data cache needs |
33 // be aware though that decreasing them may need the number of stages that is | 31 // be aware though that decreasing them may need the number of stages that is |
34 // passed to get_vlc* to be increased. | 32 // passed to get_vlc* to be increased. |
(...skipping 2297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2332 .priv_data_size = sizeof(MpegEncContext), | 2330 .priv_data_size = sizeof(MpegEncContext), |
2333 .init = decode_init, | 2331 .init = decode_init, |
2334 .close = ff_h263_decode_end, | 2332 .close = ff_h263_decode_end, |
2335 .decode = ff_h263_decode_frame, | 2333 .decode = ff_h263_decode_frame, |
2336 .capabilities = CODEC_CAP_DR1 | CODEC_CAP_TRUNCATED | CODEC_CAP_DELAY | CO
DEC_CAP_HWACCEL_VDPAU, | 2334 .capabilities = CODEC_CAP_DR1 | CODEC_CAP_TRUNCATED | CODEC_CAP_DELAY | CO
DEC_CAP_HWACCEL_VDPAU, |
2337 .long_name= NULL_IF_CONFIG_SMALL("MPEG-4 part 2 (VDPAU)"), | 2335 .long_name= NULL_IF_CONFIG_SMALL("MPEG-4 part 2 (VDPAU)"), |
2338 .pix_fmts= (const enum PixelFormat[]){PIX_FMT_VDPAU_MPEG4, PIX_FMT_NONE}, | 2336 .pix_fmts= (const enum PixelFormat[]){PIX_FMT_VDPAU_MPEG4, PIX_FMT_NONE}, |
2339 .priv_class = &mpeg4_vdpau_class, | 2337 .priv_class = &mpeg4_vdpau_class, |
2340 }; | 2338 }; |
2341 #endif | 2339 #endif |
OLD | NEW |