summaryrefslogtreecommitdiff
path: root/vp9/encoder/vp9_encoder.h
diff options
context:
space:
mode:
authorMarco <marpan@google.com>2016-12-21 14:33:21 -0800
committerMarco <marpan@google.com>2017-01-10 17:23:58 -0800
commit7e3a82c3847c9f6f84f2a2f7cf3ea2aab0388053 (patch)
tree9dedd9f02804687c091ff8c5244a3e6928c4dd20 /vp9/encoder/vp9_encoder.h
parent91fc730d831a46751fe5adb96f4897085b483313 (diff)
downloadlibvpx-7e3a82c3847c9f6f84f2a2f7cf3ea2aab0388053.tar
libvpx-7e3a82c3847c9f6f84f2a2f7cf3ea2aab0388053.tar.gz
libvpx-7e3a82c3847c9f6f84f2a2f7cf3ea2aab0388053.tar.bz2
libvpx-7e3a82c3847c9f6f84f2a2f7cf3ea2aab0388053.zip
vp9: Make the denoiser work with spatial SVC.
If enabled denoiser will only denoise the top spatial layer for now. Added unittest for SVC with denoising. Change-Id: Ifa373771c4ecfa208615eb163cc38f1c22c6664b
Diffstat (limited to 'vp9/encoder/vp9_encoder.h')
-rw-r--r--vp9/encoder/vp9_encoder.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/vp9/encoder/vp9_encoder.h b/vp9/encoder/vp9_encoder.h
index de324d3aa..c415414f3 100644
--- a/vp9/encoder/vp9_encoder.h
+++ b/vp9/encoder/vp9_encoder.h
@@ -765,6 +765,14 @@ static INLINE int is_one_pass_cbr_svc(const struct VP9_COMP *const cpi) {
return (cpi->use_svc && cpi->oxcf.pass == 0);
}
+#if CONFIG_VP9_TEMPORAL_DENOISING
+static INLINE int denoise_svc(const struct VP9_COMP *const cpi) {
+ return (!cpi->use_svc ||
+ (cpi->use_svc &&
+ cpi->svc.spatial_layer_id == cpi->svc.number_spatial_layers - 1));
+}
+#endif
+
static INLINE int is_altref_enabled(const VP9_COMP *const cpi) {
return !(cpi->oxcf.mode == REALTIME && cpi->oxcf.rc_mode == VPX_CBR) &&
cpi->oxcf.lag_in_frames > 0 &&