Pepper_31_C_interfaces
pp_media_common_samsung.h
Go to the documentation of this file.
1 /* Copyright 2013 The Chromium Authors. All rights reserved.
2  * Use of this source code is governed by a BSD-style license that can be
3  * found in the LICENSE file.
4  */
5 
6 /* From samsung/pp_media_common_samsung.idl,
7  * modified Wed Dec 11 13:50:59 2013.
8  */
9 
10 #ifndef PPAPI_C_SAMSUNG_PP_MEDIA_COMMON_SAMSUNG_H_
11 #define PPAPI_C_SAMSUNG_PP_MEDIA_COMMON_SAMSUNG_H_
12 
13 #include "ppapi/c/pp_macros.h"
14 #include "ppapi/c/pp_stdint.h"
15 
16 /**
17  * @file
18  * This file defines common structures used by Samsung media PPAPI interfaces.
19  */
20 
21 
22 /**
23  * @addtogroup Typedefs
24  * @{
25  */
26 /* Describes time delta in microseconds */
27 typedef int64_t PP_MicrosecondsDelta;
29 /**
30  * @}
31  */
32 
33 /**
34  * @addtogroup Functions
35  * @{
36  */
37 
38 /** Converts PP_MicrosecondsDelta to seconds */
40  return value / 1000000.0;
41 }
42 
43 /** Converts seconds to PP_MicrosecondsDelta */
45  return (int64_t)(value * 1000000.0 + 0.5);
46 }
47 
48 /**
49  * @}
50  */
51 
52 #endif /* PPAPI_C_SAMSUNG_PP_MEDIA_COMMON_SAMSUNG_H_ */
53 
#define PP_INLINE
Definition: pp_macros.h:46
int64_t PP_MicrosecondsDelta
PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_MicrosecondsDelta, 8)
PP_INLINE PP_MicrosecondsDelta PP_SecondsToMicrosecondsDelta(double value)
PP_INLINE double PP_MicrosecondsDeltaToSeconds(PP_MicrosecondsDelta value)