]> granicus.if.org Git - libvpx/blobdiff - vpxstats.h
Use -std=gnu++11 instead of -std=c++11
[libvpx] / vpxstats.h
index 18b3acdc0705b9bba2a2f530431fc9963c37c727..3625ee3291f9137a74e68e1f56f246e2a6bd3a11 100644 (file)
@@ -8,13 +8,17 @@
  *  be found in the AUTHORS file in the root of the source tree.
  */
 
-#ifndef VPXSTATS_H_
-#define VPXSTATS_H_
+#ifndef VPX_VPXSTATS_H_
+#define VPX_VPXSTATS_H_
 
 #include <stdio.h>
 
 #include "vpx/vpx_encoder.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /* This structure is used to abstract the different ways of handling
  * first pass statistics
  */
@@ -32,6 +36,8 @@ void stats_close(stats_io_t *stats, int last_pass);
 void stats_write(stats_io_t *stats, const void *pkt, size_t len);
 vpx_fixed_buf_t stats_get(stats_io_t *stats);
 
-double vp8_mse2psnr(double samples, double peak, double mse);
+#ifdef __cplusplus
+}  // extern "C"
+#endif
 
-#endif  // VPXSTATS_H_
+#endif  // VPX_VPXSTATS_H_