OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved. | 2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #include <assert.h> | 11 #include <assert.h> |
12 #include <math.h> | 12 #include <math.h> |
13 #include <stdio.h> | 13 #include <stdio.h> |
14 | 14 |
15 #include "./vp9_rtcd.h" | 15 #include "./vp9_rtcd.h" |
16 | 16 |
| 17 #include "vpx_dsp/vpx_dsp_common.h" |
17 #include "vpx_mem/vpx_mem.h" | 18 #include "vpx_mem/vpx_mem.h" |
18 #include "vpx_ports/bitops.h" | 19 #include "vpx_ports/bitops.h" |
19 #include "vpx_ports/mem.h" | 20 #include "vpx_ports/mem.h" |
20 #include "vpx_ports/system_state.h" | 21 #include "vpx_ports/system_state.h" |
21 | 22 |
22 #include "vp9/common/vp9_common.h" | 23 #include "vp9/common/vp9_common.h" |
23 #include "vp9/common/vp9_entropy.h" | 24 #include "vp9/common/vp9_entropy.h" |
24 #include "vp9/common/vp9_entropymode.h" | 25 #include "vp9/common/vp9_entropymode.h" |
25 #include "vp9/common/vp9_mvref_common.h" | 26 #include "vp9/common/vp9_mvref_common.h" |
26 #include "vp9/common/vp9_pred_common.h" | 27 #include "vp9/common/vp9_pred_common.h" |
(...skipping 630 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
657 return ROUND_POWER_OF_TWO(5 * q, 2); | 658 return ROUND_POWER_OF_TWO(5 * q, 2); |
658 default: | 659 default: |
659 assert(0 && "bit_depth should be VPX_BITS_8, VPX_BITS_10 or VPX_BITS_12"); | 660 assert(0 && "bit_depth should be VPX_BITS_8, VPX_BITS_10 or VPX_BITS_12"); |
660 return -1; | 661 return -1; |
661 } | 662 } |
662 #else | 663 #else |
663 return 20 * q; | 664 return 20 * q; |
664 #endif // CONFIG_VP9_HIGHBITDEPTH | 665 #endif // CONFIG_VP9_HIGHBITDEPTH |
665 } | 666 } |
666 | 667 |
OLD | NEW |