shithub: libvpx

Download patch

ref: 83bd16aaf3f8820bf13c7f4d5766c7be6d05ea5f
parent: 49f6ff11032df0d6696da8cf544d0292e185d00c
author: Jingning Han <[email protected]>
date: Thu Aug 20 05:26:17 EDT 2015

Refactor REFS_PER_FRAME definition

Define it as a function of reference frame types to provide
scalability for multiple reference frames.

Change-Id: I77b856c96916f352bc31004b9266b3f24e19bd0f

--- a/vp10/common/onyxc_int.h
+++ b/vp10/common/onyxc_int.h
@@ -32,7 +32,7 @@
 extern "C" {
 #endif
 
-#define REFS_PER_FRAME 3
+#define REFS_PER_FRAME (ALTREF_FRAME - LAST_FRAME + 1)
 
 #define REF_FRAMES_LOG2 3
 #define REF_FRAMES (1 << REF_FRAMES_LOG2)