Index: source/libvpx/vpx/vp8.h |
=================================================================== |
--- source/libvpx/vpx/vp8.h (revision 232227) |
+++ source/libvpx/vpx/vp8.h (working copy) |
@@ -8,7 +8,6 @@ |
* be found in the AUTHORS file in the root of the source tree. |
*/ |
- |
/*!\defgroup vp8 VP8 |
* \ingroup codecs |
* VP8 is vpx's newest video compression algorithm that uses motion |
@@ -30,8 +29,14 @@ |
*/ |
#ifndef VP8_H |
#define VP8_H |
-#include "vpx_codec_impl_top.h" |
+#include "./vpx_codec.h" |
+#include "./vpx_image.h" |
+ |
+#ifdef __cplusplus |
+extern "C" { |
+#endif |
+ |
/*!\brief Control functions |
* |
* The set of macros define the control functions of VP8 interface |
@@ -95,14 +100,17 @@ |
/*!\brief reference frame data struct |
* |
- * define the data struct to access vp8 reference frames |
+ * Define the data struct to access vp8 reference frames. |
*/ |
- |
typedef struct vpx_ref_frame { |
vpx_ref_frame_type_t frame_type; /**< which reference frame */ |
vpx_image_t img; /**< reference frame data in image format */ |
} vpx_ref_frame_t; |
+/*!\brief VP9 specific reference frame data struct |
+ * |
+ * Define the data struct to access vp9 reference frames. |
+ */ |
typedef struct vp9_ref_frame { |
int idx; /**< frame index to get (input) */ |
vpx_image_t img; /**< img structure to populate (output) */ |
@@ -112,7 +120,6 @@ |
* |
* defines the data type for each of VP8 decoder control function requires |
*/ |
- |
VPX_CTRL_USE_TYPE(VP8_SET_REFERENCE, vpx_ref_frame_t *) |
VPX_CTRL_USE_TYPE(VP8_COPY_REFERENCE, vpx_ref_frame_t *) |
VPX_CTRL_USE_TYPE(VP8_SET_POSTPROC, vp8_postproc_cfg_t *) |
@@ -122,8 +129,10 @@ |
VPX_CTRL_USE_TYPE(VP8_SET_DBG_DISPLAY_MV, int) |
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 |