OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004 Michael Niedermayer <michaelni@gmx.at> | 2 * Copyright (C) 2004 Michael Niedermayer <michaelni@gmx.at> |
3 * | 3 * |
4 * This file is part of FFmpeg. | 4 * This file is part of FFmpeg. |
5 * | 5 * |
6 * FFmpeg is free software; you can redistribute it and/or | 6 * FFmpeg is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Lesser General Public | 7 * modify it under the terms of the GNU Lesser General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2.1 of the License, or (at your option) any later version. | 9 * version 2.1 of the License, or (at your option) any later version. |
10 * | 10 * |
11 * FFmpeg is distributed in the hope that it will be useful, | 11 * FFmpeg is distributed in the hope that it will be useful, |
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
14 * Lesser General Public License for more details. | 14 * Lesser General Public License for more details. |
15 * | 15 * |
16 * You should have received a copy of the GNU Lesser General Public | 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 | 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 | 18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
19 */ | 19 */ |
20 | 20 |
| 21 #include "libavutil/intmath.h" |
21 #include "avcodec.h" | 22 #include "avcodec.h" |
22 #include "dsputil.h" | 23 #include "dsputil.h" |
23 #include "snow.h" | 24 #include "snow.h" |
24 | 25 |
25 #include "rangecoder.h" | 26 #include "rangecoder.h" |
26 #include "mathops.h" | 27 #include "mathops.h" |
27 | 28 |
28 #include "mpegvideo.h" | 29 #include "mpegvideo.h" |
| 30 #include "h263.h" |
29 | 31 |
30 #undef NDEBUG | 32 #undef NDEBUG |
31 #include <assert.h> | 33 #include <assert.h> |
32 | 34 |
33 static const int8_t quant3[256]={ | 35 static const int8_t quant3[256]={ |
34 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | 36 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
35 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | 37 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
36 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | 38 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
37 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | 39 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
38 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | 40 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
(...skipping 4818 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4857 if(FFABS(width/2-x)<9 && FFABS(height/2-y)<9) printf("%8"PRI
d64" ", d); | 4859 if(FFABS(width/2-x)<9 && FFABS(height/2-y)<9) printf("%8"PRI
d64" ", d); |
4858 } | 4860 } |
4859 if(FFABS(height/2-y)<9) printf("\n"); | 4861 if(FFABS(height/2-y)<9) printf("\n"); |
4860 } | 4862 } |
4861 } | 4863 } |
4862 | 4864 |
4863 } | 4865 } |
4864 return 0; | 4866 return 0; |
4865 } | 4867 } |
4866 #endif /* TEST */ | 4868 #endif /* TEST */ |
OLD | NEW |