From: Jingning Han Date: Thu, 20 Aug 2015 16:26:17 +0000 (-0700) Subject: Refactor REFS_PER_FRAME definition X-Git-Tag: v1.5.0~241^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=83bd16aaf3f8820bf13c7f4d5766c7be6d05ea5f;p=libvpx Refactor REFS_PER_FRAME definition Define it as a function of reference frame types to provide scalability for multiple reference frames. Change-Id: I77b856c96916f352bc31004b9266b3f24e19bd0f --- diff --git a/vp10/common/onyxc_int.h b/vp10/common/onyxc_int.h index 83388e680..4118d89f2 100644 --- 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)