1 /*
2  *  Copyright (c) 2010 The WebM project authors. All Rights Reserved.
3  *
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
6  *  tree. An additional intellectual property rights grant can be found
7  *  in the file PATENTS.  All contributing project authors may
8  *  be found in the AUTHORS file in the root of the source tree.
9  */
10 
11 #ifndef VPX_VP9_ENCODER_VP9_MBGRAPH_H_
12 #define VPX_VP9_ENCODER_VP9_MBGRAPH_H_
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
18 typedef struct {
19   struct {
20     int err;
21     union {
22       int_mv mv;
23       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);
35 
36 #ifdef __cplusplus
37 }  // extern "C"
38 #endif
39 
40 #endif  // VPX_VP9_ENCODER_VP9_MBGRAPH_H_
41