From: James Zern Date: Fri, 16 Jun 2017 09:09:47 +0000 (-0700) Subject: vp8: add temporal_filter.h X-Git-Tag: v1.7.0~373^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b093d998fce541dba9000def27a1434eede49e4c;p=platform%2Fupstream%2Flibvpx.git vp8: add temporal_filter.h quiets -Wmissing-prototypes Change-Id: Iffa77467720affe030de5335e9335232b9e70af1 --- diff --git a/vp8/encoder/onyx_if.c b/vp8/encoder/onyx_if.c index ebe116e..5431366 100644 --- a/vp8/encoder/onyx_if.c +++ b/vp8/encoder/onyx_if.c @@ -48,6 +48,9 @@ #include "ethreading.h" #endif #include "picklpf.h" +#if !CONFIG_REALTIME_ONLY +#include "temporal_filter.h" +#endif #include #include @@ -67,8 +70,6 @@ extern void print_tree_update_probs(); int vp8_calc_ss_err(YV12_BUFFER_CONFIG *source, YV12_BUFFER_CONFIG *dest); -extern void vp8_temporal_filter_prepare_c(VP8_COMP *cpi, int distance); - static void set_default_lf_deltas(VP8_COMP *cpi); extern const int vp8_gf_interval_table[101]; diff --git a/vp8/encoder/temporal_filter.c b/vp8/encoder/temporal_filter.c index 1b2f46b..0a7d25f 100644 --- a/vp8/encoder/temporal_filter.c +++ b/vp8/encoder/temporal_filter.c @@ -20,6 +20,7 @@ #include "ratectrl.h" #include "vp8/common/quant_common.h" #include "segmentation.h" +#include "temporal_filter.h" #include "vpx_mem/vpx_mem.h" #include "vp8/common/swapyv12buffer.h" #include "vp8/common/threading.h" diff --git a/vp8/encoder/temporal_filter.h b/vp8/encoder/temporal_filter.h new file mode 100644 index 0000000..865d909 --- /dev/null +++ b/vp8/encoder/temporal_filter.h @@ -0,0 +1,26 @@ +/* + * Copyright (c) 2017 The WebM project authors. All Rights Reserved. + * + * Use of this source code is governed by a BSD-style license + * that can be found in the LICENSE file in the root of the source + * tree. An additional intellectual property rights grant can be found + * in the file PATENTS. All contributing project authors may + * be found in the AUTHORS file in the root of the source tree. + */ + +#ifndef VP8_ENCODER_TEMPORAL_FILTER_H_ +#define VP8_ENCODER_TEMPORAL_FILTER_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +struct VP8_COMP; + +void vp8_temporal_filter_prepare_c(struct VP8_COMP *cpi, int distance); + +#ifdef __cplusplus +} +#endif + +#endif // VP8_ENCODER_TEMPORAL_FILTER_H_ diff --git a/vp8/vp8cx.mk b/vp8/vp8cx.mk index 4011006..89abad2 100644 --- a/vp8/vp8cx.mk +++ b/vp8/vp8cx.mk @@ -72,12 +72,14 @@ VP8_CX_SRCS-yes += encoder/treewriter.c VP8_CX_SRCS-$(CONFIG_INTERNAL_STATS) += common/postproc.h VP8_CX_SRCS-$(CONFIG_INTERNAL_STATS) += common/postproc.c VP8_CX_SRCS-yes += encoder/temporal_filter.c +VP8_CX_SRCS-yes += encoder/temporal_filter.h VP8_CX_SRCS-$(CONFIG_MULTI_RES_ENCODING) += encoder/mr_dissim.c VP8_CX_SRCS-$(CONFIG_MULTI_RES_ENCODING) += encoder/mr_dissim.h ifeq ($(CONFIG_REALTIME_ONLY),yes) VP8_CX_SRCS_REMOVE-yes += encoder/firstpass.c VP8_CX_SRCS_REMOVE-yes += encoder/temporal_filter.c +VP8_CX_SRCS_REMOVE-yes += encoder/temporal_filter.h endif VP8_CX_SRCS-$(HAVE_SSE2) += encoder/x86/dct_sse2.asm