From e288c6015e5920286c1321362836a68b9540f916 Mon Sep 17 00:00:00 2001 From: Dmitry Kovalev Date: Sun, 29 Sep 2013 18:00:15 -0700 Subject: [PATCH] Removing vpx_codec_impl_{top, bottom}.h files. It doesn't seem reasonable to have these files as our API part. Just inlining them in the source. Change-Id: Iff970bb25e72e49e7ac21990824dbf4ef8bfd2e2 --- libs.mk | 2 -- vpx/vp8.h | 10 ++++++++-- vpx/vp8cx.h | 10 ++++++++-- vpx/vp8dx.h | 9 +++++++-- vpx/vpx_codec.mk | 2 -- vpx/vpx_codec_impl_bottom.h | 19 ------------------- vpx/vpx_codec_impl_top.h | 19 ------------------- 7 files changed, 23 insertions(+), 48 deletions(-) delete mode 100644 vpx/vpx_codec_impl_bottom.h delete mode 100644 vpx/vpx_codec_impl_top.h diff --git a/libs.mk b/libs.mk index 43545e38a..4691a1258 100644 --- a/libs.mk +++ b/libs.mk @@ -183,8 +183,6 @@ CODEC_EXPORTS-$(CONFIG_DECODERS) += vpx/exports_dec INSTALL-LIBS-yes += include/vpx/vpx_codec.h INSTALL-LIBS-yes += include/vpx/vpx_image.h INSTALL-LIBS-yes += include/vpx/vpx_integer.h -INSTALL-LIBS-yes += include/vpx/vpx_codec_impl_top.h -INSTALL-LIBS-yes += include/vpx/vpx_codec_impl_bottom.h INSTALL-LIBS-$(CONFIG_DECODERS) += include/vpx/vpx_decoder.h INSTALL-LIBS-$(CONFIG_ENCODERS) += include/vpx/vpx_encoder.h ifeq ($(CONFIG_EXTERNAL_BUILD),yes) diff --git a/vpx/vp8.h b/vpx/vp8.h index 0b4cb1b9e..ff7150328 100644 --- a/vpx/vp8.h +++ b/vpx/vp8.h @@ -30,7 +30,10 @@ */ #ifndef VP8_H #define VP8_H -#include "vpx_codec_impl_top.h" + +#ifdef __cplusplus +extern "C" { +#endif /*!\brief Control functions * @@ -125,5 +128,8 @@ VPX_CTRL_USE_TYPE(VP9_GET_REFERENCE, vp9_ref_frame_t *) /*! @} - end defgroup vp8 */ -#include "vpx_codec_impl_bottom.h" +#ifdef __cplusplus +} // extern "C" +#endif + #endif diff --git a/vpx/vp8cx.h b/vpx/vp8cx.h index f3ea6d3a2..92fdb004b 100644 --- a/vpx/vp8cx.h +++ b/vpx/vp8cx.h @@ -22,7 +22,10 @@ */ #ifndef VP8CX_H #define VP8CX_H -#include "vpx_codec_impl_top.h" + +#ifdef __cplusplus +extern "C" { +#endif /*!\name Algorithm interface for VP8 * @@ -334,5 +337,8 @@ VPX_CTRL_USE_TYPE(VP9E_SET_FRAME_PARALLEL_DECODING, unsigned int) VPX_CTRL_USE_TYPE(VP9E_SET_MAX_Q, unsigned int) VPX_CTRL_USE_TYPE(VP9E_SET_MIN_Q, unsigned int) /*! @} - end defgroup vp8_encoder */ -#include "vpx_codec_impl_bottom.h" +#ifdef __cplusplus +} // extern "C" +#endif + #endif diff --git a/vpx/vp8dx.h b/vpx/vp8dx.h index 7d250ccae..50a223f2a 100644 --- a/vpx/vp8dx.h +++ b/vpx/vp8dx.h @@ -22,7 +22,10 @@ */ #ifndef VP8DX_H #define VP8DX_H -#include "vpx_codec_impl_top.h" + +#ifdef __cplusplus +extern "C" { +#endif /*!\name Algorithm interface for VP8 * @@ -100,6 +103,8 @@ VPX_CTRL_USE_TYPE(VP9_INVERT_TILE_DECODE_ORDER, int) /*! @} - end defgroup vp8_decoder */ +#ifdef __cplusplus +} // extern "C" +#endif -#include "vpx_codec_impl_bottom.h" #endif diff --git a/vpx/vpx_codec.mk b/vpx/vpx_codec.mk index ffa123f12..3d5510f66 100644 --- a/vpx/vpx_codec.mk +++ b/vpx/vpx_codec.mk @@ -35,7 +35,5 @@ API_SRCS-yes += src/vpx_codec.c API_SRCS-yes += src/vpx_image.c API_SRCS-yes += vpx_codec.h API_SRCS-yes += vpx_codec.mk -API_SRCS-yes += vpx_codec_impl_bottom.h -API_SRCS-yes += vpx_codec_impl_top.h API_SRCS-yes += vpx_image.h API_SRCS-$(BUILD_LIBVPX) += vpx_integer.h diff --git a/vpx/vpx_codec_impl_bottom.h b/vpx/vpx_codec_impl_bottom.h deleted file mode 100644 index 6eb79a88a..000000000 --- a/vpx/vpx_codec_impl_bottom.h +++ /dev/null @@ -1,19 +0,0 @@ -/* - * Copyright (c) 2010 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. - */ - - -/* - * This file is to be included at the bottom of the header files defining the - * interface to individual codecs and contains matching blocks to those defined - * in vpx_codec_impl_top.h - */ -#ifdef __cplusplus -} -#endif diff --git a/vpx/vpx_codec_impl_top.h b/vpx/vpx_codec_impl_top.h deleted file mode 100644 index c9b8cfab2..000000000 --- a/vpx/vpx_codec_impl_top.h +++ /dev/null @@ -1,19 +0,0 @@ -/* - * Copyright (c) 2010 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. - */ - - -/* - * This file is to be included at the top of the header files defining the - * interface to individual codecs and contains various workarounds common - * to all codec implementations. - */ -#ifdef __cplusplus -extern "C" { -#endif -- 2.40.0