Last active
August 30, 2020 17:49
-
-
Save master-of-zen/98d107857fa0322b5694890151af6371 to your computer and use it in GitHub Desktop.
feedreference.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This patch created by @n9Mtq4 https://github.com/n9Mtq4 | |
diff --git a/aom_dsp/noise_model.c b/aom_dsp/noise_model.c | |
index c7a0003a8..9d0c4ca75 100644 | |
--- a/aom_dsp/noise_model.c | |
+++ b/aom_dsp/noise_model.c | |
@@ -1643,12 +1643,15 @@ int aom_denoise_and_model_run(struct aom_denoise_and_model_t *ctx, | |
if (!film_grain->random_seed) { | |
film_grain->random_seed = 7391; | |
} | |
+#if !CONFIG_DENOISE_NOISE_NO_APPLY | |
memcpy(raw_data[0], ctx->denoised[0], | |
(strides[0] * sd->y_height) << use_highbd); | |
memcpy(raw_data[1], ctx->denoised[1], | |
(strides[1] * sd->uv_height) << use_highbd); | |
memcpy(raw_data[2], ctx->denoised[2], | |
(strides[2] * sd->uv_height) << use_highbd); | |
+#endif // CONFIG_DENOISE_NOISE_NO_APPLY | |
} | |
return 1; | |
} | |
diff --git a/build/cmake/aom_config_defaults.cmake b/build/cmake/aom_config_defaults.cmake | |
index 298ed28d1..30dd84b1d 100644 | |
--- a/build/cmake/aom_config_defaults.cmake | |
+++ b/build/cmake/aom_config_defaults.cmake | |
@@ -108,6 +108,10 @@ set_aom_config_var(DECODE_HEIGHT_LIMIT 0 "Set limit for decode height.") | |
set_aom_config_var(DECODE_WIDTH_LIMIT 0 "Set limit for decode width.") | |
set_aom_config_var(CONFIG_TUNE_VMAF 0 "Enable encoding tuning for VMAF.") | |
+# AV1 custom flags | |
+set_aom_config_var(CONFIG_DENOISE_NOISE_NO_APPLY 0 | |
+ "Disables applying denoise with denoise-noise-level") | |
+ | |
# AV1 experiment flags. | |
set_aom_config_var(CONFIG_SPEED_STATS 0 "AV1 experiment flag.") | |
set_aom_config_var(CONFIG_COLLECT_RD_STATS 0 "AV1 experiment flag.") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment