2010-05-18 17:58:33 +02:00
|
|
|
/*
|
2010-09-09 14:16:39 +02:00
|
|
|
* Copyright (c) 2010 The WebM project authors. All Rights Reserved.
|
2010-05-18 17:58:33 +02:00
|
|
|
*
|
2010-06-18 18:39:21 +02:00
|
|
|
* Use of this source code is governed by a BSD-style license
|
2010-06-04 22:19:40 +02:00
|
|
|
* that can be found in the LICENSE file in the root of the source
|
|
|
|
* tree. An additional intellectual property rights grant can be found
|
2010-06-18 18:39:21 +02:00
|
|
|
* in the file PATENTS. All contributing project authors may
|
2010-06-04 22:19:40 +02:00
|
|
|
* be found in the AUTHORS file in the root of the source tree.
|
2010-05-18 17:58:33 +02:00
|
|
|
*/
|
2012-12-19 00:31:19 +01:00
|
|
|
|
2012-11-30 01:36:10 +01:00
|
|
|
#ifndef VP9_COMMON_VP9_SYSTEMDEPENDENT_H_
|
|
|
|
#define VP9_COMMON_VP9_SYSTEMDEPENDENT_H_
|
2010-05-18 17:58:33 +02:00
|
|
|
|
2012-12-13 23:51:27 +01:00
|
|
|
#ifdef _MSC_VER
|
|
|
|
#include <math.h>
|
2013-10-09 21:15:50 +02:00
|
|
|
#define snprintf _snprintf
|
2012-12-13 23:51:27 +01:00
|
|
|
#endif
|
|
|
|
|
2012-12-23 16:20:10 +01:00
|
|
|
#include "./vpx_config.h"
|
2010-05-18 17:58:33 +02:00
|
|
|
#if ARCH_X86 || ARCH_X86_64
|
|
|
|
void vpx_reset_mmx_state(void);
|
2012-10-31 22:40:53 +01:00
|
|
|
#define vp9_clear_system_state() vpx_reset_mmx_state()
|
2010-05-18 17:58:33 +02:00
|
|
|
#else
|
2012-10-31 22:40:53 +01:00
|
|
|
#define vp9_clear_system_state()
|
2010-05-18 17:58:33 +02:00
|
|
|
#endif
|
|
|
|
|
2012-12-13 23:51:27 +01:00
|
|
|
#ifdef _MSC_VER
|
|
|
|
// round is not defined in MSVC
|
|
|
|
static int round(double x) {
|
|
|
|
if (x < 0)
|
|
|
|
return (int)ceil(x - 0.5);
|
|
|
|
else
|
|
|
|
return (int)floor(x + 0.5);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2012-10-31 01:53:32 +01:00
|
|
|
struct VP9Common;
|
2013-08-24 04:30:33 +02:00
|
|
|
void vp9_machine_specific_config(struct VP9Common *cm);
|
2012-12-19 00:31:19 +01:00
|
|
|
|
|
|
|
#endif // VP9_COMMON_VP9_SYSTEMDEPENDENT_H_
|