]> granicus.if.org Git - libvpx/commitdiff
Don't apply active map on key frames.
authorAlex Converse <aconverse@google.com>
Fri, 20 Mar 2015 21:52:55 +0000 (14:52 -0700)
committerAlex Converse <aconverse@google.com>
Fri, 20 Mar 2015 21:57:24 +0000 (14:57 -0700)
This allows applciations to be KF oblivious.

Change-Id: Ic02712eae6ad8d6b3eaec26548299d24ca0d5cc0

vp9/encoder/vp9_encoder.c

index b8859a02ecad3427bd868292997985f6a31a2014..273fcf56ba7b56b28a4841b85dbfc5931c723815 100644 (file)
@@ -126,6 +126,11 @@ void vp9_apply_active_map(VP9_COMP *cpi) {
 
   assert(AM_SEGMENT_ID_ACTIVE == CR_SEGMENT_ID_BASE);
 
+  if (frame_is_intra_only(&cpi->common)) {
+    cpi->active_map.enabled = 0;
+    cpi->active_map.update = 1;
+  }
+
   if (cpi->active_map.update) {
     if (cpi->active_map.enabled) {
       for (i = 0; i < cpi->common.mi_rows * cpi->common.mi_cols; ++i)