Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
wine-mirror
GitHub Repository: wine-mirror/wine
Path: blob/master/libs/jxr/image/sys/xplatform_image.h
4393 views
1
//*@@@+++@@@@******************************************************************
2
//
3
// Copyright © Microsoft Corp.
4
// All rights reserved.
5
//
6
// Redistribution and use in source and binary forms, with or without
7
// modification, are permitted provided that the following conditions are met:
8
//
9
// • Redistributions of source code must retain the above copyright notice,
10
// this list of conditions and the following disclaimer.
11
// • Redistributions in binary form must reproduce the above copyright notice,
12
// this list of conditions and the following disclaimer in the documentation
13
// and/or other materials provided with the distribution.
14
//
15
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
16
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18
// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
19
// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
20
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
21
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
22
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
23
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
24
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
25
// POSSIBILITY OF SUCH DAMAGE.
26
//
27
//*@@@---@@@@******************************************************************
28
29
#ifndef XPLATFORM_IMAGE_H
30
#define XPLATFORM_IMAGE_H
31
32
#ifdef __ANSI__
33
// ANSI
34
#define FORCE_INLINE
35
#define CDECL
36
#define UINTPTR_T unsigned int
37
#define INTPTR_T int
38
#define DECLSPEC_ALIGN(bytes)
39
#endif // __ANSI__
40
41
42
//#if defined(WIN32)
43
#if defined(WIN32) && !defined(UNDER_CE) // WIN32 seems to be defined always in VS2005 for ARM platform
44
// x86
45
//#define CDECL __cdecl
46
#define DECLSPEC_ALIGN(bytes) __declspec(align(bytes))
47
#endif // x86
48
49
50
#if defined(_ARM_) || defined(UNDER_CE)
51
// ARM, WinCE
52
#define FORCE_INLINE inline
53
#define CDECL
54
#define UINTPTR_T unsigned int
55
#define INTPTR_T int
56
#define DECLSPEC_ALIGN(bytes)
57
58
// parser
59
#define FULL_PATH_CONFIG_FILE_ENCODE "\\ConfigFile_encode.txt"
60
#define FULL_PATH_CONFIG_FILE_DECODE "\\ConfigFile_decode.txt"
61
#define MAX_ARGC 14
62
#define MaxCharReadCount 10
63
#define MAX_FNAME 256
64
#define DELIMITER "filelist:"
65
#define CODEC_ENCODE "encode"
66
#define CODEC_DECODE "decode"
67
#define PHOTON "ptn"
68
#define OUTRAW "raw"
69
#define OUTBMP "bmp"
70
#define OUTPPM "ppm"
71
#define OUTTIF "tif"
72
#define OUTHDR "hdr"
73
#define OUTIYUV "iyuv"
74
#define OUTYUV422 "yuv422"
75
#define OUTYUV444 "yuv444"
76
int XPLATparser(char *pcARGV[], char *pcCodec);
77
void freeXPLATparser(int iARGC, char *pcARGV[]);
78
79
// WinCE intrinsic
80
#include <Cmnintrin.h>
81
#endif // ARM, WinCE
82
83
#endif // XPLATFORM_IMAGE_H
84
85
86