summaryrefslogtreecommitdiff
path: root/vp8/encoder/mbgraph.c
diff options
context:
space:
mode:
Diffstat (limited to 'vp8/encoder/mbgraph.c')
-rw-r--r--vp8/encoder/mbgraph.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/vp8/encoder/mbgraph.c b/vp8/encoder/mbgraph.c
index ad40c9e33..4f9ba125b 100644
--- a/vp8/encoder/mbgraph.c
+++ b/vp8/encoder/mbgraph.c
@@ -477,12 +477,16 @@ void separate_arf_mbs
//if ( ncnt[1] && (ncnt[0] / ncnt[1] < 10) )
if ( 1 )
{
- cpi->mbgraph_use_arf_segmentation = ncnt[1];
+ // Note % of blocks that are marked as static
+ cpi->static_mb_pct =
+ (ncnt[1] * 100) / cm->MBs;
+
vp8_enable_segmentation((VP8_PTR) cpi);
}
else
{
- cpi->mbgraph_use_arf_segmentation = 0;
+ cpi->static_mb_pct = 0;
+
vp8_disable_segmentation((VP8_PTR) cpi);
}