Path: blob/master/libs/jxr/image/sys/xplatform_image.h
4393 views
//*@@@+++@@@@******************************************************************1//2// Copyright © Microsoft Corp.3// All rights reserved.4//5// Redistribution and use in source and binary forms, with or without6// modification, are permitted provided that the following conditions are met:7//8// • Redistributions of source code must retain the above copyright notice,9// this list of conditions and the following disclaimer.10// • Redistributions in binary form must reproduce the above copyright notice,11// this list of conditions and the following disclaimer in the documentation12// and/or other materials provided with the distribution.13//14// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"15// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE16// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE17// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE18// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR19// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF20// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS21// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN22// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)23// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE24// POSSIBILITY OF SUCH DAMAGE.25//26//*@@@---@@@@******************************************************************2728#ifndef XPLATFORM_IMAGE_H29#define XPLATFORM_IMAGE_H3031#ifdef __ANSI__32// ANSI33#define FORCE_INLINE34#define CDECL35#define UINTPTR_T unsigned int36#define INTPTR_T int37#define DECLSPEC_ALIGN(bytes)38#endif // __ANSI__394041//#if defined(WIN32)42#if defined(WIN32) && !defined(UNDER_CE) // WIN32 seems to be defined always in VS2005 for ARM platform43// x8644//#define CDECL __cdecl45#define DECLSPEC_ALIGN(bytes) __declspec(align(bytes))46#endif // x86474849#if defined(_ARM_) || defined(UNDER_CE)50// ARM, WinCE51#define FORCE_INLINE inline52#define CDECL53#define UINTPTR_T unsigned int54#define INTPTR_T int55#define DECLSPEC_ALIGN(bytes)5657// parser58#define FULL_PATH_CONFIG_FILE_ENCODE "\\ConfigFile_encode.txt"59#define FULL_PATH_CONFIG_FILE_DECODE "\\ConfigFile_decode.txt"60#define MAX_ARGC 1461#define MaxCharReadCount 1062#define MAX_FNAME 25663#define DELIMITER "filelist:"64#define CODEC_ENCODE "encode"65#define CODEC_DECODE "decode"66#define PHOTON "ptn"67#define OUTRAW "raw"68#define OUTBMP "bmp"69#define OUTPPM "ppm"70#define OUTTIF "tif"71#define OUTHDR "hdr"72#define OUTIYUV "iyuv"73#define OUTYUV422 "yuv422"74#define OUTYUV444 "yuv444"75int XPLATparser(char *pcARGV[], char *pcCodec);76void freeXPLATparser(int iARGC, char *pcARGV[]);7778// WinCE intrinsic79#include <Cmnintrin.h>80#endif // ARM, WinCE8182#endif // XPLATFORM_IMAGE_H83848586