]> granicus.if.org Git - libvpx/commitdiff
move segmentation_common to encoder
authorJohn Koleszar <jkoleszar@google.com>
Fri, 13 Aug 2010 18:50:51 +0000 (14:50 -0400)
committerJohn Koleszar <jkoleszar@google.com>
Fri, 13 Aug 2010 18:54:24 +0000 (14:54 -0400)
vp8_update_gf_useage_maps() is only used by the encoder. This patch
fixes the ability to build in decode-only or encode-only
configurations.

Change-Id: I3a5211428e539886ba998e09e8abd747ac55c9aa

vp8/encoder/encodeframe.c
vp8/encoder/onyx_if.c
vp8/encoder/segmentation.c [moved from vp8/common/segmentation_common.c with 98% similarity]
vp8/encoder/segmentation.h [moved from vp8/common/segmentation_common.h with 100% similarity]
vp8/vp8_common.mk
vp8/vp8cx.mk

index bddb55b49485138b2dda1649a749847c6d133251..0f9bf4a1d855645e93709d9f3326792fec9286fc 100644 (file)
@@ -17,7 +17,7 @@
 #include "extend.h"
 #include "entropymode.h"
 #include "quant_common.h"
-#include "segmentation_common.h"
+#include "segmentation.h"
 #include "setupintrarecon.h"
 #include "encodeintra.h"
 #include "reconinter.h"
index f768e60c73cb3b7724ccfda396b73cb6eea42b43..17b33d79aacbdebdbd1555d173876fc8cb4bd698 100644 (file)
@@ -21,7 +21,7 @@
 #include "extend.h"
 #include "ratectrl.h"
 #include "quant_common.h"
-#include "segmentation_common.h"
+#include "segmentation.h"
 #include "g_common.h"
 #include "vpx_scale/yv12extend.h"
 #include "postproc.h"
similarity index 98%
rename from vp8/common/segmentation_common.c
rename to vp8/encoder/segmentation.c
index 16b96e9db9befef9ed14d989b458f8fed11e664c..bb78614c6d9e35504d25a2c8d895edcaa5a80b8a 100644 (file)
@@ -9,7 +9,7 @@
  */
 
 
-#include "segmentation_common.h"
+#include "segmentation.h"
 #include "vpx_mem/vpx_mem.h"
 
 void vp8_update_gf_useage_maps(VP8_COMP *cpi, VP8_COMMON *cm, MACROBLOCK *x)
index a8a252a179e7ecd35b4082a9836f065ed9961e5a..dea237377f0c6e97decf09eca7215fe8b8bd251c 100644 (file)
@@ -27,7 +27,6 @@ VP8_COMMON_SRCS-yes += common/onyxd.h
 
 CFLAGS+=-I$(SRC_PATH_BARE)/$(VP8_PREFIX)common
 
-VP8_COMMON_SRCS-yes += common/segmentation_common.c
 VP8_COMMON_SRCS-yes += common/alloccommon.c
 VP8_COMMON_SRCS-yes += common/blockd.c
 VP8_COMMON_SRCS-yes += common/coefupdateprobs.h
@@ -64,7 +63,6 @@ VP8_COMMON_SRCS-yes += common/recon.h
 VP8_COMMON_SRCS-yes += common/reconinter.h
 VP8_COMMON_SRCS-yes += common/reconintra.h
 VP8_COMMON_SRCS-yes += common/reconintra4x4.h
-VP8_COMMON_SRCS-yes += common/segmentation_common.h
 VP8_COMMON_SRCS-yes += common/setupintrarecon.h
 VP8_COMMON_SRCS-yes += common/subpixel.h
 VP8_COMMON_SRCS-yes += common/swapyv12buffer.h
index c0a58ae29fa69314fd0858c4bdba842e793c7145..50eb297314aeb7f2b01713e05f34cc9e13bd8906 100644 (file)
@@ -74,6 +74,8 @@ VP8_CX_SRCS-yes += encoder/quantize.c
 VP8_CX_SRCS-yes += encoder/ratectrl.c
 VP8_CX_SRCS-yes += encoder/rdopt.c
 VP8_CX_SRCS-yes += encoder/sad_c.c
+VP8_CX_SRCS-yes += encoder/segmentation.c
+VP8_CX_SRCS-yes += encoder/segmentation.h
 VP8_CX_SRCS-$(CONFIG_PSNR) += encoder/ssim.c
 VP8_CX_SRCS-yes += encoder/tokenize.c
 VP8_CX_SRCS-yes += encoder/treewriter.c