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 #ifndef VP9_COMMON_VP9_COMMON_H_ | 11 #ifndef VP9_COMMON_VP9_COMMON_H_ |
12 #define VP9_COMMON_VP9_COMMON_H_ | 12 #define VP9_COMMON_VP9_COMMON_H_ |
13 | 13 |
14 /* Interface header for common constant data structures and lookup tables */ | 14 /* Interface header for common constant data structures and lookup tables */ |
15 | 15 |
16 #include <assert.h> | 16 #include <assert.h> |
17 | 17 |
18 #include "./vpx_config.h" | 18 #include "./vpx_config.h" |
19 #include "vpx_dsp/vpx_dsp_common.h" | 19 #include "vpx_dsp/vpx_dsp_common.h" |
20 #include "vpx_mem/vpx_mem.h" | 20 #include "vpx_mem/vpx_mem.h" |
21 #include "vpx/vpx_integer.h" | 21 #include "vpx/vpx_integer.h" |
22 #include "vp9/common/vp9_systemdependent.h" | 22 #include "vpx_ports/bitops.h" |
23 | 23 |
24 #ifdef __cplusplus | 24 #ifdef __cplusplus |
25 extern "C" { | 25 extern "C" { |
26 #endif | 26 #endif |
27 | 27 |
28 // Only need this for fixed-size arrays, for structs just assign. | 28 // Only need this for fixed-size arrays, for structs just assign. |
29 #define vp9_copy(dest, src) { \ | 29 #define vp9_copy(dest, src) { \ |
30 assert(sizeof(dest) == sizeof(src)); \ | 30 assert(sizeof(dest) == sizeof(src)); \ |
31 memcpy(dest, src, sizeof(src)); \ | 31 memcpy(dest, src, sizeof(src)); \ |
32 } | 32 } |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 #define VP9_SYNC_CODE_2 0x42 | 66 #define VP9_SYNC_CODE_2 0x42 |
67 | 67 |
68 #define VP9_FRAME_MARKER 0x2 | 68 #define VP9_FRAME_MARKER 0x2 |
69 | 69 |
70 | 70 |
71 #ifdef __cplusplus | 71 #ifdef __cplusplus |
72 } // extern "C" | 72 } // extern "C" |
73 #endif | 73 #endif |
74 | 74 |
75 #endif // VP9_COMMON_VP9_COMMON_H_ | 75 #endif // VP9_COMMON_VP9_COMMON_H_ |
OLD | NEW |