ref: 1ab60466ec03a30795b485328b50c330cef33f4c
parent: 746c0eab3bebc03607bca8d54d59f3790c9c091c
parent: e702b68b6c77c2d10f665d063ad7d74948e810da
author: Scott LaVarnway <slavarnway@google.com>
date: Mon Aug 14 14:01:44 EDT 2017
Merge "vp9: strip mb graph code"
--- a/vp9/encoder/vp9_encoder.c
+++ b/vp9/encoder/vp9_encoder.c
@@ -914,6 +914,7 @@
*cm->fc = cc->fc;
}
+#if !CONFIG_REALTIME_ONLY
static void configure_static_seg_features(VP9_COMP *cpi) {
VP9_COMMON *const cm = &cpi->common;
const RATE_CONTROL *const rc = &cpi->rc;
@@ -1037,6 +1038,7 @@
}
}
}
+#endif // !CONFIG_REALTIME_ONLY
static void update_reference_segmentation_map(VP9_COMP *cpi) {
VP9_COMMON *const cm = &cpi->common;
@@ -3222,7 +3224,6 @@
static void set_size_dependent_vars(VP9_COMP *cpi, int *q, int *bottom_index,
int *top_index) {
VP9_COMMON *const cm = &cpi->common;
- const VP9EncoderConfig *const oxcf = &cpi->oxcf;
// Setup variables that depend on the dimensions of the frame.
vp9_set_speed_features_framesize_dependent(cpi);
@@ -3234,17 +3235,19 @@
vp9_set_high_precision_mv(cpi, (*q) < HIGH_PRECISION_MV_QTHRESH);
}
+#if !CONFIG_REALTIME_ONLY
// Configure experimental use of segmentation for enhanced coding of
// static regions if indicated.
// Only allowed in the second pass of a two pass encode, as it requires
// lagged coding, and if the relevant speed feature flag is set.
- if (oxcf->pass == 2 && cpi->sf.static_segmentation)
+ if (cpi->oxcf.pass == 2 && cpi->sf.static_segmentation)
configure_static_seg_features(cpi);
+#endif // !CONFIG_REALTIME_ONLY
#if CONFIG_VP9_POSTPROC && !(CONFIG_VP9_TEMPORAL_DENOISING)
- if (oxcf->noise_sensitivity > 0) {
+ if (cpi->oxcf.noise_sensitivity > 0) {
int l = 0;
- switch (oxcf->noise_sensitivity) {
+ switch (cpi->oxcf.noise_sensitivity) {
case 1: l = 20; break;
case 2: l = 40; break;
case 3: l = 60; break;
--- a/vp9/vp9cx.mk
+++ b/vp9/vp9cx.mk
@@ -140,5 +140,6 @@
# Strip unnecessary files with CONFIG_REALTIME_ONLY
VP9_CX_SRCS_REMOVE-$(CONFIG_REALTIME_ONLY) += encoder/vp9_firstpass.c
+VP9_CX_SRCS_REMOVE-$(CONFIG_REALTIME_ONLY) += encoder/vp9_mbgraph.c
VP9_CX_SRCS-yes := $(filter-out $(VP9_CX_SRCS_REMOVE-yes),$(VP9_CX_SRCS-yes))