ref: c9e057a9a0d49ff878895272ba1f072ad64b0157
parent: d6c66d46916c4dfc1da31694409326bf35d82ee0
author: James Zern <[email protected]>
date: Tue Feb 2 12:51:25 EST 2016
vp9_svc_layercontext.c: relocate a macro definition move SMALL_FRAME_FB_IDX closer to its first use. this is only used with CONFIG_SPATIAL_SVC. Change-Id: Ibf2b3e59a3aab2be2c3b3f89b4380ebe272e0ed6
--- a/vp9/encoder/vp9_svc_layercontext.c
+++ b/vp9/encoder/vp9_svc_layercontext.c
@@ -16,7 +16,6 @@
#include "vp9/encoder/vp9_extend.h"
#include "vpx_dsp/vpx_dsp_common.h"
-#define SMALL_FRAME_FB_IDX 7
#define SMALL_FRAME_WIDTH 32
#define SMALL_FRAME_HEIGHT 16
@@ -644,6 +643,8 @@
}
#if CONFIG_SPATIAL_SVC
+#define SMALL_FRAME_FB_IDX 7
+
int vp9_svc_start_frame(VP9_COMP *const cpi) {
int width = 0, height = 0;
LAYER_CONTEXT *lc;
@@ -754,7 +755,8 @@
return 0;
}
-#endif
+#undef SMALL_FRAME_FB_IDX
+#endif // CONFIG_SPATIAL_SVC
struct lookahead_entry *vp9_svc_lookahead_pop(VP9_COMP *const cpi,
struct lookahead_ctx *ctx,