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_ENCODER_VP9_MBGRAPH_H_ | 11 #ifndef VP9_ENCODER_VP9_MBGRAPH_H_ |
12 #define VP9_ENCODER_VP9_MBGRAPH_H_ | 12 #define VP9_ENCODER_VP9_MBGRAPH_H_ |
13 | 13 |
14 #ifdef __cplusplus | 14 #ifdef __cplusplus |
15 extern "C" { | 15 extern "C" { |
16 #endif | 16 #endif |
17 | 17 |
18 void vp9_update_mbgraph_stats(VP9_COMP *cpi); | 18 typedef struct { |
| 19 struct { |
| 20 int err; |
| 21 union { |
| 22 int_mv mv; |
| 23 MB_PREDICTION_MODE mode; |
| 24 } m; |
| 25 } ref[MAX_REF_FRAMES]; |
| 26 } MBGRAPH_MB_STATS; |
| 27 |
| 28 typedef struct { |
| 29 MBGRAPH_MB_STATS *mb_stats; |
| 30 } MBGRAPH_FRAME_STATS; |
| 31 |
| 32 struct VP9_COMP; |
| 33 |
| 34 void vp9_update_mbgraph_stats(struct VP9_COMP *cpi); |
19 | 35 |
20 #ifdef __cplusplus | 36 #ifdef __cplusplus |
21 } // extern "C" | 37 } // extern "C" |
22 #endif | 38 #endif |
23 | 39 |
24 #endif // VP9_ENCODER_VP9_MBGRAPH_H_ | 40 #endif // VP9_ENCODER_VP9_MBGRAPH_H_ |
OLD | NEW |