Wasabi ExpressPlay SDK for Embedded Systems  1.10
Ts2Config.h
Go to the documentation of this file.
1 /*****************************************************************
2 |
3 | MPEG2 Transport Stream - Config
4 |
5 | $Id: Ts2Config.h 296 2014-06-25 11:20:09Z jebaseelir $
6 | Original author: Julien Boeuf
7 |
8 | This software is provided to you pursuant to your agreement
9 | with Intertrust Technologies Corporation ("Intertrust").
10 | This software may be used only in accordance with the terms
11 | of the agreement.
12 |
13 | Copyright (c) 2010-2014 by Intertrust. All rights reserved.
14 |
15 ****************************************************************/
16 
17 #ifndef _TS2_CONFIG_H_
18 #define _TS2_CONFIG_H_
19 
20 /*----------------------------------------------------------------------
21 | byte order
22 +---------------------------------------------------------------------*/
23 /* define TS2_PLATFORM_BYTE_ORDER to one of these two choices */
24 #define TS2_PLATFORM_BYTE_ORDER_BIG_ENDIAN 0
25 #define TS2_PLATFORM_BYTE_ORDER_LITTLE_ENDIAN 1
26 
27 #if !defined(TS2_PLATFORM_BYTE_ORDER)
28 #if defined(__ppc__)
29 #define TS2_PLATFORM_BYTE_ORDER TS2_PLATFORM_BYTE_ORDER_BIG_ENDIAN
30 #elif defined(__i386__) || defined(__x86_64__) || defined(__arm__) || defined(__arm64__)
31 #define TS2_PLATFORM_BYTE_ORDER TS2_PLATFORM_BYTE_ORDER_LITTLE_ENDIAN
32 #endif
33 #endif
34 
35 /*----------------------------------------------------------------------
36 | platform specific headers
37 +---------------------------------------------------------------------*/
38 #if defined(_WIN32)
39 #if !defined(WINAPI_FAMILY)
40 /* for Windows 7 Desktop or earlier */
41 #include <windows.h>
42 
43 #elif WINAPI_FAMILY == WINAPI_FAMILY_APP
44 /* for WinRT Apps */
45 
46 #elif WINAPI_FAMILY == WINAPI_FAMILY_DESKTOP_APP
47 /* for Windows 8 Desktop and Apps */
48 #error not implemented
49 
50 #elif WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP
51 /* for Windows Phone 8 Apps */
52 #error not implemented
53 
54 #else
55 #error unknown WINAPI_FAMILY
56 #endif /* WINAPI_FAMILY */
57 
58 #endif /* _WIN32 */
59 
60 /*----------------------------------------------------------------------
61 | support for shared object symbols
62 +---------------------------------------------------------------------*/
63 #if __GNUC__ >= 4
64 #define TS2_EXPORT __attribute__((visibility ("default")))
65 #else
66 #define TS2_EXPORT
67 #endif
68 
69 #endif /* _TS2_CONFIG_H_ */
70