Index: source/libvpx/vpx/vp8cx.h |
=================================================================== |
--- source/libvpx/vpx/vp8cx.h (revision 232227) |
+++ source/libvpx/vpx/vp8cx.h (working copy) |
@@ -7,8 +7,9 @@ |
* in the file PATENTS. All contributing project authors may |
* be found in the AUTHORS file in the root of the source tree. |
*/ |
+#ifndef VP8CX_H |
+#define VP8CX_H |
- |
/*!\defgroup vp8_encoder WebM VP8 Encoder |
* \ingroup vp8 |
* |
@@ -20,10 +21,11 @@ |
* \brief Provides definitions for using the VP8 encoder algorithm within the |
* vpx Codec Interface. |
*/ |
-#ifndef VP8CX_H |
-#define VP8CX_H |
-#include "vpx_codec_impl_top.h" |
+#ifdef __cplusplus |
+extern "C" { |
+#endif |
+ |
/*!\name Algorithm interface for VP8 |
* |
* This interface provides the capability to encode raw VP8 streams, as would |
@@ -220,16 +222,17 @@ |
*/ |
typedef struct vpx_roi_map { |
- unsigned char *roi_map; /**< specify an id between 0 and 3 for each 16x16 region within a frame */ |
- unsigned int rows; /**< number of rows */ |
- unsigned int cols; /**< number of cols */ |
+ /*! An id between 0 and 3 for each 16x16 region within a frame. */ |
+ unsigned char *roi_map; |
+ unsigned int rows; /**< Number of rows. */ |
+ unsigned int cols; /**< Number of columns. */ |
// TODO(paulwilkins): broken for VP9 which has 8 segments |
// q and loop filter deltas for each segment |
// (see MAX_MB_SEGMENTS) |
- int delta_q[4]; |
- int delta_lf[4]; |
- // Static breakout threshold for each segment |
- unsigned int static_threshold[4]; |
+ int delta_q[4]; /**< Quantizer deltas. */ |
+ int delta_lf[4]; /**< Loop filter deltas. */ |
+ /*! Static breakout threshold for each segment. */ |
+ unsigned int static_threshold[4]; |
} vpx_roi_map_t; |
/*!\brief vpx active region map |
@@ -334,5 +337,8 @@ |
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 |