ref: ef06de33fe720f75cd851acdb266196d7e8d575b
parent: 890f7bedf3d7d4b417691d75a4f03c28eefaea92
author: James Zern <[email protected]>
date: Wed Dec 10 13:12:29 EST 2014
vp9: make postproc members depend on CONFIG_VP9_POSTPROC Change-Id: Id64218386968cee3132269e4a0572650f20fd980
--- a/vp9/common/vp9_alloccommon.c
+++ b/vp9/common/vp9_alloccommon.c
@@ -44,8 +44,10 @@
vp9_free_frame_buffer(&cm->frame_bufs[i].buf);
}
+#if CONFIG_VP9_POSTPROC
vp9_free_frame_buffer(&cm->post_proc_buffer);
vp9_free_frame_buffer(&cm->post_proc_buffer_int);
+#endif
}
void vp9_free_context_buffers(VP9_COMMON *cm) {
--- a/vp9/common/vp9_onyxc_int.h
+++ b/vp9/common/vp9_onyxc_int.h
@@ -112,8 +112,10 @@
int new_fb_idx;
+#if CONFIG_VP9_POSTPROC
YV12_BUFFER_CONFIG post_proc_buffer;
YV12_BUFFER_CONFIG post_proc_buffer_int;
+#endif
FRAME_TYPE last_frame_type; /* last frame's frame type for motion search.*/
FRAME_TYPE frame_type;