├── .gitignore ├── LICENSE ├── README.md ├── build ├── clean.bat ├── clean_int.bat ├── gcc │ └── makefile ├── gen_solution.bat ├── mini_sxp.sxproj ├── mini_sxp.sxsln ├── vs2019 │ ├── mini_sxp.sln │ ├── mini_sxp.vcxproj │ └── mini_sxp.vcxproj.filters └── vs2022 │ ├── mini_sxp.sln │ ├── mini_sxp.vcxproj │ └── mini_sxp.vcxproj.filters ├── sxp_extlibs ├── build │ ├── clean.bat │ ├── clean_int.bat │ ├── extlibs.sxsln │ ├── gcc │ │ └── makefile │ ├── gen_solution.bat │ ├── jpeglib.sxproj │ ├── libcurl.sxproj │ ├── libpng.sxproj │ ├── libtiff.sxproj │ ├── libwebp.sxproj │ ├── nvtexturetools.sxproj │ ├── nvtristrip.sxproj │ ├── opencl.sxproj │ ├── openjpeg.sxproj │ ├── vs2019 │ │ ├── extlibs.sln │ │ ├── jpeglib.vcxproj │ │ ├── jpeglib.vcxproj.filters │ │ ├── libcurl.vcxproj │ │ ├── libcurl.vcxproj.filters │ │ ├── libpng.vcxproj │ │ ├── libpng.vcxproj.filters │ │ ├── libtiff.vcxproj │ │ ├── libtiff.vcxproj.filters │ │ ├── libwebp.vcxproj │ │ ├── libwebp.vcxproj.filters │ │ ├── nvtexturetools.vcxproj │ │ ├── nvtexturetools.vcxproj.filters │ │ ├── nvtristrip.vcxproj │ │ ├── nvtristrip.vcxproj.filters │ │ ├── opencl.vcxproj │ │ ├── opencl.vcxproj.filters │ │ ├── openjpeg.vcxproj │ │ ├── openjpeg.vcxproj.filters │ │ ├── zlib.vcxproj │ │ └── zlib.vcxproj.filters │ ├── vs2022 │ │ ├── extlibs.sln │ │ ├── jpeglib.vcxproj │ │ ├── jpeglib.vcxproj.filters │ │ ├── libcurl.vcxproj │ │ ├── libcurl.vcxproj.filters │ │ ├── libpng.vcxproj │ │ ├── libpng.vcxproj.filters │ │ ├── libtiff.vcxproj │ │ ├── libtiff.vcxproj.filters │ │ ├── libwebp.vcxproj │ │ ├── libwebp.vcxproj.filters │ │ ├── nvtexturetools.vcxproj │ │ ├── nvtexturetools.vcxproj.filters │ │ ├── nvtristrip.vcxproj │ │ ├── nvtristrip.vcxproj.filters │ │ ├── opencl.vcxproj │ │ ├── opencl.vcxproj.filters │ │ ├── openjpeg.vcxproj │ │ ├── openjpeg.vcxproj.filters │ │ ├── zlib.vcxproj │ │ └── zlib.vcxproj.filters │ └── zlib.sxproj ├── jpeglib │ ├── README │ └── src │ │ ├── jcapimin.c │ │ ├── jcapistd.c │ │ ├── jccoefct.c │ │ ├── jccolor.c │ │ ├── jcdctmgr.c │ │ ├── jchuff.c │ │ ├── jchuff.h │ │ ├── jcinit.c │ │ ├── jcmainct.c │ │ ├── jcmarker.c │ │ ├── jcmaster.c │ │ ├── jcomapi.c │ │ ├── jconfig.h │ │ ├── jcparam.c │ │ ├── jcphuff.c │ │ ├── jcprepct.c │ │ ├── jcsample.c │ │ ├── jctrans.c │ │ ├── jdapimin.c │ │ ├── jdapistd.c │ │ ├── jdatadst.c │ │ ├── jdatasrc.c │ │ ├── jdcoefct.c │ │ ├── jdcolor.c │ │ ├── jdct.h │ │ ├── jddctmgr.c │ │ ├── jdhuff.c │ │ ├── jdhuff.h │ │ ├── jdinput.c │ │ ├── jdmainct.c │ │ ├── jdmarker.c │ │ ├── jdmaster.c │ │ ├── jdmerge.c │ │ ├── jdphuff.c │ │ ├── jdpostct.c │ │ ├── jdsample.c │ │ ├── jdtrans.c │ │ ├── jerror.c │ │ ├── jerror.h │ │ ├── jfdctflt.c │ │ ├── jfdctfst.c │ │ ├── jfdctint.c │ │ ├── jidctflt.c │ │ ├── jidctfst.c │ │ ├── jidctint.c │ │ ├── jidctred.c │ │ ├── jinclude.h │ │ ├── jmemansi.c │ │ ├── jmemmgr.c │ │ ├── jmemsys.h │ │ ├── jmorecfg.h │ │ ├── jpegint.h │ │ ├── jpeglib.h │ │ ├── jquant1.c │ │ ├── jquant2.c │ │ ├── jutils.c │ │ └── jversion.h ├── libcurl │ ├── CHANGES │ ├── COPYING │ ├── README │ ├── VERSION │ ├── include │ │ └── curl │ │ │ ├── curl.h │ │ │ ├── curlver.h │ │ │ ├── easy.h │ │ │ ├── header.h │ │ │ ├── mprintf.h │ │ │ ├── multi.h │ │ │ ├── options.h │ │ │ ├── stdcheaders.h │ │ │ ├── system.h │ │ │ ├── typecheck-gcc.h │ │ │ ├── urlapi.h │ │ │ └── websockets.h │ └── src │ │ ├── altsvc.c │ │ ├── altsvc.h │ │ ├── amigaos.c │ │ ├── amigaos.h │ │ ├── arpa_telnet.h │ │ ├── asyn-ares.c │ │ ├── asyn-thread.c │ │ ├── asyn.h │ │ ├── base64.c │ │ ├── bufq.c │ │ ├── bufq.h │ │ ├── bufref.c │ │ ├── bufref.h │ │ ├── c-hyper.c │ │ ├── c-hyper.h │ │ ├── cf-h1-proxy.c │ │ ├── cf-h1-proxy.h │ │ ├── cf-h2-proxy.c │ │ ├── cf-h2-proxy.h │ │ ├── cf-haproxy.c │ │ ├── cf-haproxy.h │ │ ├── cf-https-connect.c │ │ ├── cf-https-connect.h │ │ ├── cf-socket.c │ │ ├── cf-socket.h │ │ ├── cfilters.c │ │ ├── cfilters.h │ │ ├── config-amigaos.h │ │ ├── config-dos.h │ │ ├── config-mac.h │ │ ├── config-os400.h │ │ ├── config-plan9.h │ │ ├── config-riscos.h │ │ ├── config-win32.h │ │ ├── config-win32ce.h │ │ ├── conncache.c │ │ ├── conncache.h │ │ ├── connect.c │ │ ├── connect.h │ │ ├── content_encoding.c │ │ ├── content_encoding.h │ │ ├── cookie.c │ │ ├── cookie.h │ │ ├── curl_addrinfo.c │ │ ├── curl_addrinfo.h │ │ ├── curl_base64.h │ │ ├── curl_ctype.h │ │ ├── curl_des.c │ │ ├── curl_des.h │ │ ├── curl_endian.c │ │ ├── curl_endian.h │ │ ├── curl_fnmatch.c │ │ ├── curl_fnmatch.h │ │ ├── curl_get_line.c │ │ ├── curl_get_line.h │ │ ├── curl_gethostname.c │ │ ├── curl_gethostname.h │ │ ├── curl_gssapi.c │ │ ├── curl_gssapi.h │ │ ├── curl_hmac.h │ │ ├── curl_krb5.h │ │ ├── curl_ldap.h │ │ ├── curl_md4.h │ │ ├── curl_md5.h │ │ ├── curl_memory.h │ │ ├── curl_memrchr.c │ │ ├── curl_memrchr.h │ │ ├── curl_multibyte.c │ │ ├── curl_multibyte.h │ │ ├── curl_ntlm_core.c │ │ ├── curl_ntlm_core.h │ │ ├── curl_ntlm_wb.c │ │ ├── curl_ntlm_wb.h │ │ ├── curl_path.c │ │ ├── curl_path.h │ │ ├── curl_printf.h │ │ ├── curl_range.c │ │ ├── curl_range.h │ │ ├── curl_rtmp.c │ │ ├── curl_rtmp.h │ │ ├── curl_sasl.c │ │ ├── curl_sasl.h │ │ ├── curl_setup.h │ │ ├── curl_setup_once.h │ │ ├── curl_sha256.h │ │ ├── curl_sspi.c │ │ ├── curl_sspi.h │ │ ├── curl_threads.c │ │ ├── curl_threads.h │ │ ├── curl_trc.c │ │ ├── curl_trc.h │ │ ├── curlx.h │ │ ├── dict.c │ │ ├── dict.h │ │ ├── doh.c │ │ ├── doh.h │ │ ├── dynbuf.c │ │ ├── dynbuf.h │ │ ├── dynhds.c │ │ ├── dynhds.h │ │ ├── easy.c │ │ ├── easy_lock.h │ │ ├── easygetopt.c │ │ ├── easyif.h │ │ ├── easyoptions.c │ │ ├── easyoptions.h │ │ ├── escape.c │ │ ├── escape.h │ │ ├── file.c │ │ ├── file.h │ │ ├── fileinfo.c │ │ ├── fileinfo.h │ │ ├── fopen.c │ │ ├── fopen.h │ │ ├── formdata.c │ │ ├── formdata.h │ │ ├── ftp.c │ │ ├── ftp.h │ │ ├── ftplistparser.c │ │ ├── ftplistparser.h │ │ ├── functypes.h │ │ ├── getenv.c │ │ ├── getinfo.c │ │ ├── getinfo.h │ │ ├── gopher.c │ │ ├── gopher.h │ │ ├── hash.c │ │ ├── hash.h │ │ ├── headers.c │ │ ├── headers.h │ │ ├── hmac.c │ │ ├── hostasyn.c │ │ ├── hostip.c │ │ ├── hostip.h │ │ ├── hostip4.c │ │ ├── hostip6.c │ │ ├── hostsyn.c │ │ ├── hsts.c │ │ ├── hsts.h │ │ ├── http.c │ │ ├── http.h │ │ ├── http1.c │ │ ├── http1.h │ │ ├── http2.c │ │ ├── http2.h │ │ ├── http_aws_sigv4.c │ │ ├── http_aws_sigv4.h │ │ ├── http_chunks.c │ │ ├── http_chunks.h │ │ ├── http_digest.c │ │ ├── http_digest.h │ │ ├── http_negotiate.c │ │ ├── http_negotiate.h │ │ ├── http_ntlm.c │ │ ├── http_ntlm.h │ │ ├── http_proxy.c │ │ ├── http_proxy.h │ │ ├── idn.c │ │ ├── idn.h │ │ ├── if2ip.c │ │ ├── if2ip.h │ │ ├── imap.c │ │ ├── imap.h │ │ ├── inet_ntop.c │ │ ├── inet_ntop.h │ │ ├── inet_pton.c │ │ ├── inet_pton.h │ │ ├── krb5.c │ │ ├── ldap.c │ │ ├── llist.c │ │ ├── llist.h │ │ ├── macos.c │ │ ├── macos.h │ │ ├── md4.c │ │ ├── md5.c │ │ ├── memdebug.c │ │ ├── memdebug.h │ │ ├── mime.c │ │ ├── mime.h │ │ ├── mprintf.c │ │ ├── mqtt.c │ │ ├── mqtt.h │ │ ├── multi.c │ │ ├── multihandle.h │ │ ├── multiif.h │ │ ├── netrc.c │ │ ├── netrc.h │ │ ├── nonblock.c │ │ ├── nonblock.h │ │ ├── noproxy.c │ │ ├── noproxy.h │ │ ├── openldap.c │ │ ├── parsedate.c │ │ ├── parsedate.h │ │ ├── pingpong.c │ │ ├── pingpong.h │ │ ├── pop3.c │ │ ├── pop3.h │ │ ├── progress.c │ │ ├── progress.h │ │ ├── psl.c │ │ ├── psl.h │ │ ├── rand.c │ │ ├── rand.h │ │ ├── rename.c │ │ ├── rename.h │ │ ├── rtsp.c │ │ ├── rtsp.h │ │ ├── select.c │ │ ├── select.h │ │ ├── sendf.c │ │ ├── sendf.h │ │ ├── setopt.c │ │ ├── setopt.h │ │ ├── setup-os400.h │ │ ├── setup-vms.h │ │ ├── setup-win32.h │ │ ├── sha256.c │ │ ├── share.c │ │ ├── share.h │ │ ├── sigpipe.h │ │ ├── slist.c │ │ ├── slist.h │ │ ├── smb.c │ │ ├── smb.h │ │ ├── smtp.c │ │ ├── smtp.h │ │ ├── sockaddr.h │ │ ├── socketpair.c │ │ ├── socketpair.h │ │ ├── socks.c │ │ ├── socks.h │ │ ├── socks_gssapi.c │ │ ├── socks_sspi.c │ │ ├── speedcheck.c │ │ ├── speedcheck.h │ │ ├── splay.c │ │ ├── splay.h │ │ ├── strcase.c │ │ ├── strcase.h │ │ ├── strdup.c │ │ ├── strdup.h │ │ ├── strerror.c │ │ ├── strerror.h │ │ ├── strtok.c │ │ ├── strtok.h │ │ ├── strtoofft.c │ │ ├── strtoofft.h │ │ ├── system_win32.c │ │ ├── system_win32.h │ │ ├── telnet.c │ │ ├── telnet.h │ │ ├── tftp.c │ │ ├── tftp.h │ │ ├── timediff.c │ │ ├── timediff.h │ │ ├── timeval.c │ │ ├── timeval.h │ │ ├── transfer.c │ │ ├── transfer.h │ │ ├── url.c │ │ ├── url.h │ │ ├── urlapi-int.h │ │ ├── urlapi.c │ │ ├── urldata.h │ │ ├── vauth │ │ ├── cleartext.c │ │ ├── cram.c │ │ ├── digest.c │ │ ├── digest.h │ │ ├── digest_sspi.c │ │ ├── gsasl.c │ │ ├── krb5_gssapi.c │ │ ├── krb5_sspi.c │ │ ├── ntlm.c │ │ ├── ntlm.h │ │ ├── ntlm_sspi.c │ │ ├── oauth2.c │ │ ├── spnego_gssapi.c │ │ ├── spnego_sspi.c │ │ ├── vauth.c │ │ └── vauth.h │ │ ├── version.c │ │ ├── version_win32.c │ │ ├── version_win32.h │ │ ├── vquic │ │ ├── curl_msh3.c │ │ ├── curl_msh3.h │ │ ├── curl_ngtcp2.c │ │ ├── curl_ngtcp2.h │ │ ├── curl_quiche.c │ │ ├── curl_quiche.h │ │ ├── vquic.c │ │ ├── vquic.h │ │ └── vquic_int.h │ │ ├── vssh │ │ ├── libssh.c │ │ ├── libssh2.c │ │ ├── ssh.h │ │ └── wolfssh.c │ │ ├── vtls │ │ ├── bearssl.c │ │ ├── bearssl.h │ │ ├── gtls.c │ │ ├── gtls.h │ │ ├── hostcheck.c │ │ ├── hostcheck.h │ │ ├── keylog.c │ │ ├── keylog.h │ │ ├── mbedtls.c │ │ ├── mbedtls.h │ │ ├── mbedtls_threadlock.c │ │ ├── mbedtls_threadlock.h │ │ ├── openssl.c │ │ ├── openssl.h │ │ ├── rustls.c │ │ ├── rustls.h │ │ ├── schannel.c │ │ ├── schannel.h │ │ ├── schannel_int.h │ │ ├── schannel_verify.c │ │ ├── sectransp.c │ │ ├── sectransp.h │ │ ├── vtls.c │ │ ├── vtls.h │ │ ├── vtls_int.h │ │ ├── wolfssl.c │ │ ├── wolfssl.h │ │ ├── x509asn1.c │ │ └── x509asn1.h │ │ ├── warnless.c │ │ ├── warnless.h │ │ ├── ws.c │ │ └── ws.h ├── libpng │ ├── LICENSE │ ├── README │ └── src │ │ ├── png.c │ │ ├── png.h │ │ ├── pngconf.h │ │ ├── pngerror.c │ │ ├── pnggccrd.c │ │ ├── pngget.c │ │ ├── pngmem.c │ │ ├── pngpread.c │ │ ├── pngread.c │ │ ├── pngrio.c │ │ ├── pngrtran.c │ │ ├── pngrutil.c │ │ ├── pngset.c │ │ ├── pngtrans.c │ │ ├── pngvcrd.c │ │ ├── pngwio.c │ │ ├── pngwrite.c │ │ ├── pngwtran.c │ │ └── pngwutil.c ├── libtiff │ ├── COPYRIGHT │ ├── README │ ├── VERSION │ └── src │ │ ├── t4.h │ │ ├── tif_aux.c │ │ ├── tif_close.c │ │ ├── tif_codec.c │ │ ├── tif_color.c │ │ ├── tif_compress.c │ │ ├── tif_config.h │ │ ├── tif_dir.c │ │ ├── tif_dir.h │ │ ├── tif_dirinfo.c │ │ ├── tif_dirread.c │ │ ├── tif_dirwrite.c │ │ ├── tif_dumpmode.c │ │ ├── tif_error.c │ │ ├── tif_extension.c │ │ ├── tif_fax3.c │ │ ├── tif_fax3.h │ │ ├── tif_fax3sm.c │ │ ├── tif_flush.c │ │ ├── tif_getimage.c │ │ ├── tif_jpeg.c │ │ ├── tif_luv.c │ │ ├── tif_lzw.c │ │ ├── tif_next.c │ │ ├── tif_ojpeg.c │ │ ├── tif_open.c │ │ ├── tif_packbits.c │ │ ├── tif_pixarlog.c │ │ ├── tif_predict.c │ │ ├── tif_predict.h │ │ ├── tif_print.c │ │ ├── tif_read.c │ │ ├── tif_strip.c │ │ ├── tif_swab.c │ │ ├── tif_thunder.c │ │ ├── tif_tile.c │ │ ├── tif_version.c │ │ ├── tif_warning.c │ │ ├── tif_write.c │ │ ├── tif_zip.c │ │ ├── tiff.h │ │ ├── tiffconf.h │ │ ├── tiffio.h │ │ ├── tiffio.hxx │ │ ├── tiffiop.h │ │ ├── tiffvers.h │ │ └── uvcode.h ├── libwebp │ └── src │ │ ├── dec │ │ ├── alpha_dec.c │ │ ├── alphai_dec.h │ │ ├── buffer_dec.c │ │ ├── common_dec.h │ │ ├── frame_dec.c │ │ ├── idec_dec.c │ │ ├── io_dec.c │ │ ├── quant_dec.c │ │ ├── tree_dec.c │ │ ├── vp8_dec.c │ │ ├── vp8_dec.h │ │ ├── vp8i_dec.h │ │ ├── vp8l_dec.c │ │ ├── vp8li_dec.h │ │ ├── webp_dec.c │ │ └── webpi_dec.h │ │ ├── demux │ │ ├── anim_decode.c │ │ └── demux.c │ │ ├── dsp │ │ ├── alpha_processing.c │ │ ├── alpha_processing_mips_dsp_r2.c │ │ ├── alpha_processing_neon.c │ │ ├── alpha_processing_sse2.c │ │ ├── alpha_processing_sse41.c │ │ ├── common_sse2.h │ │ ├── cost.c │ │ ├── cost_mips32.c │ │ ├── cost_mips_dsp_r2.c │ │ ├── cost_sse2.c │ │ ├── cpu.c │ │ ├── dec.c │ │ ├── dec_clip_tables.c │ │ ├── dec_mips32.c │ │ ├── dec_mips_dsp_r2.c │ │ ├── dec_msa.c │ │ ├── dec_neon.c │ │ ├── dec_sse2.c │ │ ├── dec_sse41.c │ │ ├── dsp.h │ │ ├── enc.c │ │ ├── enc_avx2.c │ │ ├── enc_mips32.c │ │ ├── enc_mips_dsp_r2.c │ │ ├── enc_msa.c │ │ ├── enc_neon.c │ │ ├── enc_sse2.c │ │ ├── enc_sse41.c │ │ ├── filters.c │ │ ├── filters_mips_dsp_r2.c │ │ ├── filters_msa.c │ │ ├── filters_neon.c │ │ ├── filters_sse2.c │ │ ├── lossless.c │ │ ├── lossless.h │ │ ├── lossless_common.h │ │ ├── lossless_enc.c │ │ ├── lossless_enc_mips32.c │ │ ├── lossless_enc_mips_dsp_r2.c │ │ ├── lossless_enc_msa.c │ │ ├── lossless_enc_neon.c │ │ ├── lossless_enc_sse2.c │ │ ├── lossless_enc_sse41.c │ │ ├── lossless_mips_dsp_r2.c │ │ ├── lossless_msa.c │ │ ├── lossless_neon.c │ │ ├── lossless_sse2.c │ │ ├── mips_macro.h │ │ ├── msa_macro.h │ │ ├── neon.h │ │ ├── rescaler.c │ │ ├── rescaler_mips32.c │ │ ├── rescaler_mips_dsp_r2.c │ │ ├── rescaler_msa.c │ │ ├── rescaler_neon.c │ │ ├── rescaler_sse2.c │ │ ├── ssim.c │ │ ├── ssim_sse2.c │ │ ├── upsampling.c │ │ ├── upsampling_mips_dsp_r2.c │ │ ├── upsampling_msa.c │ │ ├── upsampling_neon.c │ │ ├── upsampling_sse2.c │ │ ├── yuv.c │ │ ├── yuv.h │ │ ├── yuv_mips32.c │ │ ├── yuv_mips_dsp_r2.c │ │ ├── yuv_neon.c │ │ └── yuv_sse2.c │ │ ├── enc │ │ ├── alpha_enc.c │ │ ├── analysis_enc.c │ │ ├── backward_references_cost_enc.c │ │ ├── backward_references_enc.c │ │ ├── backward_references_enc.h │ │ ├── config_enc.c │ │ ├── cost_enc.c │ │ ├── cost_enc.h │ │ ├── delta_palettization_enc.c │ │ ├── delta_palettization_enc.h │ │ ├── filter_enc.c │ │ ├── frame_enc.c │ │ ├── histogram_enc.c │ │ ├── histogram_enc.h │ │ ├── iterator_enc.c │ │ ├── near_lossless_enc.c │ │ ├── picture_csp_enc.c │ │ ├── picture_enc.c │ │ ├── picture_psnr_enc.c │ │ ├── picture_rescale_enc.c │ │ ├── picture_tools_enc.c │ │ ├── predictor_enc.c │ │ ├── quant_enc.c │ │ ├── syntax_enc.c │ │ ├── token_enc.c │ │ ├── tree_enc.c │ │ ├── vp8i_enc.h │ │ ├── vp8l_enc.c │ │ ├── vp8li_enc.h │ │ └── webp_enc.c │ │ ├── mux │ │ ├── anim_encode.c │ │ ├── animi.h │ │ ├── muxedit.c │ │ ├── muxi.h │ │ ├── muxinternal.c │ │ └── muxread.c │ │ ├── utils │ │ ├── bit_reader_inl_utils.h │ │ ├── bit_reader_utils.c │ │ ├── bit_reader_utils.h │ │ ├── bit_writer_utils.c │ │ ├── bit_writer_utils.h │ │ ├── color_cache_utils.c │ │ ├── color_cache_utils.h │ │ ├── endian_inl_utils.h │ │ ├── filters_utils.c │ │ ├── filters_utils.h │ │ ├── huffman_encode_utils.c │ │ ├── huffman_encode_utils.h │ │ ├── huffman_utils.c │ │ ├── huffman_utils.h │ │ ├── quant_levels_dec_utils.c │ │ ├── quant_levels_dec_utils.h │ │ ├── quant_levels_utils.c │ │ ├── quant_levels_utils.h │ │ ├── random_utils.c │ │ ├── random_utils.h │ │ ├── rescaler_utils.c │ │ ├── rescaler_utils.h │ │ ├── thread_utils.c │ │ ├── thread_utils.h │ │ ├── utils.c │ │ └── utils.h │ │ └── webp │ │ ├── decode.h │ │ ├── demux.h │ │ ├── encode.h │ │ ├── format_constants.h │ │ ├── mux.h │ │ ├── mux_types.h │ │ └── types.h ├── nvtexturetools │ ├── NVIDIA_Texture_Tools_LICENSE.txt │ ├── NVIDIA_Texture_Tools_README.txt │ ├── VERSION │ └── src │ │ ├── bc6h │ │ ├── bits.h │ │ ├── shapes_two.h │ │ ├── tile.h │ │ ├── zoh.cpp │ │ ├── zoh.h │ │ ├── zoh_utils.cpp │ │ ├── zoh_utils.h │ │ ├── zohone.cpp │ │ └── zohtwo.cpp │ │ ├── bc7 │ │ ├── avpcl.cpp │ │ ├── avpcl.h │ │ ├── avpcl_mode0.cpp │ │ ├── avpcl_mode1.cpp │ │ ├── avpcl_mode2.cpp │ │ ├── avpcl_mode3.cpp │ │ ├── avpcl_mode4.cpp │ │ ├── avpcl_mode5.cpp │ │ ├── avpcl_mode6.cpp │ │ ├── avpcl_mode7.cpp │ │ ├── avpcl_utils.cpp │ │ ├── avpcl_utils.h │ │ ├── bits.h │ │ ├── endpts.h │ │ ├── shapes_three.h │ │ ├── shapes_two.h │ │ └── tile.h │ │ ├── extern │ │ └── poshlib │ │ │ ├── posh.c │ │ │ └── posh.h │ │ ├── nvconfig.h │ │ ├── nvcore │ │ ├── Array.h │ │ ├── Array.inl │ │ ├── Debug.cpp │ │ ├── Debug.h │ │ ├── DefsGnucDarwin.h │ │ ├── DefsGnucLinux.h │ │ ├── DefsGnucWin32.h │ │ ├── DefsVcWin32.h │ │ ├── FileSystem.cpp │ │ ├── FileSystem.h │ │ ├── ForEach.h │ │ ├── Hash.h │ │ ├── Library.cpp │ │ ├── Library.h │ │ ├── Memory.cpp │ │ ├── Memory.h │ │ ├── Ptr.h │ │ ├── RefCounted.h │ │ ├── StdStream.h │ │ ├── StrLib.cpp │ │ ├── StrLib.h │ │ ├── Stream.h │ │ ├── TextWriter.cpp │ │ ├── TextWriter.h │ │ ├── Timer.cpp │ │ ├── Timer.h │ │ ├── Utils.h │ │ └── nvcore.h │ │ ├── nvimage │ │ ├── BlockDXT.cpp │ │ ├── BlockDXT.h │ │ ├── ColorBlock.cpp │ │ ├── ColorBlock.h │ │ ├── ColorSpace.cpp │ │ ├── ColorSpace.h │ │ ├── DirectDrawSurface.cpp │ │ ├── DirectDrawSurface.h │ │ ├── ErrorMetric.cpp │ │ ├── ErrorMetric.h │ │ ├── Filter.cpp │ │ ├── Filter.h │ │ ├── FloatImage.cpp │ │ ├── FloatImage.h │ │ ├── Image.cpp │ │ ├── Image.h │ │ ├── ImageIO.cpp │ │ ├── ImageIO.h │ │ ├── KtxFile.cpp │ │ ├── KtxFile.h │ │ ├── NormalMap.cpp │ │ ├── NormalMap.h │ │ ├── PixelFormat.h │ │ ├── PsdFile.h │ │ ├── Quantize.cpp │ │ ├── Quantize.h │ │ ├── TgaFile.h │ │ ├── ValveTextureFormat.h │ │ └── nvimage.h │ │ ├── nvmath │ │ ├── Box.cpp │ │ ├── Box.h │ │ ├── Box.inl │ │ ├── Color.cpp │ │ ├── Color.h │ │ ├── Color.inl │ │ ├── Fitting.cpp │ │ ├── Fitting.h │ │ ├── Half.cpp │ │ ├── Half.h │ │ ├── Matrix.cpp │ │ ├── Matrix.h │ │ ├── Matrix.inl │ │ ├── Plane.cpp │ │ ├── Plane.h │ │ ├── Plane.inl │ │ ├── SimdVector.h │ │ ├── SimdVector_SSE.h │ │ ├── SimdVector_VE.h │ │ ├── SphericalHarmonic.cpp │ │ ├── SphericalHarmonic.h │ │ ├── Vector.cpp │ │ ├── Vector.h │ │ ├── Vector.inl │ │ ├── ftoi.h │ │ └── nvmath.h │ │ ├── nvthread │ │ ├── Atomic.h │ │ ├── Event.cpp │ │ ├── Event.h │ │ ├── Mutex.cpp │ │ ├── Mutex.h │ │ ├── ParallelFor.cpp │ │ ├── ParallelFor.h │ │ ├── Thread.cpp │ │ ├── Thread.h │ │ ├── ThreadPool.cpp │ │ ├── ThreadPool.h │ │ ├── Win32.h │ │ ├── nvthread.cpp │ │ └── nvthread.h │ │ └── nvtt │ │ ├── BlockCompressor.cpp │ │ ├── BlockCompressor.h │ │ ├── ClusterFit.cpp │ │ ├── ClusterFit.h │ │ ├── CompressionOptions.cpp │ │ ├── CompressionOptions.h │ │ ├── Compressor.h │ │ ├── CompressorDX10.cpp │ │ ├── CompressorDX10.h │ │ ├── CompressorDX11.cpp │ │ ├── CompressorDX11.h │ │ ├── CompressorDX9.cpp │ │ ├── CompressorDX9.h │ │ ├── CompressorDXT1.cpp │ │ ├── CompressorDXT1.h │ │ ├── CompressorRGB.cpp │ │ ├── CompressorRGB.h │ │ ├── Context.cpp │ │ ├── Context.h │ │ ├── CubeSurface.cpp │ │ ├── CubeSurface.h │ │ ├── InputOptions.cpp │ │ ├── InputOptions.h │ │ ├── OptimalCompressDXT.cpp │ │ ├── OptimalCompressDXT.h │ │ ├── OutputOptions.cpp │ │ ├── OutputOptions.h │ │ ├── QuickCompressDXT.cpp │ │ ├── QuickCompressDXT.h │ │ ├── SingleColorLookup.cpp │ │ ├── SingleColorLookup.h │ │ ├── Surface.cpp │ │ ├── Surface.h │ │ ├── TaskDispatcher.cpp │ │ ├── TaskDispatcher.h │ │ ├── cuda │ │ ├── BitmapTable.h │ │ ├── CompressKernel.cu │ │ ├── ConvolveKernel.cu │ │ ├── CudaCompressorDXT.cpp │ │ ├── CudaCompressorDXT.h │ │ ├── CudaMath.h │ │ ├── CudaUtils.cpp │ │ └── CudaUtils.h │ │ ├── nvtt.cpp │ │ ├── nvtt.h │ │ ├── nvtt_wrapper.cpp │ │ ├── nvtt_wrapper.h │ │ └── squish │ │ ├── README │ │ ├── alpha.cpp │ │ ├── alpha.h │ │ ├── clusterfit.cpp │ │ ├── clusterfit.h │ │ ├── colourblock.cpp │ │ ├── colourblock.h │ │ ├── colourfit.cpp │ │ ├── colourfit.h │ │ ├── colourset.cpp │ │ ├── colourset.h │ │ ├── config.h │ │ ├── fastclusterfit.cpp │ │ ├── fastclusterfit.h │ │ ├── fastclusterlookup.inl │ │ ├── maths.cpp │ │ ├── maths.h │ │ ├── rangefit.cpp │ │ ├── rangefit.h │ │ ├── simd.h │ │ ├── simd_3dnow.h │ │ ├── simd_sse.h │ │ ├── simd_ve.h │ │ ├── singlechannelfit.cpp │ │ ├── singlechannelfit.h │ │ ├── singlecolourfit.cpp │ │ ├── singlecolourfit.h │ │ ├── singlecolourlookup.inl │ │ ├── squish.cpp │ │ ├── squish.h │ │ ├── weightedclusterfit.cpp │ │ └── weightedclusterfit.h ├── nvtristrip │ ├── README.txt │ └── src │ │ ├── NvTriStrip.cpp │ │ ├── NvTriStrip.h │ │ ├── NvTriStripObjects.cpp │ │ ├── NvTriStripObjects.h │ │ └── VertexCache.h ├── opencl │ ├── LICENSE │ ├── VERSION │ └── cl │ │ ├── cl.h │ │ ├── cl_d3d10.h │ │ ├── cl_d3d11.h │ │ ├── cl_dx9_media_sharing.h │ │ ├── cl_egl.h │ │ ├── cl_ext.h │ │ ├── cl_function_types.h │ │ ├── cl_gl.h │ │ ├── cl_half.h │ │ ├── cl_icd.h │ │ ├── cl_layer.h │ │ ├── cl_platform.h │ │ ├── cl_va_api_media_sharing_intel.h │ │ ├── cl_version.h │ │ └── opencl.h ├── openjpeg │ ├── license.txt │ └── src │ │ ├── bio.c │ │ ├── bio.h │ │ ├── cio.c │ │ ├── cio.h │ │ ├── dwt.c │ │ ├── dwt.h │ │ ├── event.c │ │ ├── event.h │ │ ├── fix.h │ │ ├── image.c │ │ ├── image.h │ │ ├── int.h │ │ ├── j2k.c │ │ ├── j2k.h │ │ ├── j2k_lib.c │ │ ├── j2k_lib.h │ │ ├── jp2.c │ │ ├── jp2.h │ │ ├── jpt.c │ │ ├── jpt.h │ │ ├── mct.c │ │ ├── mct.h │ │ ├── mqc.c │ │ ├── mqc.h │ │ ├── openjpeg.c │ │ ├── openjpeg.h │ │ ├── opj_includes.h │ │ ├── opj_malloc.h │ │ ├── pi.c │ │ ├── pi.h │ │ ├── raw.c │ │ ├── raw.h │ │ ├── t1.c │ │ ├── t1.h │ │ ├── t1_luts.h │ │ ├── t2.c │ │ ├── t2.h │ │ ├── tcd.c │ │ ├── tcd.h │ │ ├── tgt.c │ │ └── tgt.h ├── renderdoc │ └── src │ │ └── renderdoc_app.h └── zlib │ ├── README │ └── src │ ├── adler32.c │ ├── compress.c │ ├── crc32.c │ ├── crc32.h │ ├── deflate.c │ ├── deflate.h │ ├── gzio.c │ ├── infback.c │ ├── inffast.c │ ├── inffast.h │ ├── inffixed.h │ ├── inflate.c │ ├── inflate.h │ ├── inftrees.c │ ├── inftrees.h │ ├── trees.c │ ├── trees.h │ ├── uncompr.c │ ├── zconf.h │ ├── zlib.h │ ├── zutil.c │ └── zutil.h ├── sxp_src ├── core │ ├── class.cpp │ ├── class.h │ ├── class.inl │ ├── config.h │ ├── containers.cpp │ ├── containers.h │ ├── containers.inl │ ├── core.cpp │ ├── core.h │ ├── core.inl │ ├── crypto.cpp │ ├── crypto.h │ ├── crypto.inl │ ├── cstr.cpp │ ├── cstr.h │ ├── cstr.inl │ ├── enum.inc │ ├── expression.cpp │ ├── expression.h │ ├── expression.inl │ ├── fsm.h │ ├── fsm.inl │ ├── fsys │ │ ├── cipher_fsys.cpp │ │ ├── cipher_fsys.h │ │ ├── fsys.cpp │ │ ├── fsys.h │ │ ├── fsys.inl │ │ ├── zip_fsys.cpp │ │ └── zip_fsys.h │ ├── functor.h │ ├── functor.inl │ ├── inet.cpp │ ├── inet.h │ ├── inet.inl │ ├── inet_protocol.cpp │ ├── inet_protocol.h │ ├── iterators.h │ ├── iterators.inl │ ├── main.h │ ├── math │ │ ├── bit_math.h │ │ ├── bit_math.inl │ │ ├── color.cpp │ │ ├── color.h │ │ ├── color.inl │ │ ├── fast_math.h │ │ ├── fast_math.inl │ │ ├── geo3.cpp │ │ ├── geo3.h │ │ ├── geo3.inl │ │ ├── math.cpp │ │ ├── math.h │ │ ├── math.inl │ │ ├── math_adv.h │ │ ├── math_adv.inl │ │ ├── monte_carlo.h │ │ ├── monte_carlo.inl │ │ ├── numeric.h │ │ ├── numeric.inl │ │ ├── optics.h │ │ ├── optics.inl │ │ ├── parametric.h │ │ ├── parametric.inl │ │ ├── prim2 │ │ │ ├── prim2.h │ │ │ ├── prim2.inl │ │ │ ├── prim2_isect.h │ │ │ └── prim2_isect.inl │ │ ├── prim3 │ │ │ ├── prim3.h │ │ │ ├── prim3.inl │ │ │ ├── prim3_angle.h │ │ │ ├── prim3_angle.inl │ │ │ ├── prim3_bvol.h │ │ │ ├── prim3_bvol.inl │ │ │ ├── prim3_dist.h │ │ │ ├── prim3_dist.inl │ │ │ ├── prim3_isect.h │ │ │ └── prim3_isect.inl │ │ ├── simd_math.cpp │ │ ├── simd_math.h │ │ ├── spherical_harmonics.h │ │ ├── spherical_harmonics.inl │ │ ├── stats.h │ │ ├── stats.inl │ │ ├── tform3.h │ │ └── tform3.inl │ ├── memory.cpp │ ├── memory.h │ ├── memory.inl │ ├── meta.h │ ├── meta.inl │ ├── mp │ │ ├── mp.h │ │ ├── mp.inl │ │ ├── mp_fiber.cpp │ │ ├── mp_fiber.h │ │ ├── mp_fiber.inl │ │ ├── mp_job_queue.cpp │ │ ├── mp_job_queue.h │ │ ├── mp_job_queue.inl │ │ ├── mp_memory.cpp │ │ ├── mp_memory.h │ │ ├── mp_memory.inl │ │ ├── mp_msg_queue.cpp │ │ ├── mp_msg_queue.h │ │ └── mp_msg_queue.inl │ ├── node_graph.cpp │ ├── node_graph.h │ ├── node_graph.inl │ ├── preprocessor.cpp │ ├── preprocessor.h │ ├── sort.h │ ├── sort.inl │ ├── str.cpp │ ├── str.h │ ├── str.inl │ ├── streams.cpp │ ├── streams.h │ ├── streams.inl │ ├── typeid.inc │ ├── utils.cpp │ ├── utils.h │ ├── utils.inl │ ├── variant.h │ ├── variant.inl │ ├── xml.cpp │ ├── xml.h │ ├── xml.inl │ ├── zip.cpp │ └── zip.h ├── core_engine │ ├── loaders │ │ ├── dataio.cpp │ │ ├── dataio.h │ │ ├── dataio.inl │ │ ├── mesh_3ds.cpp │ │ ├── mesh_collada.cpp │ │ ├── mesh_fbx.cpp │ │ ├── mesh_lwo.cpp │ │ ├── mesh_obj.cpp │ │ ├── texture_dds.cpp │ │ ├── texture_jp2.cpp │ │ ├── texture_jpg.cpp │ │ ├── texture_png.cpp │ │ ├── texture_psd.cpp │ │ ├── texture_tga.cpp │ │ ├── texture_tiff.cpp │ │ ├── texture_webp.cpp │ │ ├── track_set_bvh.cpp │ │ └── track_set_collada.cpp │ ├── mesh.cpp │ ├── mesh.h │ ├── mesh.inl │ ├── texture.cpp │ ├── texture.h │ ├── texture.inl │ ├── track_set.cpp │ ├── track_set.h │ └── track_set.inl ├── platform │ ├── linux │ │ └── core │ │ │ ├── fsys │ │ │ └── linux_fsys.cpp │ │ │ ├── linux_core.cpp │ │ │ ├── linux_core.h │ │ │ ├── linux_core__gcc.h │ │ │ ├── linux_inet.cpp │ │ │ ├── linux_inet.h │ │ │ ├── linux_inet_posix.h │ │ │ ├── linux_main.cpp │ │ │ ├── linux_main.h │ │ │ ├── math │ │ │ └── linux_simd_math.inl │ │ │ └── mp │ │ │ ├── linux_mp.cpp │ │ │ ├── linux_mp.h │ │ │ ├── linux_mp.inl │ │ │ └── linux_mp__gcc.inl │ ├── opencl │ │ ├── ocl_device.cpp │ │ ├── ocl_device.h │ │ ├── ocl_device.inc │ │ └── ocl_device.inl │ ├── posix │ │ ├── posix_fsys.cpp │ │ ├── posix_fsys.h │ │ ├── posix_inet.cpp │ │ └── posix_inet.h │ └── win │ │ └── core │ │ ├── fsys │ │ ├── win_fsys.cpp │ │ └── win_fsys.h │ │ ├── math │ │ └── win_simd_math.inl │ │ ├── mp │ │ ├── win_mp.cpp │ │ ├── win_mp.h │ │ ├── win_mp.inl │ │ ├── win_mp__gcc.inl │ │ └── win_mp__msvc.inl │ │ ├── win_com.h │ │ ├── win_com.inl │ │ ├── win_core.cpp │ │ ├── win_core.h │ │ ├── win_core__gcc.h │ │ ├── win_core__msvc.h │ │ ├── win_inet.cpp │ │ ├── win_inet_posix.h │ │ ├── win_main.cpp │ │ ├── win_main.h │ │ ├── win_system_info.cpp │ │ └── win_system_info.h ├── sxp_pch.cpp └── sxp_pch.h └── tools └── bin ├── build_templates ├── base_project.config ├── file_configs │ ├── vs2008 │ │ ├── cl │ │ ├── cuda_debug_win32 │ │ ├── cuda_debug_win64 │ │ ├── cuda_release_win32 │ │ ├── cuda_release_win64 │ │ ├── cuda_retail_win32 │ │ ├── cuda_retail_win64 │ │ ├── custom_cpp │ │ ├── disable_pch │ │ ├── excluded │ │ ├── generate_pch │ │ ├── hlsl │ │ └── sxfx │ ├── vs2010 │ │ ├── cl │ │ ├── cuda_debug_win32 │ │ ├── cuda_debug_win64 │ │ ├── cuda_release_win32 │ │ ├── cuda_release_win64 │ │ ├── cuda_retail_win32 │ │ ├── cuda_retail_win64 │ │ ├── custom_cpp │ │ ├── disable_pch │ │ ├── excluded │ │ ├── generate_pch │ │ ├── hlsl │ │ └── sxfx │ └── vs2012 │ │ ├── cl │ │ ├── cuda_debug_win32 │ │ ├── cuda_debug_win64 │ │ ├── cuda_release_win32 │ │ ├── cuda_release_win64 │ │ ├── cuda_retail_win32 │ │ ├── cuda_retail_win64 │ │ ├── custom_cpp │ │ ├── disable_pch │ │ ├── excluded │ │ ├── generate_pch │ │ ├── hlsl │ │ └── sxfx ├── vs2008.platform ├── vs2008_project.vcproj ├── vs2010.codeanalysis ├── vs2010.impgroup ├── vs2010.projcfg ├── vs2010_project.propgroup ├── vs2010_project.vcxproj ├── vs2010_project.vcxproj.filters ├── vs2012.codeanalysis ├── vs2012.impgroup ├── vs2012.projcfg ├── vs2012_project.propgroup ├── vs2012_project.vcxproj ├── vs2012_project.vcxproj.filters ├── win32 │ ├── vs2008_debug_dll.config │ ├── vs2008_debug_exe.config │ ├── vs2008_debug_lib.config │ ├── vs2008_release_dll.config │ ├── vs2008_release_exe.config │ ├── vs2008_release_lib.config │ ├── vs2008_retail_dll.config │ ├── vs2008_retail_exe.config │ ├── vs2008_retail_lib.config │ ├── vs2010_debug_exe.itemdefgroup │ ├── vs2010_debug_exe.propgroup │ ├── vs2010_debug_lib.itemdefgroup │ ├── vs2010_debug_lib.propgroup │ ├── vs2010_release_exe.itemdefgroup │ ├── vs2010_release_exe.propgroup │ ├── vs2010_release_lib.itemdefgroup │ ├── vs2010_release_lib.propgroup │ ├── vs2010_retail_exe.itemdefgroup │ ├── vs2010_retail_exe.propgroup │ ├── vs2010_retail_lib.itemdefgroup │ ├── vs2010_retail_lib.propgroup │ ├── vs2012_debug_exe.itemdefgroup │ ├── vs2012_debug_exe.propgroup │ ├── vs2012_debug_lib.itemdefgroup │ ├── vs2012_debug_lib.propgroup │ ├── vs2012_release_exe.itemdefgroup │ ├── vs2012_release_exe.propgroup │ ├── vs2012_release_lib.itemdefgroup │ ├── vs2012_release_lib.propgroup │ ├── vs2012_retail_exe.itemdefgroup │ ├── vs2012_retail_exe.propgroup │ ├── vs2012_retail_lib.itemdefgroup │ └── vs2012_retail_lib.propgroup └── win64 │ ├── vs2008_debug_dll.config │ ├── vs2008_debug_exe.config │ ├── vs2008_debug_lib.config │ ├── vs2008_release_dll.config │ ├── vs2008_release_exe.config │ ├── vs2008_release_lib.config │ ├── vs2008_retail_dll.config │ ├── vs2008_retail_exe.config │ ├── vs2008_retail_lib.config │ ├── vs2010_debug_exe.itemdefgroup │ ├── vs2010_debug_exe.propgroup │ ├── vs2010_debug_lib.itemdefgroup │ ├── vs2010_debug_lib.propgroup │ ├── vs2010_release_exe.itemdefgroup │ ├── vs2010_release_exe.propgroup │ ├── vs2010_release_lib.itemdefgroup │ ├── vs2010_release_lib.propgroup │ ├── vs2010_retail_exe.itemdefgroup │ ├── vs2010_retail_exe.propgroup │ ├── vs2010_retail_lib.itemdefgroup │ ├── vs2010_retail_lib.propgroup │ ├── vs2012_debug_exe.itemdefgroup │ ├── vs2012_debug_exe.propgroup │ ├── vs2012_debug_lib.itemdefgroup │ ├── vs2012_debug_lib.propgroup │ ├── vs2012_release_exe.itemdefgroup │ ├── vs2012_release_exe.propgroup │ ├── vs2012_release_lib.itemdefgroup │ ├── vs2012_release_lib.propgroup │ ├── vs2012_retail_exe.itemdefgroup │ ├── vs2012_retail_exe.propgroup │ ├── vs2012_retail_lib.itemdefgroup │ └── vs2012_retail_lib.propgroup └── pfc_project_gen.exe /.gitignore: -------------------------------------------------------------------------------- 1 | _intermediate 2 | lib 3 | sxp_extlibs/lib 4 | *.user 5 | .vs 6 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2022 Jarkko Lempiainen 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /build/clean.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | call clean_int.bat 3 | del ..\bin\*_debug.* /q 4 | del ..\bin\*_release.* /q 5 | del ..\bin\*_retail.* /q 6 | rd ..\lib /s /q 7 | -------------------------------------------------------------------------------- /build/clean_int.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | rd ..\_intermediate /s /q 3 | del ..\bin\*.idb /s /q 4 | del ..\bin\*.ilk /s /q 5 | del ..\bin\appdata.bin /s /q 6 | del ..\lib\*.idb /s /q 7 | del ..\src\*.tmp /s /q 8 | del *.user /s /q 9 | del *.ncb /s /q 10 | del *.sdf /s /q 11 | del *.idb /s /q 12 | del *.suo /a:h /s /q 13 | rd vs2010\ipch /s /q 14 | rd vs2012\ipch /s /q 15 | rd vs2013\ipch /s /q 16 | rd vs2015\ipch /s /q 17 | rd vs2015\.vs /s /q 18 | rd vs2017\.vs /s /q 19 | rd vs2019\.vs /s /q 20 | rd vs2022\.vs /s /q 21 | -------------------------------------------------------------------------------- /build/gen_solution.bat: -------------------------------------------------------------------------------- 1 | ..\tools\bin\pfc_project_gen mini_sxp.sxsln 2 | -------------------------------------------------------------------------------- /build/mini_sxp.sxsln: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /sxp_extlibs/build/clean.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | call clean_int.bat 3 | rd ..\lib /s /q 4 | -------------------------------------------------------------------------------- /sxp_extlibs/build/clean_int.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | call ..\..\build\clean_int.bat 3 | -------------------------------------------------------------------------------- /sxp_extlibs/build/extlibs.sxsln: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /sxp_extlibs/build/gen_solution.bat: -------------------------------------------------------------------------------- 1 | ..\..\tools\bin\pfc_project_gen extlibs.sxsln 2 | -------------------------------------------------------------------------------- /sxp_extlibs/build/jpeglib.sxproj: -------------------------------------------------------------------------------- 1 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /sxp_extlibs/build/libcurl.sxproj: -------------------------------------------------------------------------------- 1 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /sxp_extlibs/build/libpng.sxproj: -------------------------------------------------------------------------------- 1 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /sxp_extlibs/build/libtiff.sxproj: -------------------------------------------------------------------------------- 1 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /sxp_extlibs/build/libwebp.sxproj: -------------------------------------------------------------------------------- 1 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /sxp_extlibs/build/nvtristrip.sxproj: -------------------------------------------------------------------------------- 1 | 12 | 13 | 14 | 15 | 16 | 19 | 20 | 21 | 22 | 23 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /sxp_extlibs/build/opencl.sxproj: -------------------------------------------------------------------------------- 1 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /sxp_extlibs/build/openjpeg.sxproj: -------------------------------------------------------------------------------- 1 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /sxp_extlibs/build/vs2019/libpng.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /sxp_extlibs/build/vs2019/nvtristrip.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /sxp_extlibs/build/vs2019/opencl.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /sxp_extlibs/build/vs2019/zlib.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /sxp_extlibs/build/vs2022/libpng.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /sxp_extlibs/build/vs2022/nvtristrip.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /sxp_extlibs/build/vs2022/opencl.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /sxp_extlibs/build/vs2022/zlib.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /sxp_extlibs/build/zlib.sxproj: -------------------------------------------------------------------------------- 1 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /sxp_extlibs/jpeglib/src/jconfig.h: -------------------------------------------------------------------------------- 1 | /* jconfig.vc --- jconfig.h for Microsoft Visual C++ on Windows 95 or NT. */ 2 | /* see jconfig.doc for explanations */ 3 | 4 | #define HAVE_PROTOTYPES 5 | #define HAVE_UNSIGNED_CHAR 6 | #define HAVE_UNSIGNED_SHORT 7 | /* #define void char */ 8 | /* #define const */ 9 | #undef CHAR_IS_UNSIGNED 10 | #define HAVE_STDDEF_H 11 | #define HAVE_STDLIB_H 12 | #undef NEED_BSD_STRINGS 13 | #undef NEED_SYS_TYPES_H 14 | #undef NEED_FAR_POINTERS /* we presume a 32-bit flat memory model */ 15 | #undef NEED_SHORT_EXTERNAL_NAMES 16 | #undef INCOMPLETE_TYPES_BROKEN 17 | 18 | /* Define "boolean" as unsigned char, not int, per Windows custom */ 19 | #ifndef __RPCNDR_H__ /* don't conflict if rpcndr.h already read */ 20 | typedef unsigned char boolean; 21 | #endif 22 | #define HAVE_BOOLEAN /* prevent jmorecfg.h from redefining it */ 23 | 24 | 25 | #ifdef JPEG_INTERNALS 26 | 27 | #undef RIGHT_SHIFT_IS_UNSIGNED 28 | 29 | #endif /* JPEG_INTERNALS */ 30 | 31 | #ifdef JPEG_CJPEG_DJPEG 32 | 33 | #define BMP_SUPPORTED /* BMP image file format */ 34 | #define GIF_SUPPORTED /* GIF image file format */ 35 | #define PPM_SUPPORTED /* PBMPLUS PPM/PGM image file format */ 36 | #undef RLE_SUPPORTED /* Utah RLE image file format */ 37 | #define TARGA_SUPPORTED /* Targa image file format */ 38 | 39 | #define TWO_FILE_COMMANDLINE /* optional */ 40 | #define USE_SETMODE /* Microsoft has setmode() */ 41 | #undef NEED_SIGNAL_CATCHER 42 | #undef DONT_USE_B_MODE 43 | #undef PROGRESS_REPORT /* optional */ 44 | 45 | #endif /* JPEG_CJPEG_DJPEG */ 46 | -------------------------------------------------------------------------------- /sxp_extlibs/jpeglib/src/jversion.h: -------------------------------------------------------------------------------- 1 | /* 2 | * jversion.h 3 | * 4 | * Copyright (C) 1991-1998, Thomas G. Lane. 5 | * This file is part of the Independent JPEG Group's software. 6 | * For conditions of distribution and use, see the accompanying README file. 7 | * 8 | * This file contains software version identification. 9 | */ 10 | 11 | 12 | #define JVERSION "6b 27-Mar-1998" 13 | 14 | #define JCOPYRIGHT "Copyright (C) 1998, Thomas G. Lane" 15 | -------------------------------------------------------------------------------- /sxp_extlibs/libcurl/CHANGES: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JarkkoPFC/mini_sxp/7282dc219c35728aa4cc006a589517ad9645afef/sxp_extlibs/libcurl/CHANGES -------------------------------------------------------------------------------- /sxp_extlibs/libcurl/COPYING: -------------------------------------------------------------------------------- 1 | COPYRIGHT AND PERMISSION NOTICE 2 | 3 | Copyright (c) 1996 - 2023, Daniel Stenberg, , and many 4 | contributors, see the THANKS file. 5 | 6 | All rights reserved. 7 | 8 | Permission to use, copy, modify, and distribute this software for any purpose 9 | with or without fee is hereby granted, provided that the above copyright 10 | notice and this permission notice appear in all copies. 11 | 12 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 13 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 14 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN 15 | NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, 16 | DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 17 | OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE 18 | OR OTHER DEALINGS IN THE SOFTWARE. 19 | 20 | Except as contained in this notice, the name of a copyright holder shall not 21 | be used in advertising or otherwise to promote the sale, use or other dealings 22 | in this Software without prior written authorization of the copyright holder. 23 | -------------------------------------------------------------------------------- /sxp_extlibs/libcurl/VERSION: -------------------------------------------------------------------------------- 1 | 8.5.0 2 | -------------------------------------------------------------------------------- /sxp_extlibs/libcurl/include/curl/stdcheaders.h: -------------------------------------------------------------------------------- 1 | #ifndef CURLINC_STDCHEADERS_H 2 | #define CURLINC_STDCHEADERS_H 3 | /*************************************************************************** 4 | * _ _ ____ _ 5 | * Project ___| | | | _ \| | 6 | * / __| | | | |_) | | 7 | * | (__| |_| | _ <| |___ 8 | * \___|\___/|_| \_\_____| 9 | * 10 | * Copyright (C) Daniel Stenberg, , et al. 11 | * 12 | * This software is licensed as described in the file COPYING, which 13 | * you should have received as part of this distribution. The terms 14 | * are also available at https://curl.se/docs/copyright.html. 15 | * 16 | * You may opt to use, copy, modify, merge, publish, distribute and/or sell 17 | * copies of the Software, and permit persons to whom the Software is 18 | * furnished to do so, under the terms of the COPYING file. 19 | * 20 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 21 | * KIND, either express or implied. 22 | * 23 | * SPDX-License-Identifier: curl 24 | * 25 | ***************************************************************************/ 26 | 27 | #include 28 | 29 | size_t fread(void *, size_t, size_t, FILE *); 30 | size_t fwrite(const void *, size_t, size_t, FILE *); 31 | 32 | int strcasecmp(const char *, const char *); 33 | int strncasecmp(const char *, const char *, size_t); 34 | 35 | #endif /* CURLINC_STDCHEADERS_H */ 36 | -------------------------------------------------------------------------------- /sxp_extlibs/libcurl/src/amigaos.h: -------------------------------------------------------------------------------- 1 | #ifndef HEADER_CURL_AMIGAOS_H 2 | #define HEADER_CURL_AMIGAOS_H 3 | /*************************************************************************** 4 | * _ _ ____ _ 5 | * Project ___| | | | _ \| | 6 | * / __| | | | |_) | | 7 | * | (__| |_| | _ <| |___ 8 | * \___|\___/|_| \_\_____| 9 | * 10 | * Copyright (C) Daniel Stenberg, , et al. 11 | * 12 | * This software is licensed as described in the file COPYING, which 13 | * you should have received as part of this distribution. The terms 14 | * are also available at https://curl.se/docs/copyright.html. 15 | * 16 | * You may opt to use, copy, modify, merge, publish, distribute and/or sell 17 | * copies of the Software, and permit persons to whom the Software is 18 | * furnished to do so, under the terms of the COPYING file. 19 | * 20 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 21 | * KIND, either express or implied. 22 | * 23 | * SPDX-License-Identifier: curl 24 | * 25 | ***************************************************************************/ 26 | #include "curl_setup.h" 27 | 28 | #if defined(__AMIGA__) && defined(HAVE_PROTO_BSDSOCKET_H) && \ 29 | (!defined(USE_AMISSL) || defined(__amigaos4__)) 30 | 31 | CURLcode Curl_amiga_init(void); 32 | void Curl_amiga_cleanup(void); 33 | 34 | #else 35 | 36 | #define Curl_amiga_init() CURLE_OK 37 | #define Curl_amiga_cleanup() Curl_nop_stmt 38 | 39 | #endif 40 | 41 | #endif /* HEADER_CURL_AMIGAOS_H */ 42 | -------------------------------------------------------------------------------- /sxp_extlibs/libcurl/src/cf-h1-proxy.h: -------------------------------------------------------------------------------- 1 | #ifndef HEADER_CURL_H1_PROXY_H 2 | #define HEADER_CURL_H1_PROXY_H 3 | /*************************************************************************** 4 | * _ _ ____ _ 5 | * Project ___| | | | _ \| | 6 | * / __| | | | |_) | | 7 | * | (__| |_| | _ <| |___ 8 | * \___|\___/|_| \_\_____| 9 | * 10 | * Copyright (C) Daniel Stenberg, , et al. 11 | * 12 | * This software is licensed as described in the file COPYING, which 13 | * you should have received as part of this distribution. The terms 14 | * are also available at https://curl.se/docs/copyright.html. 15 | * 16 | * You may opt to use, copy, modify, merge, publish, distribute and/or sell 17 | * copies of the Software, and permit persons to whom the Software is 18 | * furnished to do so, under the terms of the COPYING file. 19 | * 20 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 21 | * KIND, either express or implied. 22 | * 23 | * SPDX-License-Identifier: curl 24 | * 25 | ***************************************************************************/ 26 | 27 | #include "curl_setup.h" 28 | 29 | #if !defined(CURL_DISABLE_PROXY) && !defined(CURL_DISABLE_HTTP) 30 | 31 | CURLcode Curl_cf_h1_proxy_insert_after(struct Curl_cfilter *cf, 32 | struct Curl_easy *data); 33 | 34 | extern struct Curl_cftype Curl_cft_h1_proxy; 35 | 36 | 37 | #endif /* !CURL_DISABLE_PROXY && !CURL_DISABLE_HTTP */ 38 | 39 | #endif /* HEADER_CURL_H1_PROXY_H */ 40 | -------------------------------------------------------------------------------- /sxp_extlibs/libcurl/src/cf-h2-proxy.h: -------------------------------------------------------------------------------- 1 | #ifndef HEADER_CURL_H2_PROXY_H 2 | #define HEADER_CURL_H2_PROXY_H 3 | /*************************************************************************** 4 | * _ _ ____ _ 5 | * Project ___| | | | _ \| | 6 | * / __| | | | |_) | | 7 | * | (__| |_| | _ <| |___ 8 | * \___|\___/|_| \_\_____| 9 | * 10 | * Copyright (C) Daniel Stenberg, , et al. 11 | * 12 | * This software is licensed as described in the file COPYING, which 13 | * you should have received as part of this distribution. The terms 14 | * are also available at https://curl.se/docs/copyright.html. 15 | * 16 | * You may opt to use, copy, modify, merge, publish, distribute and/or sell 17 | * copies of the Software, and permit persons to whom the Software is 18 | * furnished to do so, under the terms of the COPYING file. 19 | * 20 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 21 | * KIND, either express or implied. 22 | * 23 | * SPDX-License-Identifier: curl 24 | * 25 | ***************************************************************************/ 26 | 27 | #include "curl_setup.h" 28 | 29 | #if defined(USE_NGHTTP2) && !defined(CURL_DISABLE_PROXY) 30 | 31 | CURLcode Curl_cf_h2_proxy_insert_after(struct Curl_cfilter *cf, 32 | struct Curl_easy *data); 33 | 34 | extern struct Curl_cftype Curl_cft_h2_proxy; 35 | 36 | 37 | #endif /* defined(USE_NGHTTP2) && !defined(CURL_DISABLE_PROXY) */ 38 | 39 | #endif /* HEADER_CURL_H2_PROXY_H */ 40 | -------------------------------------------------------------------------------- /sxp_extlibs/libcurl/src/cf-haproxy.h: -------------------------------------------------------------------------------- 1 | #ifndef HEADER_CURL_CF_HAPROXY_H 2 | #define HEADER_CURL_CF_HAPROXY_H 3 | /*************************************************************************** 4 | * _ _ ____ _ 5 | * Project ___| | | | _ \| | 6 | * / __| | | | |_) | | 7 | * | (__| |_| | _ <| |___ 8 | * \___|\___/|_| \_\_____| 9 | * 10 | * Copyright (C) Daniel Stenberg, , et al. 11 | * 12 | * This software is licensed as described in the file COPYING, which 13 | * you should have received as part of this distribution. The terms 14 | * are also available at https://curl.se/docs/copyright.html. 15 | * 16 | * You may opt to use, copy, modify, merge, publish, distribute and/or sell 17 | * copies of the Software, and permit persons to whom the Software is 18 | * furnished to do so, under the terms of the COPYING file. 19 | * 20 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 21 | * KIND, either express or implied. 22 | * 23 | * SPDX-License-Identifier: curl 24 | * 25 | ***************************************************************************/ 26 | 27 | #include "curl_setup.h" 28 | #include "urldata.h" 29 | 30 | #if !defined(CURL_DISABLE_PROXY) 31 | 32 | CURLcode Curl_cf_haproxy_insert_after(struct Curl_cfilter *cf_at, 33 | struct Curl_easy *data); 34 | 35 | extern struct Curl_cftype Curl_cft_haproxy; 36 | 37 | #endif /* !CURL_DISABLE_PROXY */ 38 | 39 | #endif /* HEADER_CURL_CF_HAPROXY_H */ 40 | -------------------------------------------------------------------------------- /sxp_extlibs/libcurl/src/content_encoding.h: -------------------------------------------------------------------------------- 1 | #ifndef HEADER_CURL_CONTENT_ENCODING_H 2 | #define HEADER_CURL_CONTENT_ENCODING_H 3 | /*************************************************************************** 4 | * _ _ ____ _ 5 | * Project ___| | | | _ \| | 6 | * / __| | | | |_) | | 7 | * | (__| |_| | _ <| |___ 8 | * \___|\___/|_| \_\_____| 9 | * 10 | * Copyright (C) Daniel Stenberg, , et al. 11 | * 12 | * This software is licensed as described in the file COPYING, which 13 | * you should have received as part of this distribution. The terms 14 | * are also available at https://curl.se/docs/copyright.html. 15 | * 16 | * You may opt to use, copy, modify, merge, publish, distribute and/or sell 17 | * copies of the Software, and permit persons to whom the Software is 18 | * furnished to do so, under the terms of the COPYING file. 19 | * 20 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 21 | * KIND, either express or implied. 22 | * 23 | * SPDX-License-Identifier: curl 24 | * 25 | ***************************************************************************/ 26 | #include "curl_setup.h" 27 | 28 | struct Curl_cwriter; 29 | 30 | void Curl_all_content_encodings(char *buf, size_t blen); 31 | 32 | CURLcode Curl_build_unencoding_stack(struct Curl_easy *data, 33 | const char *enclist, int is_transfer); 34 | #endif /* HEADER_CURL_CONTENT_ENCODING_H */ 35 | -------------------------------------------------------------------------------- /sxp_extlibs/libcurl/src/curl_endian.h: -------------------------------------------------------------------------------- 1 | #ifndef HEADER_CURL_ENDIAN_H 2 | #define HEADER_CURL_ENDIAN_H 3 | /*************************************************************************** 4 | * _ _ ____ _ 5 | * Project ___| | | | _ \| | 6 | * / __| | | | |_) | | 7 | * | (__| |_| | _ <| |___ 8 | * \___|\___/|_| \_\_____| 9 | * 10 | * Copyright (C) Daniel Stenberg, , et al. 11 | * 12 | * This software is licensed as described in the file COPYING, which 13 | * you should have received as part of this distribution. The terms 14 | * are also available at https://curl.se/docs/copyright.html. 15 | * 16 | * You may opt to use, copy, modify, merge, publish, distribute and/or sell 17 | * copies of the Software, and permit persons to whom the Software is 18 | * furnished to do so, under the terms of the COPYING file. 19 | * 20 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 21 | * KIND, either express or implied. 22 | * 23 | * SPDX-License-Identifier: curl 24 | * 25 | ***************************************************************************/ 26 | 27 | /* Converts a 16-bit integer from little endian */ 28 | unsigned short Curl_read16_le(const unsigned char *buf); 29 | 30 | /* Converts a 32-bit integer from little endian */ 31 | unsigned int Curl_read32_le(const unsigned char *buf); 32 | 33 | /* Converts a 16-bit integer from big endian */ 34 | unsigned short Curl_read16_be(const unsigned char *buf); 35 | 36 | #endif /* HEADER_CURL_ENDIAN_H */ 37 | -------------------------------------------------------------------------------- /sxp_extlibs/libcurl/src/curl_get_line.h: -------------------------------------------------------------------------------- 1 | #ifndef HEADER_CURL_GET_LINE_H 2 | #define HEADER_CURL_GET_LINE_H 3 | /*************************************************************************** 4 | * _ _ ____ _ 5 | * Project ___| | | | _ \| | 6 | * / __| | | | |_) | | 7 | * | (__| |_| | _ <| |___ 8 | * \___|\___/|_| \_\_____| 9 | * 10 | * Copyright (C) Daniel Stenberg, , et al. 11 | * 12 | * This software is licensed as described in the file COPYING, which 13 | * you should have received as part of this distribution. The terms 14 | * are also available at https://curl.se/docs/copyright.html. 15 | * 16 | * You may opt to use, copy, modify, merge, publish, distribute and/or sell 17 | * copies of the Software, and permit persons to whom the Software is 18 | * furnished to do so, under the terms of the COPYING file. 19 | * 20 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 21 | * KIND, either express or implied. 22 | * 23 | * SPDX-License-Identifier: curl 24 | * 25 | ***************************************************************************/ 26 | 27 | /* get_line() makes sure to only return complete whole lines that fit in 'len' 28 | * bytes and end with a newline. */ 29 | char *Curl_get_line(char *buf, int len, FILE *input); 30 | 31 | #endif /* HEADER_CURL_GET_LINE_H */ 32 | -------------------------------------------------------------------------------- /sxp_extlibs/libcurl/src/curl_gethostname.h: -------------------------------------------------------------------------------- 1 | #ifndef HEADER_CURL_GETHOSTNAME_H 2 | #define HEADER_CURL_GETHOSTNAME_H 3 | /*************************************************************************** 4 | * _ _ ____ _ 5 | * Project ___| | | | _ \| | 6 | * / __| | | | |_) | | 7 | * | (__| |_| | _ <| |___ 8 | * \___|\___/|_| \_\_____| 9 | * 10 | * Copyright (C) Daniel Stenberg, , et al. 11 | * 12 | * This software is licensed as described in the file COPYING, which 13 | * you should have received as part of this distribution. The terms 14 | * are also available at https://curl.se/docs/copyright.html. 15 | * 16 | * You may opt to use, copy, modify, merge, publish, distribute and/or sell 17 | * copies of the Software, and permit persons to whom the Software is 18 | * furnished to do so, under the terms of the COPYING file. 19 | * 20 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 21 | * KIND, either express or implied. 22 | * 23 | * SPDX-License-Identifier: curl 24 | * 25 | ***************************************************************************/ 26 | 27 | /* Hostname buffer size */ 28 | #define HOSTNAME_MAX 1024 29 | 30 | /* This returns the local machine's un-qualified hostname */ 31 | int Curl_gethostname(char * const name, GETHOSTNAME_TYPE_ARG2 namelen); 32 | 33 | #endif /* HEADER_CURL_GETHOSTNAME_H */ 34 | -------------------------------------------------------------------------------- /sxp_extlibs/libcurl/src/curl_ldap.h: -------------------------------------------------------------------------------- 1 | #ifndef HEADER_CURL_LDAP_H 2 | #define HEADER_CURL_LDAP_H 3 | /*************************************************************************** 4 | * _ _ ____ _ 5 | * Project ___| | | | _ \| | 6 | * / __| | | | |_) | | 7 | * | (__| |_| | _ <| |___ 8 | * \___|\___/|_| \_\_____| 9 | * 10 | * Copyright (C) Daniel Stenberg, , et al. 11 | * 12 | * This software is licensed as described in the file COPYING, which 13 | * you should have received as part of this distribution. The terms 14 | * are also available at https://curl.se/docs/copyright.html. 15 | * 16 | * You may opt to use, copy, modify, merge, publish, distribute and/or sell 17 | * copies of the Software, and permit persons to whom the Software is 18 | * furnished to do so, under the terms of the COPYING file. 19 | * 20 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 21 | * KIND, either express or implied. 22 | * 23 | * SPDX-License-Identifier: curl 24 | * 25 | ***************************************************************************/ 26 | #ifndef CURL_DISABLE_LDAP 27 | extern const struct Curl_handler Curl_handler_ldap; 28 | 29 | #if !defined(CURL_DISABLE_LDAPS) && \ 30 | ((defined(USE_OPENLDAP) && defined(USE_SSL)) || \ 31 | (!defined(USE_OPENLDAP) && defined(HAVE_LDAP_SSL))) 32 | extern const struct Curl_handler Curl_handler_ldaps; 33 | #endif 34 | 35 | #endif 36 | #endif /* HEADER_CURL_LDAP_H */ 37 | -------------------------------------------------------------------------------- /sxp_extlibs/libcurl/src/curl_md4.h: -------------------------------------------------------------------------------- 1 | #ifndef HEADER_CURL_MD4_H 2 | #define HEADER_CURL_MD4_H 3 | /*************************************************************************** 4 | * _ _ ____ _ 5 | * Project ___| | | | _ \| | 6 | * / __| | | | |_) | | 7 | * | (__| |_| | _ <| |___ 8 | * \___|\___/|_| \_\_____| 9 | * 10 | * Copyright (C) Daniel Stenberg, , et al. 11 | * 12 | * This software is licensed as described in the file COPYING, which 13 | * you should have received as part of this distribution. The terms 14 | * are also available at https://curl.se/docs/copyright.html. 15 | * 16 | * You may opt to use, copy, modify, merge, publish, distribute and/or sell 17 | * copies of the Software, and permit persons to whom the Software is 18 | * furnished to do so, under the terms of the COPYING file. 19 | * 20 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 21 | * KIND, either express or implied. 22 | * 23 | * SPDX-License-Identifier: curl 24 | * 25 | ***************************************************************************/ 26 | 27 | #include "curl_setup.h" 28 | #include 29 | 30 | #if defined(USE_CURL_NTLM_CORE) 31 | 32 | #define MD4_DIGEST_LENGTH 16 33 | 34 | CURLcode Curl_md4it(unsigned char *output, const unsigned char *input, 35 | const size_t len); 36 | 37 | #endif /* defined(USE_CURL_NTLM_CORE) */ 38 | 39 | #endif /* HEADER_CURL_MD4_H */ 40 | -------------------------------------------------------------------------------- /sxp_extlibs/libcurl/src/curl_memrchr.h: -------------------------------------------------------------------------------- 1 | #ifndef HEADER_CURL_MEMRCHR_H 2 | #define HEADER_CURL_MEMRCHR_H 3 | /*************************************************************************** 4 | * _ _ ____ _ 5 | * Project ___| | | | _ \| | 6 | * / __| | | | |_) | | 7 | * | (__| |_| | _ <| |___ 8 | * \___|\___/|_| \_\_____| 9 | * 10 | * Copyright (C) Daniel Stenberg, , et al. 11 | * 12 | * This software is licensed as described in the file COPYING, which 13 | * you should have received as part of this distribution. The terms 14 | * are also available at https://curl.se/docs/copyright.html. 15 | * 16 | * You may opt to use, copy, modify, merge, publish, distribute and/or sell 17 | * copies of the Software, and permit persons to whom the Software is 18 | * furnished to do so, under the terms of the COPYING file. 19 | * 20 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 21 | * KIND, either express or implied. 22 | * 23 | * SPDX-License-Identifier: curl 24 | * 25 | ***************************************************************************/ 26 | 27 | #include "curl_setup.h" 28 | 29 | #ifdef HAVE_MEMRCHR 30 | 31 | #include 32 | #ifdef HAVE_STRINGS_H 33 | # include 34 | #endif 35 | 36 | #else /* HAVE_MEMRCHR */ 37 | 38 | void *Curl_memrchr(const void *s, int c, size_t n); 39 | 40 | #define memrchr(x,y,z) Curl_memrchr((x),(y),(z)) 41 | 42 | #endif /* HAVE_MEMRCHR */ 43 | 44 | #endif /* HEADER_CURL_MEMRCHR_H */ 45 | -------------------------------------------------------------------------------- /sxp_extlibs/libcurl/src/curl_range.h: -------------------------------------------------------------------------------- 1 | #ifndef HEADER_CURL_RANGE_H 2 | #define HEADER_CURL_RANGE_H 3 | /*************************************************************************** 4 | * _ _ ____ _ 5 | * Project ___| | | | _ \| | 6 | * / __| | | | |_) | | 7 | * | (__| |_| | _ <| |___ 8 | * \___|\___/|_| \_\_____| 9 | * 10 | * Copyright (C) Daniel Stenberg, , et al. 11 | * 12 | * This software is licensed as described in the file COPYING, which 13 | * you should have received as part of this distribution. The terms 14 | * are also available at https://curl.se/docs/copyright.html. 15 | * 16 | * You may opt to use, copy, modify, merge, publish, distribute and/or sell 17 | * copies of the Software, and permit persons to whom the Software is 18 | * furnished to do so, under the terms of the COPYING file. 19 | * 20 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 21 | * KIND, either express or implied. 22 | * 23 | * SPDX-License-Identifier: curl 24 | * 25 | ***************************************************************************/ 26 | 27 | #include "curl_setup.h" 28 | #include "urldata.h" 29 | 30 | CURLcode Curl_range(struct Curl_easy *data); 31 | #endif /* HEADER_CURL_RANGE_H */ 32 | -------------------------------------------------------------------------------- /sxp_extlibs/libcurl/src/curl_rtmp.h: -------------------------------------------------------------------------------- 1 | #ifndef HEADER_CURL_RTMP_H 2 | #define HEADER_CURL_RTMP_H 3 | /*************************************************************************** 4 | * _ _ ____ _ 5 | * Project ___| | | | _ \| | 6 | * / __| | | | |_) | | 7 | * | (__| |_| | _ <| |___ 8 | * \___|\___/|_| \_\_____| 9 | * 10 | * Copyright (C) Howard Chu, 11 | * 12 | * This software is licensed as described in the file COPYING, which 13 | * you should have received as part of this distribution. The terms 14 | * are also available at https://curl.se/docs/copyright.html. 15 | * 16 | * You may opt to use, copy, modify, merge, publish, distribute and/or sell 17 | * copies of the Software, and permit persons to whom the Software is 18 | * furnished to do so, under the terms of the COPYING file. 19 | * 20 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 21 | * KIND, either express or implied. 22 | * 23 | * SPDX-License-Identifier: curl 24 | * 25 | ***************************************************************************/ 26 | #ifdef USE_LIBRTMP 27 | extern const struct Curl_handler Curl_handler_rtmp; 28 | extern const struct Curl_handler Curl_handler_rtmpt; 29 | extern const struct Curl_handler Curl_handler_rtmpe; 30 | extern const struct Curl_handler Curl_handler_rtmpte; 31 | extern const struct Curl_handler Curl_handler_rtmps; 32 | extern const struct Curl_handler Curl_handler_rtmpts; 33 | #endif 34 | 35 | #endif /* HEADER_CURL_RTMP_H */ 36 | -------------------------------------------------------------------------------- /sxp_extlibs/libcurl/src/dict.h: -------------------------------------------------------------------------------- 1 | #ifndef HEADER_CURL_DICT_H 2 | #define HEADER_CURL_DICT_H 3 | /*************************************************************************** 4 | * _ _ ____ _ 5 | * Project ___| | | | _ \| | 6 | * / __| | | | |_) | | 7 | * | (__| |_| | _ <| |___ 8 | * \___|\___/|_| \_\_____| 9 | * 10 | * Copyright (C) Daniel Stenberg, , et al. 11 | * 12 | * This software is licensed as described in the file COPYING, which 13 | * you should have received as part of this distribution. The terms 14 | * are also available at https://curl.se/docs/copyright.html. 15 | * 16 | * You may opt to use, copy, modify, merge, publish, distribute and/or sell 17 | * copies of the Software, and permit persons to whom the Software is 18 | * furnished to do so, under the terms of the COPYING file. 19 | * 20 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 21 | * KIND, either express or implied. 22 | * 23 | * SPDX-License-Identifier: curl 24 | * 25 | ***************************************************************************/ 26 | 27 | #ifndef CURL_DISABLE_DICT 28 | extern const struct Curl_handler Curl_handler_dict; 29 | #endif 30 | 31 | #endif /* HEADER_CURL_DICT_H */ 32 | -------------------------------------------------------------------------------- /sxp_extlibs/libcurl/src/easyoptions.h: -------------------------------------------------------------------------------- 1 | #ifndef HEADER_CURL_EASYOPTIONS_H 2 | #define HEADER_CURL_EASYOPTIONS_H 3 | /*************************************************************************** 4 | * _ _ ____ _ 5 | * Project ___| | | | _ \| | 6 | * / __| | | | |_) | | 7 | * | (__| |_| | _ <| |___ 8 | * \___|\___/|_| \_\_____| 9 | * 10 | * Copyright (C) Daniel Stenberg, , et al. 11 | * 12 | * This software is licensed as described in the file COPYING, which 13 | * you should have received as part of this distribution. The terms 14 | * are also available at https://curl.se/docs/copyright.html. 15 | * 16 | * You may opt to use, copy, modify, merge, publish, distribute and/or sell 17 | * copies of the Software, and permit persons to whom the Software is 18 | * furnished to do so, under the terms of the COPYING file. 19 | * 20 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 21 | * KIND, either express or implied. 22 | * 23 | * SPDX-License-Identifier: curl 24 | * 25 | ***************************************************************************/ 26 | 27 | /* should probably go into the public header */ 28 | 29 | #include 30 | 31 | /* generated table with all easy options */ 32 | extern struct curl_easyoption Curl_easyopts[]; 33 | 34 | #ifdef DEBUGBUILD 35 | int Curl_easyopts_check(void); 36 | #endif 37 | #endif 38 | -------------------------------------------------------------------------------- /sxp_extlibs/libcurl/src/fileinfo.c: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | * _ _ ____ _ 3 | * Project ___| | | | _ \| | 4 | * / __| | | | |_) | | 5 | * | (__| |_| | _ <| |___ 6 | * \___|\___/|_| \_\_____| 7 | * 8 | * Copyright (C) Daniel Stenberg, , et al. 9 | * 10 | * This software is licensed as described in the file COPYING, which 11 | * you should have received as part of this distribution. The terms 12 | * are also available at https://curl.se/docs/copyright.html. 13 | * 14 | * You may opt to use, copy, modify, merge, publish, distribute and/or sell 15 | * copies of the Software, and permit persons to whom the Software is 16 | * furnished to do so, under the terms of the COPYING file. 17 | * 18 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 19 | * KIND, either express or implied. 20 | * 21 | * SPDX-License-Identifier: curl 22 | * 23 | ***************************************************************************/ 24 | 25 | #include "curl_setup.h" 26 | #ifndef CURL_DISABLE_FTP 27 | #include "strdup.h" 28 | #include "fileinfo.h" 29 | #include "curl_memory.h" 30 | /* The last #include file should be: */ 31 | #include "memdebug.h" 32 | 33 | struct fileinfo *Curl_fileinfo_alloc(void) 34 | { 35 | return calloc(1, sizeof(struct fileinfo)); 36 | } 37 | 38 | void Curl_fileinfo_cleanup(struct fileinfo *finfo) 39 | { 40 | if(!finfo) 41 | return; 42 | 43 | Curl_dyn_free(&finfo->buf); 44 | free(finfo); 45 | } 46 | #endif 47 | -------------------------------------------------------------------------------- /sxp_extlibs/libcurl/src/fileinfo.h: -------------------------------------------------------------------------------- 1 | #ifndef HEADER_CURL_FILEINFO_H 2 | #define HEADER_CURL_FILEINFO_H 3 | /*************************************************************************** 4 | * _ _ ____ _ 5 | * Project ___| | | | _ \| | 6 | * / __| | | | |_) | | 7 | * | (__| |_| | _ <| |___ 8 | * \___|\___/|_| \_\_____| 9 | * 10 | * Copyright (C) Daniel Stenberg, , et al. 11 | * 12 | * This software is licensed as described in the file COPYING, which 13 | * you should have received as part of this distribution. The terms 14 | * are also available at https://curl.se/docs/copyright.html. 15 | * 16 | * You may opt to use, copy, modify, merge, publish, distribute and/or sell 17 | * copies of the Software, and permit persons to whom the Software is 18 | * furnished to do so, under the terms of the COPYING file. 19 | * 20 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 21 | * KIND, either express or implied. 22 | * 23 | * SPDX-License-Identifier: curl 24 | * 25 | ***************************************************************************/ 26 | 27 | #include 28 | #include "llist.h" 29 | #include "dynbuf.h" 30 | 31 | struct fileinfo { 32 | struct curl_fileinfo info; 33 | struct Curl_llist_element list; 34 | struct dynbuf buf; 35 | }; 36 | 37 | struct fileinfo *Curl_fileinfo_alloc(void); 38 | void Curl_fileinfo_cleanup(struct fileinfo *finfo); 39 | 40 | #endif /* HEADER_CURL_FILEINFO_H */ 41 | -------------------------------------------------------------------------------- /sxp_extlibs/libcurl/src/fopen.h: -------------------------------------------------------------------------------- 1 | #ifndef HEADER_CURL_FOPEN_H 2 | #define HEADER_CURL_FOPEN_H 3 | /*************************************************************************** 4 | * _ _ ____ _ 5 | * Project ___| | | | _ \| | 6 | * / __| | | | |_) | | 7 | * | (__| |_| | _ <| |___ 8 | * \___|\___/|_| \_\_____| 9 | * 10 | * Copyright (C) Daniel Stenberg, , et al. 11 | * 12 | * This software is licensed as described in the file COPYING, which 13 | * you should have received as part of this distribution. The terms 14 | * are also available at https://curl.se/docs/copyright.html. 15 | * 16 | * You may opt to use, copy, modify, merge, publish, distribute and/or sell 17 | * copies of the Software, and permit persons to whom the Software is 18 | * furnished to do so, under the terms of the COPYING file. 19 | * 20 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 21 | * KIND, either express or implied. 22 | * 23 | * SPDX-License-Identifier: curl 24 | * 25 | ***************************************************************************/ 26 | 27 | CURLcode Curl_fopen(struct Curl_easy *data, const char *filename, 28 | FILE **fh, char **tempname); 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /sxp_extlibs/libcurl/src/getinfo.h: -------------------------------------------------------------------------------- 1 | #ifndef HEADER_CURL_GETINFO_H 2 | #define HEADER_CURL_GETINFO_H 3 | /*************************************************************************** 4 | * _ _ ____ _ 5 | * Project ___| | | | _ \| | 6 | * / __| | | | |_) | | 7 | * | (__| |_| | _ <| |___ 8 | * \___|\___/|_| \_\_____| 9 | * 10 | * Copyright (C) Daniel Stenberg, , et al. 11 | * 12 | * This software is licensed as described in the file COPYING, which 13 | * you should have received as part of this distribution. The terms 14 | * are also available at https://curl.se/docs/copyright.html. 15 | * 16 | * You may opt to use, copy, modify, merge, publish, distribute and/or sell 17 | * copies of the Software, and permit persons to whom the Software is 18 | * furnished to do so, under the terms of the COPYING file. 19 | * 20 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 21 | * KIND, either express or implied. 22 | * 23 | * SPDX-License-Identifier: curl 24 | * 25 | ***************************************************************************/ 26 | CURLcode Curl_getinfo(struct Curl_easy *data, CURLINFO info, ...); 27 | CURLcode Curl_initinfo(struct Curl_easy *data); 28 | 29 | #endif /* HEADER_CURL_GETINFO_H */ 30 | -------------------------------------------------------------------------------- /sxp_extlibs/libcurl/src/gopher.h: -------------------------------------------------------------------------------- 1 | #ifndef HEADER_CURL_GOPHER_H 2 | #define HEADER_CURL_GOPHER_H 3 | /*************************************************************************** 4 | * _ _ ____ _ 5 | * Project ___| | | | _ \| | 6 | * / __| | | | |_) | | 7 | * | (__| |_| | _ <| |___ 8 | * \___|\___/|_| \_\_____| 9 | * 10 | * Copyright (C) Daniel Stenberg, , et al. 11 | * 12 | * This software is licensed as described in the file COPYING, which 13 | * you should have received as part of this distribution. The terms 14 | * are also available at https://curl.se/docs/copyright.html. 15 | * 16 | * You may opt to use, copy, modify, merge, publish, distribute and/or sell 17 | * copies of the Software, and permit persons to whom the Software is 18 | * furnished to do so, under the terms of the COPYING file. 19 | * 20 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 21 | * KIND, either express or implied. 22 | * 23 | * SPDX-License-Identifier: curl 24 | * 25 | ***************************************************************************/ 26 | 27 | #ifndef CURL_DISABLE_GOPHER 28 | extern const struct Curl_handler Curl_handler_gopher; 29 | #ifdef USE_SSL 30 | extern const struct Curl_handler Curl_handler_gophers; 31 | #endif 32 | #endif 33 | 34 | #endif /* HEADER_CURL_GOPHER_H */ 35 | -------------------------------------------------------------------------------- /sxp_extlibs/libcurl/src/http_aws_sigv4.h: -------------------------------------------------------------------------------- 1 | #ifndef HEADER_CURL_HTTP_AWS_SIGV4_H 2 | #define HEADER_CURL_HTTP_AWS_SIGV4_H 3 | /*************************************************************************** 4 | * _ _ ____ _ 5 | * Project ___| | | | _ \| | 6 | * / __| | | | |_) | | 7 | * | (__| |_| | _ <| |___ 8 | * \___|\___/|_| \_\_____| 9 | * 10 | * Copyright (C) Daniel Stenberg, , et al. 11 | * 12 | * This software is licensed as described in the file COPYING, which 13 | * you should have received as part of this distribution. The terms 14 | * are also available at https://curl.haxx.se/docs/copyright.html. 15 | * 16 | * You may opt to use, copy, modify, merge, publish, distribute and/or sell 17 | * copies of the Software, and permit persons to whom the Software is 18 | * furnished to do so, under the terms of the COPYING file. 19 | * 20 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 21 | * KIND, either express or implied. 22 | * 23 | * SPDX-License-Identifier: curl 24 | * 25 | ***************************************************************************/ 26 | #include "curl_setup.h" 27 | 28 | /* this is for creating aws_sigv4 header output */ 29 | CURLcode Curl_output_aws_sigv4(struct Curl_easy *data, bool proxy); 30 | 31 | #endif /* HEADER_CURL_HTTP_AWS_SIGV4_H */ 32 | -------------------------------------------------------------------------------- /sxp_extlibs/libcurl/src/inet_ntop.h: -------------------------------------------------------------------------------- 1 | #ifndef HEADER_CURL_INET_NTOP_H 2 | #define HEADER_CURL_INET_NTOP_H 3 | /*************************************************************************** 4 | * _ _ ____ _ 5 | * Project ___| | | | _ \| | 6 | * / __| | | | |_) | | 7 | * | (__| |_| | _ <| |___ 8 | * \___|\___/|_| \_\_____| 9 | * 10 | * Copyright (C) Daniel Stenberg, , et al. 11 | * 12 | * This software is licensed as described in the file COPYING, which 13 | * you should have received as part of this distribution. The terms 14 | * are also available at https://curl.se/docs/copyright.html. 15 | * 16 | * You may opt to use, copy, modify, merge, publish, distribute and/or sell 17 | * copies of the Software, and permit persons to whom the Software is 18 | * furnished to do so, under the terms of the COPYING file. 19 | * 20 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 21 | * KIND, either express or implied. 22 | * 23 | * SPDX-License-Identifier: curl 24 | * 25 | ***************************************************************************/ 26 | 27 | #include "curl_setup.h" 28 | 29 | char *Curl_inet_ntop(int af, const void *addr, char *buf, size_t size); 30 | 31 | #ifdef HAVE_INET_NTOP 32 | #ifdef HAVE_ARPA_INET_H 33 | #include 34 | #endif 35 | #define Curl_inet_ntop(af,addr,buf,size) \ 36 | inet_ntop(af, addr, buf, (curl_socklen_t)size) 37 | #endif 38 | 39 | #endif /* HEADER_CURL_INET_NTOP_H */ 40 | -------------------------------------------------------------------------------- /sxp_extlibs/libcurl/src/inet_pton.h: -------------------------------------------------------------------------------- 1 | #ifndef HEADER_CURL_INET_PTON_H 2 | #define HEADER_CURL_INET_PTON_H 3 | /*************************************************************************** 4 | * _ _ ____ _ 5 | * Project ___| | | | _ \| | 6 | * / __| | | | |_) | | 7 | * | (__| |_| | _ <| |___ 8 | * \___|\___/|_| \_\_____| 9 | * 10 | * Copyright (C) Daniel Stenberg, , et al. 11 | * 12 | * This software is licensed as described in the file COPYING, which 13 | * you should have received as part of this distribution. The terms 14 | * are also available at https://curl.se/docs/copyright.html. 15 | * 16 | * You may opt to use, copy, modify, merge, publish, distribute and/or sell 17 | * copies of the Software, and permit persons to whom the Software is 18 | * furnished to do so, under the terms of the COPYING file. 19 | * 20 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 21 | * KIND, either express or implied. 22 | * 23 | * SPDX-License-Identifier: curl 24 | * 25 | ***************************************************************************/ 26 | 27 | #include "curl_setup.h" 28 | 29 | int Curl_inet_pton(int, const char *, void *); 30 | 31 | #ifdef HAVE_INET_PTON 32 | #ifdef HAVE_ARPA_INET_H 33 | #include 34 | #elif defined(HAVE_WS2TCPIP_H) 35 | /* inet_pton() exists in Vista or later */ 36 | #include 37 | #endif 38 | #define Curl_inet_pton(x,y,z) inet_pton(x,y,z) 39 | #endif 40 | 41 | #endif /* HEADER_CURL_INET_PTON_H */ 42 | -------------------------------------------------------------------------------- /sxp_extlibs/libcurl/src/macos.h: -------------------------------------------------------------------------------- 1 | #ifndef HEADER_CURL_MACOS_H 2 | #define HEADER_CURL_MACOS_H 3 | /*************************************************************************** 4 | * _ _ ____ _ 5 | * Project ___| | | | _ \| | 6 | * / __| | | | |_) | | 7 | * | (__| |_| | _ <| |___ 8 | * \___|\___/|_| \_\_____| 9 | * 10 | * Copyright (C) Daniel Stenberg, , et al. 11 | * 12 | * This software is licensed as described in the file COPYING, which 13 | * you should have received as part of this distribution. The terms 14 | * are also available at https://curl.se/docs/copyright.html. 15 | * 16 | * You may opt to use, copy, modify, merge, publish, distribute and/or sell 17 | * copies of the Software, and permit persons to whom the Software is 18 | * furnished to do so, under the terms of the COPYING file. 19 | * 20 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 21 | * KIND, either express or implied. 22 | * 23 | * SPDX-License-Identifier: curl 24 | * 25 | ***************************************************************************/ 26 | 27 | #include "curl_setup.h" 28 | 29 | #ifdef CURL_MACOS_CALL_COPYPROXIES 30 | 31 | CURLcode Curl_macos_init(void); 32 | 33 | #else 34 | 35 | #define Curl_macos_init() CURLE_OK 36 | 37 | #endif 38 | 39 | #endif /* HEADER_CURL_MACOS_H */ 40 | -------------------------------------------------------------------------------- /sxp_extlibs/libcurl/src/nonblock.h: -------------------------------------------------------------------------------- 1 | #ifndef HEADER_CURL_NONBLOCK_H 2 | #define HEADER_CURL_NONBLOCK_H 3 | /*************************************************************************** 4 | * _ _ ____ _ 5 | * Project ___| | | | _ \| | 6 | * / __| | | | |_) | | 7 | * | (__| |_| | _ <| |___ 8 | * \___|\___/|_| \_\_____| 9 | * 10 | * Copyright (C) Daniel Stenberg, , et al. 11 | * 12 | * This software is licensed as described in the file COPYING, which 13 | * you should have received as part of this distribution. The terms 14 | * are also available at https://curl.se/docs/copyright.html. 15 | * 16 | * You may opt to use, copy, modify, merge, publish, distribute and/or sell 17 | * copies of the Software, and permit persons to whom the Software is 18 | * furnished to do so, under the terms of the COPYING file. 19 | * 20 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 21 | * KIND, either express or implied. 22 | * 23 | * SPDX-License-Identifier: curl 24 | * 25 | ***************************************************************************/ 26 | 27 | #include /* for curl_socket_t */ 28 | 29 | int curlx_nonblock(curl_socket_t sockfd, /* operate on this */ 30 | int nonblock /* TRUE or FALSE */); 31 | 32 | #endif /* HEADER_CURL_NONBLOCK_H */ 33 | -------------------------------------------------------------------------------- /sxp_extlibs/libcurl/src/parsedate.h: -------------------------------------------------------------------------------- 1 | #ifndef HEADER_CURL_PARSEDATE_H 2 | #define HEADER_CURL_PARSEDATE_H 3 | /*************************************************************************** 4 | * _ _ ____ _ 5 | * Project ___| | | | _ \| | 6 | * / __| | | | |_) | | 7 | * | (__| |_| | _ <| |___ 8 | * \___|\___/|_| \_\_____| 9 | * 10 | * Copyright (C) Daniel Stenberg, , et al. 11 | * 12 | * This software is licensed as described in the file COPYING, which 13 | * you should have received as part of this distribution. The terms 14 | * are also available at https://curl.se/docs/copyright.html. 15 | * 16 | * You may opt to use, copy, modify, merge, publish, distribute and/or sell 17 | * copies of the Software, and permit persons to whom the Software is 18 | * furnished to do so, under the terms of the COPYING file. 19 | * 20 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 21 | * KIND, either express or implied. 22 | * 23 | * SPDX-License-Identifier: curl 24 | * 25 | ***************************************************************************/ 26 | 27 | extern const char * const Curl_wkday[7]; 28 | extern const char * const Curl_month[12]; 29 | 30 | CURLcode Curl_gmtime(time_t intime, struct tm *store); 31 | 32 | /* Curl_getdate_capped() differs from curl_getdate() in that this will return 33 | TIME_T_MAX in case the parsed time value was too big, instead of an 34 | error. */ 35 | 36 | time_t Curl_getdate_capped(const char *p); 37 | 38 | #endif /* HEADER_CURL_PARSEDATE_H */ 39 | -------------------------------------------------------------------------------- /sxp_extlibs/libcurl/src/rename.h: -------------------------------------------------------------------------------- 1 | #ifndef HEADER_CURL_RENAME_H 2 | #define HEADER_CURL_RENAME_H 3 | /*************************************************************************** 4 | * _ _ ____ _ 5 | * Project ___| | | | _ \| | 6 | * / __| | | | |_) | | 7 | * | (__| |_| | _ <| |___ 8 | * \___|\___/|_| \_\_____| 9 | * 10 | * Copyright (C) Daniel Stenberg, , et al. 11 | * 12 | * This software is licensed as described in the file COPYING, which 13 | * you should have received as part of this distribution. The terms 14 | * are also available at https://curl.se/docs/copyright.html. 15 | * 16 | * You may opt to use, copy, modify, merge, publish, distribute and/or sell 17 | * copies of the Software, and permit persons to whom the Software is 18 | * furnished to do so, under the terms of the COPYING file. 19 | * 20 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 21 | * KIND, either express or implied. 22 | * 23 | * SPDX-License-Identifier: curl 24 | * 25 | ***************************************************************************/ 26 | 27 | int Curl_rename(const char *oldpath, const char *newpath); 28 | 29 | #endif /* HEADER_CURL_RENAME_H */ 30 | -------------------------------------------------------------------------------- /sxp_extlibs/libcurl/src/setopt.h: -------------------------------------------------------------------------------- 1 | #ifndef HEADER_CURL_SETOPT_H 2 | #define HEADER_CURL_SETOPT_H 3 | /*************************************************************************** 4 | * _ _ ____ _ 5 | * Project ___| | | | _ \| | 6 | * / __| | | | |_) | | 7 | * | (__| |_| | _ <| |___ 8 | * \___|\___/|_| \_\_____| 9 | * 10 | * Copyright (C) Daniel Stenberg, , et al. 11 | * 12 | * This software is licensed as described in the file COPYING, which 13 | * you should have received as part of this distribution. The terms 14 | * are also available at https://curl.se/docs/copyright.html. 15 | * 16 | * You may opt to use, copy, modify, merge, publish, distribute and/or sell 17 | * copies of the Software, and permit persons to whom the Software is 18 | * furnished to do so, under the terms of the COPYING file. 19 | * 20 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 21 | * KIND, either express or implied. 22 | * 23 | * SPDX-License-Identifier: curl 24 | * 25 | ***************************************************************************/ 26 | 27 | CURLcode Curl_setstropt(char **charp, const char *s); 28 | CURLcode Curl_setblobopt(struct curl_blob **blobp, 29 | const struct curl_blob *blob); 30 | CURLcode Curl_vsetopt(struct Curl_easy *data, CURLoption option, va_list arg); 31 | 32 | #endif /* HEADER_CURL_SETOPT_H */ 33 | -------------------------------------------------------------------------------- /sxp_extlibs/libcurl/src/speedcheck.h: -------------------------------------------------------------------------------- 1 | #ifndef HEADER_CURL_SPEEDCHECK_H 2 | #define HEADER_CURL_SPEEDCHECK_H 3 | /*************************************************************************** 4 | * _ _ ____ _ 5 | * Project ___| | | | _ \| | 6 | * / __| | | | |_) | | 7 | * | (__| |_| | _ <| |___ 8 | * \___|\___/|_| \_\_____| 9 | * 10 | * Copyright (C) Daniel Stenberg, , et al. 11 | * 12 | * This software is licensed as described in the file COPYING, which 13 | * you should have received as part of this distribution. The terms 14 | * are also available at https://curl.se/docs/copyright.html. 15 | * 16 | * You may opt to use, copy, modify, merge, publish, distribute and/or sell 17 | * copies of the Software, and permit persons to whom the Software is 18 | * furnished to do so, under the terms of the COPYING file. 19 | * 20 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 21 | * KIND, either express or implied. 22 | * 23 | * SPDX-License-Identifier: curl 24 | * 25 | ***************************************************************************/ 26 | 27 | #include "curl_setup.h" 28 | 29 | #include "timeval.h" 30 | 31 | void Curl_speedinit(struct Curl_easy *data); 32 | CURLcode Curl_speedcheck(struct Curl_easy *data, 33 | struct curltime now); 34 | 35 | #endif /* HEADER_CURL_SPEEDCHECK_H */ 36 | -------------------------------------------------------------------------------- /sxp_extlibs/libcurl/src/strdup.h: -------------------------------------------------------------------------------- 1 | #ifndef HEADER_CURL_STRDUP_H 2 | #define HEADER_CURL_STRDUP_H 3 | /*************************************************************************** 4 | * _ _ ____ _ 5 | * Project ___| | | | _ \| | 6 | * / __| | | | |_) | | 7 | * | (__| |_| | _ <| |___ 8 | * \___|\___/|_| \_\_____| 9 | * 10 | * Copyright (C) Daniel Stenberg, , et al. 11 | * 12 | * This software is licensed as described in the file COPYING, which 13 | * you should have received as part of this distribution. The terms 14 | * are also available at https://curl.se/docs/copyright.html. 15 | * 16 | * You may opt to use, copy, modify, merge, publish, distribute and/or sell 17 | * copies of the Software, and permit persons to whom the Software is 18 | * furnished to do so, under the terms of the COPYING file. 19 | * 20 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 21 | * KIND, either express or implied. 22 | * 23 | * SPDX-License-Identifier: curl 24 | * 25 | ***************************************************************************/ 26 | #include "curl_setup.h" 27 | 28 | #ifndef HAVE_STRDUP 29 | char *Curl_strdup(const char *str); 30 | #endif 31 | #ifdef _WIN32 32 | wchar_t* Curl_wcsdup(const wchar_t* src); 33 | #endif 34 | void *Curl_memdup(const void *src, size_t buffer_length); 35 | void *Curl_saferealloc(void *ptr, size_t size); 36 | void *Curl_strndup(const char *src, size_t length); 37 | 38 | #endif /* HEADER_CURL_STRDUP_H */ 39 | -------------------------------------------------------------------------------- /sxp_extlibs/libcurl/src/strerror.h: -------------------------------------------------------------------------------- 1 | #ifndef HEADER_CURL_STRERROR_H 2 | #define HEADER_CURL_STRERROR_H 3 | /*************************************************************************** 4 | * _ _ ____ _ 5 | * Project ___| | | | _ \| | 6 | * / __| | | | |_) | | 7 | * | (__| |_| | _ <| |___ 8 | * \___|\___/|_| \_\_____| 9 | * 10 | * Copyright (C) Daniel Stenberg, , et al. 11 | * 12 | * This software is licensed as described in the file COPYING, which 13 | * you should have received as part of this distribution. The terms 14 | * are also available at https://curl.se/docs/copyright.html. 15 | * 16 | * You may opt to use, copy, modify, merge, publish, distribute and/or sell 17 | * copies of the Software, and permit persons to whom the Software is 18 | * furnished to do so, under the terms of the COPYING file. 19 | * 20 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 21 | * KIND, either express or implied. 22 | * 23 | * SPDX-License-Identifier: curl 24 | * 25 | ***************************************************************************/ 26 | 27 | #include "urldata.h" 28 | 29 | #define STRERROR_LEN 256 /* a suitable length */ 30 | 31 | const char *Curl_strerror(int err, char *buf, size_t buflen); 32 | #if defined(_WIN32) || defined(_WIN32_WCE) 33 | const char *Curl_winapi_strerror(DWORD err, char *buf, size_t buflen); 34 | #endif 35 | #ifdef USE_WINDOWS_SSPI 36 | const char *Curl_sspi_strerror(int err, char *buf, size_t buflen); 37 | #endif 38 | 39 | #endif /* HEADER_CURL_STRERROR_H */ 40 | -------------------------------------------------------------------------------- /sxp_extlibs/libcurl/src/strtok.h: -------------------------------------------------------------------------------- 1 | #ifndef HEADER_CURL_STRTOK_H 2 | #define HEADER_CURL_STRTOK_H 3 | /*************************************************************************** 4 | * _ _ ____ _ 5 | * Project ___| | | | _ \| | 6 | * / __| | | | |_) | | 7 | * | (__| |_| | _ <| |___ 8 | * \___|\___/|_| \_\_____| 9 | * 10 | * Copyright (C) Daniel Stenberg, , et al. 11 | * 12 | * This software is licensed as described in the file COPYING, which 13 | * you should have received as part of this distribution. The terms 14 | * are also available at https://curl.se/docs/copyright.html. 15 | * 16 | * You may opt to use, copy, modify, merge, publish, distribute and/or sell 17 | * copies of the Software, and permit persons to whom the Software is 18 | * furnished to do so, under the terms of the COPYING file. 19 | * 20 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 21 | * KIND, either express or implied. 22 | * 23 | * SPDX-License-Identifier: curl 24 | * 25 | ***************************************************************************/ 26 | #include "curl_setup.h" 27 | #include 28 | 29 | #ifndef HAVE_STRTOK_R 30 | char *Curl_strtok_r(char *s, const char *delim, char **last); 31 | #define strtok_r Curl_strtok_r 32 | #else 33 | #include 34 | #endif 35 | 36 | #endif /* HEADER_CURL_STRTOK_H */ 37 | -------------------------------------------------------------------------------- /sxp_extlibs/libcurl/src/telnet.h: -------------------------------------------------------------------------------- 1 | #ifndef HEADER_CURL_TELNET_H 2 | #define HEADER_CURL_TELNET_H 3 | /*************************************************************************** 4 | * _ _ ____ _ 5 | * Project ___| | | | _ \| | 6 | * / __| | | | |_) | | 7 | * | (__| |_| | _ <| |___ 8 | * \___|\___/|_| \_\_____| 9 | * 10 | * Copyright (C) Daniel Stenberg, , et al. 11 | * 12 | * This software is licensed as described in the file COPYING, which 13 | * you should have received as part of this distribution. The terms 14 | * are also available at https://curl.se/docs/copyright.html. 15 | * 16 | * You may opt to use, copy, modify, merge, publish, distribute and/or sell 17 | * copies of the Software, and permit persons to whom the Software is 18 | * furnished to do so, under the terms of the COPYING file. 19 | * 20 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 21 | * KIND, either express or implied. 22 | * 23 | * SPDX-License-Identifier: curl 24 | * 25 | ***************************************************************************/ 26 | #ifndef CURL_DISABLE_TELNET 27 | extern const struct Curl_handler Curl_handler_telnet; 28 | #endif 29 | 30 | #endif /* HEADER_CURL_TELNET_H */ 31 | -------------------------------------------------------------------------------- /sxp_extlibs/libcurl/src/tftp.h: -------------------------------------------------------------------------------- 1 | #ifndef HEADER_CURL_TFTP_H 2 | #define HEADER_CURL_TFTP_H 3 | /*************************************************************************** 4 | * _ _ ____ _ 5 | * Project ___| | | | _ \| | 6 | * / __| | | | |_) | | 7 | * | (__| |_| | _ <| |___ 8 | * \___|\___/|_| \_\_____| 9 | * 10 | * Copyright (C) Daniel Stenberg, , et al. 11 | * 12 | * This software is licensed as described in the file COPYING, which 13 | * you should have received as part of this distribution. The terms 14 | * are also available at https://curl.se/docs/copyright.html. 15 | * 16 | * You may opt to use, copy, modify, merge, publish, distribute and/or sell 17 | * copies of the Software, and permit persons to whom the Software is 18 | * furnished to do so, under the terms of the COPYING file. 19 | * 20 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 21 | * KIND, either express or implied. 22 | * 23 | * SPDX-License-Identifier: curl 24 | * 25 | ***************************************************************************/ 26 | #ifndef CURL_DISABLE_TFTP 27 | extern const struct Curl_handler Curl_handler_tftp; 28 | 29 | #define TFTP_BLKSIZE_MIN 8 30 | #define TFTP_BLKSIZE_MAX 65464 31 | #endif 32 | 33 | #endif /* HEADER_CURL_TFTP_H */ 34 | -------------------------------------------------------------------------------- /sxp_extlibs/libcurl/src/vauth/digest.h: -------------------------------------------------------------------------------- 1 | #ifndef HEADER_CURL_DIGEST_H 2 | #define HEADER_CURL_DIGEST_H 3 | /*************************************************************************** 4 | * _ _ ____ _ 5 | * Project ___| | | | _ \| | 6 | * / __| | | | |_) | | 7 | * | (__| |_| | _ <| |___ 8 | * \___|\___/|_| \_\_____| 9 | * 10 | * Copyright (C) Daniel Stenberg, , et al. 11 | * 12 | * This software is licensed as described in the file COPYING, which 13 | * you should have received as part of this distribution. The terms 14 | * are also available at https://curl.se/docs/copyright.html. 15 | * 16 | * You may opt to use, copy, modify, merge, publish, distribute and/or sell 17 | * copies of the Software, and permit persons to whom the Software is 18 | * furnished to do so, under the terms of the COPYING file. 19 | * 20 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 21 | * KIND, either express or implied. 22 | * 23 | * SPDX-License-Identifier: curl 24 | * 25 | ***************************************************************************/ 26 | 27 | #include 28 | 29 | #ifndef CURL_DISABLE_DIGEST_AUTH 30 | 31 | #define DIGEST_MAX_VALUE_LENGTH 256 32 | #define DIGEST_MAX_CONTENT_LENGTH 1024 33 | 34 | /* This is used to extract the realm from a challenge message */ 35 | bool Curl_auth_digest_get_pair(const char *str, char *value, char *content, 36 | const char **endptr); 37 | 38 | #endif 39 | 40 | #endif /* HEADER_CURL_DIGEST_H */ 41 | -------------------------------------------------------------------------------- /sxp_extlibs/libcurl/src/vtls/bearssl.h: -------------------------------------------------------------------------------- 1 | #ifndef HEADER_CURL_BEARSSL_H 2 | #define HEADER_CURL_BEARSSL_H 3 | /*************************************************************************** 4 | * _ _ ____ _ 5 | * Project ___| | | | _ \| | 6 | * / __| | | | |_) | | 7 | * | (__| |_| | _ <| |___ 8 | * \___|\___/|_| \_\_____| 9 | * 10 | * Copyright (C) Michael Forney, 11 | * 12 | * This software is licensed as described in the file COPYING, which 13 | * you should have received as part of this distribution. The terms 14 | * are also available at https://curl.se/docs/copyright.html. 15 | * 16 | * You may opt to use, copy, modify, merge, publish, distribute and/or sell 17 | * copies of the Software, and permit persons to whom the Software is 18 | * furnished to do so, under the terms of the COPYING file. 19 | * 20 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 21 | * KIND, either express or implied. 22 | * 23 | * SPDX-License-Identifier: curl 24 | * 25 | ***************************************************************************/ 26 | 27 | #include "curl_setup.h" 28 | 29 | #ifdef USE_BEARSSL 30 | 31 | extern const struct Curl_ssl Curl_ssl_bearssl; 32 | 33 | #endif /* USE_BEARSSL */ 34 | #endif /* HEADER_CURL_BEARSSL_H */ 35 | -------------------------------------------------------------------------------- /sxp_extlibs/libcurl/src/vtls/hostcheck.h: -------------------------------------------------------------------------------- 1 | #ifndef HEADER_CURL_HOSTCHECK_H 2 | #define HEADER_CURL_HOSTCHECK_H 3 | /*************************************************************************** 4 | * _ _ ____ _ 5 | * Project ___| | | | _ \| | 6 | * / __| | | | |_) | | 7 | * | (__| |_| | _ <| |___ 8 | * \___|\___/|_| \_\_____| 9 | * 10 | * Copyright (C) Daniel Stenberg, , et al. 11 | * 12 | * This software is licensed as described in the file COPYING, which 13 | * you should have received as part of this distribution. The terms 14 | * are also available at https://curl.se/docs/copyright.html. 15 | * 16 | * You may opt to use, copy, modify, merge, publish, distribute and/or sell 17 | * copies of the Software, and permit persons to whom the Software is 18 | * furnished to do so, under the terms of the COPYING file. 19 | * 20 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 21 | * KIND, either express or implied. 22 | * 23 | * SPDX-License-Identifier: curl 24 | * 25 | ***************************************************************************/ 26 | 27 | #include 28 | 29 | /* returns TRUE if there's a match */ 30 | bool Curl_cert_hostcheck(const char *match_pattern, size_t matchlen, 31 | const char *hostname, size_t hostlen); 32 | 33 | #endif /* HEADER_CURL_HOSTCHECK_H */ 34 | -------------------------------------------------------------------------------- /sxp_extlibs/libcurl/src/vtls/mbedtls.h: -------------------------------------------------------------------------------- 1 | #ifndef HEADER_CURL_MBEDTLS_H 2 | #define HEADER_CURL_MBEDTLS_H 3 | /*************************************************************************** 4 | * _ _ ____ _ 5 | * Project ___| | | | _ \| | 6 | * / __| | | | |_) | | 7 | * | (__| |_| | _ <| |___ 8 | * \___|\___/|_| \_\_____| 9 | * 10 | * Copyright (C) Daniel Stenberg, , et al. 11 | * Copyright (C) Hoi-Ho Chan, 12 | * 13 | * This software is licensed as described in the file COPYING, which 14 | * you should have received as part of this distribution. The terms 15 | * are also available at https://curl.se/docs/copyright.html. 16 | * 17 | * You may opt to use, copy, modify, merge, publish, distribute and/or sell 18 | * copies of the Software, and permit persons to whom the Software is 19 | * furnished to do so, under the terms of the COPYING file. 20 | * 21 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 22 | * KIND, either express or implied. 23 | * 24 | * SPDX-License-Identifier: curl 25 | * 26 | ***************************************************************************/ 27 | #include "curl_setup.h" 28 | 29 | #ifdef USE_MBEDTLS 30 | 31 | extern const struct Curl_ssl Curl_ssl_mbedtls; 32 | 33 | #endif /* USE_MBEDTLS */ 34 | #endif /* HEADER_CURL_MBEDTLS_H */ 35 | -------------------------------------------------------------------------------- /sxp_extlibs/libcurl/src/vtls/rustls.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | * _ _ ____ _ 3 | * Project ___| | | | _ \| | 4 | * / __| | | | |_) | | 5 | * | (__| |_| | _ <| |___ 6 | * \___|\___/|_| \_\_____| 7 | * 8 | * Copyright (C) Jacob Hoffman-Andrews, 9 | * 10 | * 11 | * This software is licensed as described in the file COPYING, which 12 | * you should have received as part of this distribution. The terms 13 | * are also available at https://curl.se/docs/copyright.html. 14 | * 15 | * You may opt to use, copy, modify, merge, publish, distribute and/or sell 16 | * copies of the Software, and permit persons to whom the Software is 17 | * furnished to do so, under the terms of the COPYING file. 18 | * 19 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 20 | * KIND, either express or implied. 21 | * 22 | * SPDX-License-Identifier: curl 23 | * 24 | ***************************************************************************/ 25 | #ifndef HEADER_CURL_RUSTLS_H 26 | #define HEADER_CURL_RUSTLS_H 27 | 28 | #include "curl_setup.h" 29 | 30 | #ifdef USE_RUSTLS 31 | 32 | extern const struct Curl_ssl Curl_ssl_rustls; 33 | 34 | #endif /* USE_RUSTLS */ 35 | #endif /* HEADER_CURL_RUSTLS_H */ 36 | -------------------------------------------------------------------------------- /sxp_extlibs/libcurl/src/vtls/sectransp.h: -------------------------------------------------------------------------------- 1 | #ifndef HEADER_CURL_SECTRANSP_H 2 | #define HEADER_CURL_SECTRANSP_H 3 | /*************************************************************************** 4 | * _ _ ____ _ 5 | * Project ___| | | | _ \| | 6 | * / __| | | | |_) | | 7 | * | (__| |_| | _ <| |___ 8 | * \___|\___/|_| \_\_____| 9 | * 10 | * Copyright (C) Nick Zitzmann, . 11 | * Copyright (C) Daniel Stenberg, , et al. 12 | * 13 | * This software is licensed as described in the file COPYING, which 14 | * you should have received as part of this distribution. The terms 15 | * are also available at https://curl.se/docs/copyright.html. 16 | * 17 | * You may opt to use, copy, modify, merge, publish, distribute and/or sell 18 | * copies of the Software, and permit persons to whom the Software is 19 | * furnished to do so, under the terms of the COPYING file. 20 | * 21 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 22 | * KIND, either express or implied. 23 | * 24 | * SPDX-License-Identifier: curl 25 | * 26 | ***************************************************************************/ 27 | #include "curl_setup.h" 28 | 29 | #ifdef USE_SECTRANSP 30 | 31 | extern const struct Curl_ssl Curl_ssl_sectransp; 32 | 33 | #endif /* USE_SECTRANSP */ 34 | #endif /* HEADER_CURL_SECTRANSP_H */ 35 | -------------------------------------------------------------------------------- /sxp_extlibs/libcurl/src/vtls/wolfssl.h: -------------------------------------------------------------------------------- 1 | #ifndef HEADER_CURL_WOLFSSL_H 2 | #define HEADER_CURL_WOLFSSL_H 3 | /*************************************************************************** 4 | * _ _ ____ _ 5 | * Project ___| | | | _ \| | 6 | * / __| | | | |_) | | 7 | * | (__| |_| | _ <| |___ 8 | * \___|\___/|_| \_\_____| 9 | * 10 | * Copyright (C) Daniel Stenberg, , et al. 11 | * 12 | * This software is licensed as described in the file COPYING, which 13 | * you should have received as part of this distribution. The terms 14 | * are also available at https://curl.se/docs/copyright.html. 15 | * 16 | * You may opt to use, copy, modify, merge, publish, distribute and/or sell 17 | * copies of the Software, and permit persons to whom the Software is 18 | * furnished to do so, under the terms of the COPYING file. 19 | * 20 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 21 | * KIND, either express or implied. 22 | * 23 | * SPDX-License-Identifier: curl 24 | * 25 | ***************************************************************************/ 26 | #include "curl_setup.h" 27 | 28 | #ifdef USE_WOLFSSL 29 | 30 | extern const struct Curl_ssl Curl_ssl_wolfssl; 31 | 32 | #endif /* USE_WOLFSSL */ 33 | #endif /* HEADER_CURL_WOLFSSL_H */ 34 | -------------------------------------------------------------------------------- /sxp_extlibs/libpng/src/pngvcrd.c: -------------------------------------------------------------------------------- 1 | /* pnggvrd.c was removed from libpng-1.2.20. */ 2 | -------------------------------------------------------------------------------- /sxp_extlibs/libtiff/COPYRIGHT: -------------------------------------------------------------------------------- 1 | Copyright (c) 1988-1997 Sam Leffler 2 | Copyright (c) 1991-1997 Silicon Graphics, Inc. 3 | 4 | Permission to use, copy, modify, distribute, and sell this software and 5 | its documentation for any purpose is hereby granted without fee, provided 6 | that (i) the above copyright notices and this permission notice appear in 7 | all copies of the software and related documentation, and (ii) the names of 8 | Sam Leffler and Silicon Graphics may not be used in any advertising or 9 | publicity relating to the software without the specific, prior written 10 | permission of Sam Leffler and Silicon Graphics. 11 | 12 | THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 13 | EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 14 | WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. 15 | 16 | IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR 17 | ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, 18 | OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 19 | WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 20 | LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 21 | OF THIS SOFTWARE. 22 | -------------------------------------------------------------------------------- /sxp_extlibs/libtiff/VERSION: -------------------------------------------------------------------------------- 1 | 3.8.2 2 | -------------------------------------------------------------------------------- /sxp_extlibs/libtiff/src/tif_config.h: -------------------------------------------------------------------------------- 1 | /* Define to 1 if you have the header file. */ 2 | #define HAVE_ASSERT_H 1 3 | 4 | /* Define to 1 if you have the header file. */ 5 | #define HAVE_FCNTL_H 1 6 | 7 | /* Define as 0 or 1 according to the floating point format suported by the 8 | machine */ 9 | #define HAVE_IEEEFP 1 10 | 11 | /* Define to 1 if you have the header file. */ 12 | #define HAVE_STRING_H 1 13 | 14 | /* Define to 1 if you have the header file. */ 15 | #define HAVE_SYS_TYPES_H 1 16 | 17 | /* Define to 1 if you have the header file. */ 18 | #define HAVE_IO_H 1 19 | 20 | /* Define to 1 if you have the header file. */ 21 | #define HAVE_SEARCH_H 1 22 | 23 | /* The size of a `int', as computed by sizeof. */ 24 | #define SIZEOF_INT 4 25 | 26 | /* The size of a `long', as computed by sizeof. */ 27 | #define SIZEOF_LONG 4 28 | 29 | /* Set the native cpu bit order */ 30 | #define HOST_FILLORDER FILLORDER_LSB2MSB 31 | 32 | /* Define to 1 if your processor stores words with the most significant byte 33 | first (like Motorola and SPARC, unlike Intel and VAX). */ 34 | /* #undef WORDS_BIGENDIAN */ 35 | 36 | /* Define to `__inline__' or `__inline' if that's what the C compiler 37 | calls it, or to nothing if 'inline' is not supported under any name. */ 38 | #ifndef __cplusplus 39 | # ifndef inline 40 | # define inline __inline 41 | # endif 42 | #endif 43 | 44 | //#define lfind _lfind 45 | -------------------------------------------------------------------------------- /sxp_extlibs/libtiff/src/tif_version.c: -------------------------------------------------------------------------------- 1 | /* $Header: /cvs/maptools/cvsroot/libtiff/libtiff/tif_version.c,v 1.2 2000/11/13 14:42:38 warmerda Exp $ */ 2 | /* 3 | * Copyright (c) 1992-1997 Sam Leffler 4 | * Copyright (c) 1992-1997 Silicon Graphics, Inc. 5 | * 6 | * Permission to use, copy, modify, distribute, and sell this software and 7 | * its documentation for any purpose is hereby granted without fee, provided 8 | * that (i) the above copyright notices and this permission notice appear in 9 | * all copies of the software and related documentation, and (ii) the names of 10 | * Sam Leffler and Silicon Graphics may not be used in any advertising or 11 | * publicity relating to the software without the specific, prior written 12 | * permission of Sam Leffler and Silicon Graphics. 13 | * 14 | * THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 15 | * EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 16 | * WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. 17 | * 18 | * IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR 19 | * ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, 20 | * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 21 | * WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 22 | * LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 23 | * OF THIS SOFTWARE. 24 | */ 25 | #include "tiffiop.h" 26 | 27 | static const char TIFFVersion[] = TIFFLIB_VERSION_STR; 28 | 29 | const char* 30 | TIFFGetVersion(void) 31 | { 32 | return (TIFFVersion); 33 | } 34 | -------------------------------------------------------------------------------- /sxp_extlibs/libtiff/src/tiffvers.h: -------------------------------------------------------------------------------- 1 | #define TIFFLIB_VERSION_STR "LIBTIFF, Version 3.8.2\nCopyright (c) 1988-1996 Sam Leffler\nCopyright (c) 1991-1996 Silicon Graphics, Inc." 2 | /* 3 | * This define can be used in code that requires 4 | * compilation-related definitions specific to a 5 | * version or versions of the library. Runtime 6 | * version checking should be done based on the 7 | * string returned by TIFFGetVersion. 8 | */ 9 | #define TIFFLIB_VERSION 20060323 10 | -------------------------------------------------------------------------------- /sxp_extlibs/libwebp/src/dsp/dec_sse41.c: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Google Inc. All Rights Reserved. 2 | // 3 | // Use of this source code is governed by a BSD-style license 4 | // that can be found in the COPYING file in the root of the source 5 | // tree. An additional intellectual property rights grant can be found 6 | // in the file PATENTS. All contributing project authors may 7 | // be found in the AUTHORS file in the root of the source tree. 8 | // ----------------------------------------------------------------------------- 9 | // 10 | // SSE4 version of some decoding functions. 11 | // 12 | // Author: Skal (pascal.massimino@gmail.com) 13 | 14 | #include "./dsp.h" 15 | 16 | #if defined(WEBP_USE_SSE41) 17 | 18 | #include 19 | #include "../dec/vp8i_dec.h" 20 | #include "../utils/utils.h" 21 | 22 | static void HE16(uint8_t* dst) { // horizontal 23 | int j; 24 | const __m128i kShuffle3 = _mm_set1_epi8(3); 25 | for (j = 16; j > 0; --j) { 26 | const __m128i in = _mm_cvtsi32_si128(WebPMemToUint32(dst - 4)); 27 | const __m128i values = _mm_shuffle_epi8(in, kShuffle3); 28 | _mm_storeu_si128((__m128i*)dst, values); 29 | dst += BPS; 30 | } 31 | } 32 | 33 | //------------------------------------------------------------------------------ 34 | // Entry point 35 | 36 | extern void VP8DspInitSSE41(void); 37 | 38 | WEBP_TSAN_IGNORE_FUNCTION void VP8DspInitSSE41(void) { 39 | VP8PredLuma16[3] = HE16; 40 | } 41 | 42 | #else // !WEBP_USE_SSE41 43 | 44 | WEBP_DSP_INIT_STUB(VP8DspInitSSE41) 45 | 46 | #endif // WEBP_USE_SSE41 47 | -------------------------------------------------------------------------------- /sxp_extlibs/libwebp/src/dsp/enc_avx2.c: -------------------------------------------------------------------------------- 1 | // Copyright 2014 Google Inc. All Rights Reserved. 2 | // 3 | // Use of this source code is governed by a BSD-style license 4 | // that can be found in the COPYING file in the root of the source 5 | // tree. An additional intellectual property rights grant can be found 6 | // in the file PATENTS. All contributing project authors may 7 | // be found in the AUTHORS file in the root of the source tree. 8 | // ----------------------------------------------------------------------------- 9 | // 10 | // AVX2 version of speed-critical encoding functions. 11 | 12 | #include "./dsp.h" 13 | 14 | #if defined(WEBP_USE_AVX2) 15 | 16 | #endif // WEBP_USE_AVX2 17 | 18 | //------------------------------------------------------------------------------ 19 | // Entry point 20 | 21 | WEBP_DSP_INIT_STUB(VP8EncDspInitAVX2) 22 | -------------------------------------------------------------------------------- /sxp_extlibs/libwebp/src/enc/delta_palettization_enc.h: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Google Inc. All Rights Reserved. 2 | // 3 | // Use of this source code is governed by a BSD-style license 4 | // that can be found in the COPYING file in the root of the source 5 | // tree. An additional intellectual property rights grant can be found 6 | // in the file PATENTS. All contributing project authors may 7 | // be found in the AUTHORS file in the root of the source tree. 8 | // ----------------------------------------------------------------------------- 9 | // 10 | // Author: Mislav Bradac (mislavm@google.com) 11 | // 12 | 13 | #ifndef WEBP_ENC_DELTA_PALETTIZATION_H_ 14 | #define WEBP_ENC_DELTA_PALETTIZATION_H_ 15 | 16 | #include "../webp/encode.h" 17 | #include "../enc/vp8li_enc.h" 18 | 19 | // Replaces enc->argb_[] input by a palettizable approximation of it, 20 | // and generates optimal enc->palette_[]. 21 | // This function can revert enc->use_palette_ / enc->use_predict_ flag 22 | // if delta-palettization is not producing expected saving. 23 | WebPEncodingError WebPSearchOptimalDeltaPalette(VP8LEncoder* const enc); 24 | 25 | #endif // WEBP_ENC_DELTA_PALETTIZATION_H_ 26 | -------------------------------------------------------------------------------- /sxp_extlibs/libwebp/src/utils/filters_utils.h: -------------------------------------------------------------------------------- 1 | // Copyright 2011 Google Inc. All Rights Reserved. 2 | // 3 | // Use of this source code is governed by a BSD-style license 4 | // that can be found in the COPYING file in the root of the source 5 | // tree. An additional intellectual property rights grant can be found 6 | // in the file PATENTS. All contributing project authors may 7 | // be found in the AUTHORS file in the root of the source tree. 8 | // ----------------------------------------------------------------------------- 9 | // 10 | // Spatial prediction using various filters 11 | // 12 | // Author: Urvang (urvang@google.com) 13 | 14 | #ifndef WEBP_UTILS_FILTERS_H_ 15 | #define WEBP_UTILS_FILTERS_H_ 16 | 17 | #include "../webp/types.h" 18 | #include "../dsp/dsp.h" 19 | 20 | #ifdef __cplusplus 21 | extern "C" { 22 | #endif 23 | 24 | // Fast estimate of a potentially good filter. 25 | WEBP_FILTER_TYPE WebPEstimateBestFilter(const uint8_t* data, 26 | int width, int height, int stride); 27 | 28 | #ifdef __cplusplus 29 | } // extern "C" 30 | #endif 31 | 32 | #endif /* WEBP_UTILS_FILTERS_H_ */ 33 | -------------------------------------------------------------------------------- /sxp_extlibs/libwebp/src/utils/quant_levels_dec_utils.h: -------------------------------------------------------------------------------- 1 | // Copyright 2013 Google Inc. All Rights Reserved. 2 | // 3 | // Use of this source code is governed by a BSD-style license 4 | // that can be found in the COPYING file in the root of the source 5 | // tree. An additional intellectual property rights grant can be found 6 | // in the file PATENTS. All contributing project authors may 7 | // be found in the AUTHORS file in the root of the source tree. 8 | // ----------------------------------------------------------------------------- 9 | // 10 | // Alpha plane de-quantization utility 11 | // 12 | // Author: Vikas Arora (vikasa@google.com) 13 | 14 | #ifndef WEBP_UTILS_QUANT_LEVELS_DEC_H_ 15 | #define WEBP_UTILS_QUANT_LEVELS_DEC_H_ 16 | 17 | #include "../webp/types.h" 18 | 19 | #ifdef __cplusplus 20 | extern "C" { 21 | #endif 22 | 23 | // Apply post-processing to input 'data' of size 'width'x'height' assuming that 24 | // the source was quantized to a reduced number of levels. 'stride' is in bytes. 25 | // Strength is in [0..100] and controls the amount of dithering applied. 26 | // Returns false in case of error (data is NULL, invalid parameters, 27 | // malloc failure, ...). 28 | int WebPDequantizeLevels(uint8_t* const data, int width, int height, int stride, 29 | int strength); 30 | 31 | #ifdef __cplusplus 32 | } // extern "C" 33 | #endif 34 | 35 | #endif /* WEBP_UTILS_QUANT_LEVELS_DEC_H_ */ 36 | -------------------------------------------------------------------------------- /sxp_extlibs/libwebp/src/utils/quant_levels_utils.h: -------------------------------------------------------------------------------- 1 | // Copyright 2011 Google Inc. All Rights Reserved. 2 | // 3 | // Use of this source code is governed by a BSD-style license 4 | // that can be found in the COPYING file in the root of the source 5 | // tree. An additional intellectual property rights grant can be found 6 | // in the file PATENTS. All contributing project authors may 7 | // be found in the AUTHORS file in the root of the source tree. 8 | // ----------------------------------------------------------------------------- 9 | // 10 | // Alpha plane quantization utility 11 | // 12 | // Author: Vikas Arora (vikasa@google.com) 13 | 14 | #ifndef WEBP_UTILS_QUANT_LEVELS_H_ 15 | #define WEBP_UTILS_QUANT_LEVELS_H_ 16 | 17 | #include 18 | 19 | #include "../webp/types.h" 20 | 21 | #ifdef __cplusplus 22 | extern "C" { 23 | #endif 24 | 25 | // Replace the input 'data' of size 'width'x'height' with 'num-levels' 26 | // quantized values. If not NULL, 'sse' will contain the sum of squared error. 27 | // Valid range for 'num_levels' is [2, 256]. 28 | // Returns false in case of error (data is NULL, or parameters are invalid). 29 | int QuantizeLevels(uint8_t* const data, int width, int height, int num_levels, 30 | uint64_t* const sse); 31 | 32 | #ifdef __cplusplus 33 | } // extern "C" 34 | #endif 35 | 36 | #endif /* WEBP_UTILS_QUANT_LEVELS_H_ */ 37 | -------------------------------------------------------------------------------- /sxp_extlibs/nvtexturetools/NVIDIA_Texture_Tools_LICENSE.txt: -------------------------------------------------------------------------------- 1 | NVIDIA Texture Tools 2.0 is licensed under the MIT license. 2 | 3 | Copyright (c) 2007 NVIDIA Corporation 4 | 5 | Permission is hereby granted, free of charge, to any person 6 | obtaining a copy of this software and associated documentation 7 | files (the "Software"), to deal in the Software without 8 | restriction, including without limitation the rights to use, 9 | copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the 11 | Software is furnished to do so, subject to the following 12 | conditions: 13 | 14 | The above copyright notice and this permission notice shall be 15 | included in all copies or substantial portions of the Software. 16 | 17 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 18 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 19 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 20 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 21 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 22 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 23 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 24 | OTHER DEALINGS IN THE SOFTWARE. 25 | -------------------------------------------------------------------------------- /sxp_extlibs/nvtexturetools/VERSION: -------------------------------------------------------------------------------- 1 | r1396 (Jan 13th, 2015) 2 | -------------------------------------------------------------------------------- /sxp_extlibs/nvtexturetools/src/bc7/tile.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2007 nVidia, Inc. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. 4 | 5 | You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, 8 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 9 | 10 | See the License for the specific language governing permissions and limitations under the License. 11 | */ 12 | 13 | #ifndef _AVPCL_TILE_H 14 | #define _AVPCL_TILE_H 15 | 16 | #include "nvmath/Vector.h" 17 | #include 18 | #include "avpcl_utils.h" 19 | 20 | namespace AVPCL { 21 | 22 | // extract a tile of pixels from an array 23 | 24 | class Tile 25 | { 26 | public: 27 | static const int TILE_H = 4; 28 | static const int TILE_W = 4; 29 | static const int TILE_TOTAL = TILE_H * TILE_W; 30 | nv::Vector4 data[TILE_H][TILE_W]; 31 | float importance_map[TILE_H][TILE_W]; 32 | int size_x, size_y; // actual size of tile 33 | 34 | Tile() {}; 35 | ~Tile(){}; 36 | Tile(int xs, int ys) {size_x = xs; size_y = ys;} 37 | }; 38 | 39 | } 40 | 41 | #endif -------------------------------------------------------------------------------- /sxp_extlibs/nvtexturetools/src/nvconfig.h: -------------------------------------------------------------------------------- 1 | #ifndef NV_CONFIG 2 | #define NV_CONFIG 3 | 4 | //#cmakedefine HAVE_UNISTD_H 5 | //#cmakedefine HAVE_STDARG_H 6 | //#cmakedefine HAVE_SIGNAL_H 7 | //#cmakedefine HAVE_EXECINFO_H 8 | //#cmakedefine HAVE_MALLOC_H 9 | 10 | //#cmakedefine HAVE_OPENMP 11 | //#cmakedefine HAVE_DISPATCH_H 12 | 13 | //#define HAVE_STBIMAGE 14 | //#cmakedefine HAVE_PNG 15 | //#cmakedefine HAVE_JPEG 16 | //#cmakedefine HAVE_TIFF 17 | //#cmakedefine HAVE_OPENEXR 18 | //#cmakedefine HAVE_FREEIMAGE 19 | 20 | //#cmakedefine HAVE_MAYA 21 | 22 | #endif // NV_CONFIG 23 | -------------------------------------------------------------------------------- /sxp_extlibs/nvtexturetools/src/nvcore/Array.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JarkkoPFC/mini_sxp/7282dc219c35728aa4cc006a589517ad9645afef/sxp_extlibs/nvtexturetools/src/nvcore/Array.h -------------------------------------------------------------------------------- /sxp_extlibs/nvtexturetools/src/nvcore/Array.inl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JarkkoPFC/mini_sxp/7282dc219c35728aa4cc006a589517ad9645afef/sxp_extlibs/nvtexturetools/src/nvcore/Array.inl -------------------------------------------------------------------------------- /sxp_extlibs/nvtexturetools/src/nvcore/Debug.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JarkkoPFC/mini_sxp/7282dc219c35728aa4cc006a589517ad9645afef/sxp_extlibs/nvtexturetools/src/nvcore/Debug.cpp -------------------------------------------------------------------------------- /sxp_extlibs/nvtexturetools/src/nvcore/Debug.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JarkkoPFC/mini_sxp/7282dc219c35728aa4cc006a589517ad9645afef/sxp_extlibs/nvtexturetools/src/nvcore/Debug.h -------------------------------------------------------------------------------- /sxp_extlibs/nvtexturetools/src/nvcore/DefsGnucDarwin.h: -------------------------------------------------------------------------------- 1 | #ifndef NV_CORE_H 2 | #error "Do not include this file directly." 3 | #endif 4 | 5 | #include // uint8_t, int8_t, ... uintptr_t 6 | #include // operator new, size_t, NULL 7 | 8 | // Function linkage 9 | #define DLL_IMPORT 10 | #if __GNUC__ >= 4 11 | # define DLL_EXPORT __attribute__((visibility("default"))) 12 | # define DLL_EXPORT_CLASS DLL_EXPORT 13 | #else 14 | # define DLL_EXPORT 15 | # define DLL_EXPORT_CLASS 16 | #endif 17 | 18 | // Function calling modes 19 | #if NV_CPU_X86 20 | # define NV_CDECL __attribute__((cdecl)) 21 | # define NV_STDCALL __attribute__((stdcall)) 22 | #else 23 | # define NV_CDECL 24 | # define NV_STDCALL 25 | #endif 26 | 27 | #define NV_FASTCALL __attribute__((fastcall)) 28 | #define NV_FORCEINLINE __attribute__((always_inline)) inline 29 | #define NV_DEPRECATED __attribute__((deprecated)) 30 | #define NV_THREAD_LOCAL //ACS: there's no "__thread" or equivalent on iOS/OSX 31 | 32 | #if __GNUC__ > 2 33 | #define NV_PURE __attribute__((pure)) 34 | #define NV_CONST __attribute__((const)) 35 | #else 36 | #define NV_PURE 37 | #define NV_CONST 38 | #endif 39 | 40 | #define NV_NOINLINE __attribute__((noinline)) 41 | 42 | // Define __FUNC__ properly. 43 | #if __STDC_VERSION__ < 199901L 44 | # if __GNUC__ >= 2 45 | # define __FUNC__ __PRETTY_FUNCTION__ // __FUNCTION__ 46 | # else 47 | # define __FUNC__ "" 48 | # endif 49 | #else 50 | # define __FUNC__ __PRETTY_FUNCTION__ 51 | #endif 52 | 53 | #define restrict __restrict__ 54 | -------------------------------------------------------------------------------- /sxp_extlibs/nvtexturetools/src/nvcore/DefsVcWin32.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JarkkoPFC/mini_sxp/7282dc219c35728aa4cc006a589517ad9645afef/sxp_extlibs/nvtexturetools/src/nvcore/DefsVcWin32.h -------------------------------------------------------------------------------- /sxp_extlibs/nvtexturetools/src/nvcore/FileSystem.h: -------------------------------------------------------------------------------- 1 | // This code is in the public domain -- castano@gmail.com 2 | 3 | #pragma once 4 | #ifndef NV_CORE_FILESYSTEM_H 5 | #define NV_CORE_FILESYSTEM_H 6 | 7 | #include "nvcore.h" 8 | 9 | namespace nv 10 | { 11 | 12 | namespace FileSystem 13 | { 14 | NVCORE_API bool exists(const char * path); 15 | NVCORE_API bool createDirectory(const char * path); 16 | NVCORE_API bool changeDirectory(const char * path); 17 | NVCORE_API bool removeFile(const char * path); 18 | 19 | } // FileSystem namespace 20 | 21 | } // nv namespace 22 | 23 | 24 | #endif // NV_CORE_FILESYSTEM_H 25 | -------------------------------------------------------------------------------- /sxp_extlibs/nvtexturetools/src/nvcore/ForEach.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JarkkoPFC/mini_sxp/7282dc219c35728aa4cc006a589517ad9645afef/sxp_extlibs/nvtexturetools/src/nvcore/ForEach.h -------------------------------------------------------------------------------- /sxp_extlibs/nvtexturetools/src/nvcore/Hash.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JarkkoPFC/mini_sxp/7282dc219c35728aa4cc006a589517ad9645afef/sxp_extlibs/nvtexturetools/src/nvcore/Hash.h -------------------------------------------------------------------------------- /sxp_extlibs/nvtexturetools/src/nvcore/Library.cpp: -------------------------------------------------------------------------------- 1 | 2 | #include "Library.h" 3 | #include "Debug.h" 4 | 5 | #if NV_OS_WIN32 6 | #define WIN32_LEAN_AND_MEAN 7 | #define VC_EXTRALEAN 8 | #include 9 | #elif NV_OS_XBOX 10 | #include 11 | #else 12 | #include 13 | #endif 14 | 15 | 16 | 17 | void * nvLoadLibrary(const char * name) 18 | { 19 | #if NV_OS_WIN32 20 | return (void *)LoadLibraryExA( name, NULL, 0 ); 21 | #elif NV_OS_XBOX 22 | return (void *)LoadLibraryA( name ); 23 | #else 24 | return dlopen(name, RTLD_LAZY); 25 | #endif 26 | } 27 | 28 | void nvUnloadLibrary(void * handle) 29 | { 30 | nvDebugCheck(handle != NULL); 31 | #if NV_OS_WIN32 || NV_OS_XBOX 32 | FreeLibrary((HMODULE)handle); 33 | #else 34 | dlclose(handle); 35 | #endif 36 | } 37 | 38 | void * nvBindSymbol(void * handle, const char * symbol) 39 | { 40 | #if NV_OS_WIN32 || NV_OS_XBOX 41 | return (void *)GetProcAddress((HMODULE)handle, symbol); 42 | #else 43 | return (void *)dlsym(handle, symbol); 44 | #endif 45 | } 46 | -------------------------------------------------------------------------------- /sxp_extlibs/nvtexturetools/src/nvcore/Library.h: -------------------------------------------------------------------------------- 1 | // This code is in the public domain -- castano@gmail.com 2 | 3 | #pragma once 4 | #ifndef NV_CORE_LIBRARY_H 5 | #define NV_CORE_LIBRARY_H 6 | 7 | #include "nvcore.h" 8 | 9 | #if NV_OS_WIN32 10 | #define LIBRARY_NAME(name) #name ".dll" 11 | #elif NV_OS_DARWIN 12 | #define NV_LIBRARY_NAME(name) "lib" #name ".dylib" 13 | #else 14 | #define NV_LIBRARY_NAME(name) "lib" #name ".so" 15 | #endif 16 | 17 | NVCORE_API void * nvLoadLibrary(const char * name); 18 | NVCORE_API void nvUnloadLibrary(void * lib); 19 | NVCORE_API void * nvBindSymbol(void * lib, const char * symbol); 20 | 21 | class NVCORE_CLASS Library 22 | { 23 | public: 24 | Library(const char * name) 25 | { 26 | handle = nvLoadLibrary(name); 27 | } 28 | ~Library() 29 | { 30 | if (isValid()) 31 | { 32 | nvUnloadLibrary(handle); 33 | } 34 | } 35 | 36 | bool isValid() const 37 | { 38 | return handle != NULL; 39 | } 40 | 41 | void * bindSymbol(const char * symbol) 42 | { 43 | return nvBindSymbol(handle, symbol); 44 | } 45 | 46 | private: 47 | void * handle; 48 | }; 49 | 50 | 51 | #endif // NV_CORE_LIBRARY_H 52 | -------------------------------------------------------------------------------- /sxp_extlibs/nvtexturetools/src/nvcore/Memory.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JarkkoPFC/mini_sxp/7282dc219c35728aa4cc006a589517ad9645afef/sxp_extlibs/nvtexturetools/src/nvcore/Memory.cpp -------------------------------------------------------------------------------- /sxp_extlibs/nvtexturetools/src/nvcore/Ptr.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JarkkoPFC/mini_sxp/7282dc219c35728aa4cc006a589517ad9645afef/sxp_extlibs/nvtexturetools/src/nvcore/Ptr.h -------------------------------------------------------------------------------- /sxp_extlibs/nvtexturetools/src/nvcore/RefCounted.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JarkkoPFC/mini_sxp/7282dc219c35728aa4cc006a589517ad9645afef/sxp_extlibs/nvtexturetools/src/nvcore/RefCounted.h -------------------------------------------------------------------------------- /sxp_extlibs/nvtexturetools/src/nvcore/StdStream.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JarkkoPFC/mini_sxp/7282dc219c35728aa4cc006a589517ad9645afef/sxp_extlibs/nvtexturetools/src/nvcore/StdStream.h -------------------------------------------------------------------------------- /sxp_extlibs/nvtexturetools/src/nvcore/StrLib.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JarkkoPFC/mini_sxp/7282dc219c35728aa4cc006a589517ad9645afef/sxp_extlibs/nvtexturetools/src/nvcore/StrLib.cpp -------------------------------------------------------------------------------- /sxp_extlibs/nvtexturetools/src/nvcore/StrLib.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JarkkoPFC/mini_sxp/7282dc219c35728aa4cc006a589517ad9645afef/sxp_extlibs/nvtexturetools/src/nvcore/StrLib.h -------------------------------------------------------------------------------- /sxp_extlibs/nvtexturetools/src/nvcore/Stream.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JarkkoPFC/mini_sxp/7282dc219c35728aa4cc006a589517ad9645afef/sxp_extlibs/nvtexturetools/src/nvcore/Stream.h -------------------------------------------------------------------------------- /sxp_extlibs/nvtexturetools/src/nvcore/TextWriter.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JarkkoPFC/mini_sxp/7282dc219c35728aa4cc006a589517ad9645afef/sxp_extlibs/nvtexturetools/src/nvcore/TextWriter.cpp -------------------------------------------------------------------------------- /sxp_extlibs/nvtexturetools/src/nvcore/TextWriter.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JarkkoPFC/mini_sxp/7282dc219c35728aa4cc006a589517ad9645afef/sxp_extlibs/nvtexturetools/src/nvcore/TextWriter.h -------------------------------------------------------------------------------- /sxp_extlibs/nvtexturetools/src/nvcore/Timer.cpp: -------------------------------------------------------------------------------- 1 | // This code is in the public domain -- castano@gmail.com 2 | 3 | #include "Timer.h" 4 | 5 | using namespace nv; 6 | 7 | 8 | #if NV_OS_WIN32 9 | 10 | #define WINDOWS_LEAN_AND_MEAN 11 | #define VC_EXTRALEAN 12 | #define NOMINMAX 13 | #include // QueryPerformanceFrequency, QueryPerformanceCounter 14 | 15 | 16 | uint64 nv::systemClockFrequency() 17 | { 18 | uint64 frequency; 19 | QueryPerformanceFrequency((LARGE_INTEGER*) &frequency); 20 | return frequency; 21 | } 22 | 23 | uint64 nv::systemClock() 24 | { 25 | uint64 counter; 26 | QueryPerformanceCounter((LARGE_INTEGER*) &counter); 27 | return counter; 28 | } 29 | 30 | #else 31 | 32 | #include // clock 33 | 34 | uint64 nv::systemClockFrequency() 35 | { 36 | return CLOCKS_PER_SEC; 37 | } 38 | 39 | uint64 nv::systemClock() 40 | { 41 | return clock(); 42 | } 43 | 44 | #endif 45 | -------------------------------------------------------------------------------- /sxp_extlibs/nvtexturetools/src/nvcore/Timer.h: -------------------------------------------------------------------------------- 1 | // This code is in the public domain -- castano@gmail.com 2 | 3 | #pragma once 4 | #ifndef NV_CORE_TIMER_H 5 | #define NV_CORE_TIMER_H 6 | 7 | #include "nvcore.h" 8 | 9 | #if NV_CC_MSVC 10 | #include 11 | #endif 12 | 13 | namespace nv { 14 | 15 | #if NV_CC_MSVC 16 | NV_FORCEINLINE uint64 fastCpuClock() { return __rdtsc(); } 17 | #elif NV_CC_GNUC && NV_CPU_X86 18 | NV_FORCEINLINE uint64 fastCpuClock() { 19 | uint64 val; 20 | __asm__ volatile (".byte 0x0f, 0x31" : "=A" (val)); 21 | return val; 22 | } 23 | #elif NV_CC_GNUC && NV_CPU_X86_64 24 | NV_FORCEINLINE uint64 fastCpuClock() { 25 | uint hi, lo; 26 | __asm__ __volatile__ ("rdtsc" : "=a"(lo), "=d"(hi)); 27 | return uint64(lo) | (uint64(hi) << 32); 28 | } 29 | #else 30 | NV_FORCEINLINE uint64 fastCpuClock() { return 0; } 31 | #endif 32 | 33 | uint64 systemClockFrequency(); 34 | uint64 systemClock(); 35 | 36 | class NVCORE_CLASS Timer 37 | { 38 | public: 39 | Timer() {} 40 | 41 | void start() { m_start = systemClock(); } 42 | void stop() { m_stop = systemClock(); } 43 | 44 | float elapsed() const { return float(m_stop - m_start) / systemClockFrequency(); } 45 | 46 | private: 47 | uint64 m_start; 48 | uint64 m_stop; 49 | }; 50 | 51 | } // nv namespace 52 | 53 | #endif // NV_CORE_TIMER_H 54 | -------------------------------------------------------------------------------- /sxp_extlibs/nvtexturetools/src/nvcore/Utils.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JarkkoPFC/mini_sxp/7282dc219c35728aa4cc006a589517ad9645afef/sxp_extlibs/nvtexturetools/src/nvcore/Utils.h -------------------------------------------------------------------------------- /sxp_extlibs/nvtexturetools/src/nvcore/nvcore.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JarkkoPFC/mini_sxp/7282dc219c35728aa4cc006a589517ad9645afef/sxp_extlibs/nvtexturetools/src/nvcore/nvcore.h -------------------------------------------------------------------------------- /sxp_extlibs/nvtexturetools/src/nvimage/ColorSpace.h: -------------------------------------------------------------------------------- 1 | // This code is in the public domain -- jim@tilander.org 2 | 3 | #pragma once 4 | #ifndef NV_IMAGE_COLORSPACE_H 5 | #define NV_IMAGE_COLORSPACE_H 6 | 7 | namespace nv 8 | { 9 | class Image; 10 | 11 | // Defines simple mappings between different color spaces and encodes them in the 12 | // input image. 13 | namespace ColorSpace 14 | { 15 | void RGBtoYCoCg_R(Image* img); 16 | void YCoCg_RtoRGB(Image* img); 17 | } 18 | } 19 | 20 | 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /sxp_extlibs/nvtexturetools/src/nvimage/ErrorMetric.h: -------------------------------------------------------------------------------- 1 | 2 | #include "nvimage.h" 3 | 4 | 5 | namespace nv 6 | { 7 | class FloatImage; 8 | 9 | float rmsColorError(const FloatImage * img, const FloatImage * ref, bool alphaWeight); 10 | float rmsAlphaError(const FloatImage * img, const FloatImage * ref); 11 | 12 | float cieLabError(const FloatImage * img, const FloatImage * ref); 13 | float cieLab94Error(const FloatImage * img, const FloatImage * ref); 14 | float spatialCieLabError(const FloatImage * img, const FloatImage * ref); 15 | 16 | float averageColorError(const FloatImage * img, const FloatImage * ref, bool alphaWeight); 17 | float averageAlphaError(const FloatImage * img, const FloatImage * ref); 18 | 19 | float averageAngularError(const FloatImage * img0, const FloatImage * img1); 20 | float rmsAngularError(const FloatImage * img0, const FloatImage * img1); 21 | 22 | } // nv namespace 23 | -------------------------------------------------------------------------------- /sxp_extlibs/nvtexturetools/src/nvimage/ImageIO.h: -------------------------------------------------------------------------------- 1 | // This code is in the public domain -- castanyo@yahoo.es 2 | 3 | #pragma once 4 | #ifndef NV_IMAGE_IMAGEIO_H 5 | #define NV_IMAGE_IMAGEIO_H 6 | 7 | #include "nvimage.h" 8 | 9 | #include "nvcore/StrLib.h" 10 | 11 | 12 | namespace nv 13 | { 14 | class Image; 15 | class FloatImage; 16 | class Stream; 17 | 18 | namespace ImageIO 19 | { 20 | NVIMAGE_API Image * load(const char * fileName); 21 | NVIMAGE_API Image * load(const char * fileName, Stream & s); 22 | 23 | NVIMAGE_API FloatImage * loadFloat(const char * fileName); 24 | NVIMAGE_API FloatImage * loadFloat(const char * fileName, Stream & s); 25 | 26 | NVIMAGE_API bool save(const char * fileName, const Image * img, const char ** tags=NULL); // NULL terminated list. 27 | NVIMAGE_API bool save(const char * fileName, Stream & s, const Image * img, const char ** tags=NULL); 28 | 29 | NVIMAGE_API bool saveFloat(const char * fileName, const FloatImage * fimage, uint baseComponent, uint componentCount); 30 | NVIMAGE_API bool saveFloat(const char * fileName, Stream & s, const FloatImage * fimage, uint baseComponent, uint componentCount); 31 | 32 | } // ImageIO namespace 33 | 34 | } // nv namespace 35 | 36 | 37 | #endif // NV_IMAGE_IMAGEIO_H 38 | -------------------------------------------------------------------------------- /sxp_extlibs/nvtexturetools/src/nvimage/KtxFile.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JarkkoPFC/mini_sxp/7282dc219c35728aa4cc006a589517ad9645afef/sxp_extlibs/nvtexturetools/src/nvimage/KtxFile.cpp -------------------------------------------------------------------------------- /sxp_extlibs/nvtexturetools/src/nvimage/KtxFile.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JarkkoPFC/mini_sxp/7282dc219c35728aa4cc006a589517ad9645afef/sxp_extlibs/nvtexturetools/src/nvimage/KtxFile.h -------------------------------------------------------------------------------- /sxp_extlibs/nvtexturetools/src/nvimage/Quantize.h: -------------------------------------------------------------------------------- 1 | // This code is in the public domain -- castanyo@yahoo.es 2 | 3 | #pragma once 4 | #ifndef NV_IMAGE_QUANTIZE_H 5 | #define NV_IMAGE_QUANTIZE_H 6 | 7 | #include "nvimage.h" 8 | 9 | 10 | namespace nv 11 | { 12 | class Image; 13 | 14 | namespace Quantize 15 | { 16 | void RGB16(Image * img); 17 | void BinaryAlpha(Image * img, int alpha_threshold = 127); 18 | void Alpha4(Image * img); 19 | 20 | void FloydSteinberg_RGB16(Image * img); 21 | void FloydSteinberg_BinaryAlpha(Image * img, int alpha_threshold = 127); 22 | void FloydSteinberg_Alpha4(Image * img); 23 | 24 | void Truncate(Image * image, uint rsize, uint gsize, uint bsize, uint asize); 25 | void FloydSteinberg(Image * image, uint rsize, uint gsize, uint bsize, uint asize); 26 | 27 | // @@ Add palette quantization algorithms! 28 | } 29 | } 30 | 31 | 32 | #endif // NV_IMAGE_QUANTIZE_H 33 | -------------------------------------------------------------------------------- /sxp_extlibs/nvtexturetools/src/nvimage/nvimage.h: -------------------------------------------------------------------------------- 1 | // This code is in the public domain -- castanyo@yahoo.es 2 | 3 | #pragma once 4 | #ifndef NV_IMAGE_H 5 | #define NV_IMAGE_H 6 | 7 | #include "nvcore/nvcore.h" 8 | #include "nvcore/Debug.h" // nvDebugCheck 9 | #include "nvcore/Utils.h" // isPowerOfTwo 10 | 11 | // Function linkage 12 | #if NVIMAGE_SHARED 13 | #ifdef NVIMAGE_EXPORTS 14 | #define NVIMAGE_API DLL_EXPORT 15 | #define NVIMAGE_CLASS DLL_EXPORT_CLASS 16 | #else 17 | #define NVIMAGE_API DLL_IMPORT 18 | #define NVIMAGE_CLASS DLL_IMPORT 19 | #endif 20 | #else 21 | #define NVIMAGE_API 22 | #define NVIMAGE_CLASS 23 | #endif 24 | 25 | 26 | namespace nv { 27 | 28 | // Some utility functions: 29 | 30 | inline uint computeBitPitch(uint w, uint bitsize, uint alignmentInBits) 31 | { 32 | nvDebugCheck(isPowerOfTwo(alignmentInBits)); 33 | 34 | return ((w * bitsize + alignmentInBits - 1) / alignmentInBits) * alignmentInBits; 35 | } 36 | 37 | inline uint computeBytePitch(uint w, uint bitsize, uint alignmentInBytes) 38 | { 39 | uint pitch = computeBitPitch(w, bitsize, 8*alignmentInBytes); 40 | nvDebugCheck((pitch & 7) == 0); 41 | 42 | return (pitch + 7) / 8; 43 | } 44 | 45 | 46 | } // nv namespace 47 | 48 | #endif // NV_IMAGE_H 49 | -------------------------------------------------------------------------------- /sxp_extlibs/nvtexturetools/src/nvmath/Color.cpp: -------------------------------------------------------------------------------- 1 | // This code is in the public domain -- castanyo@yahoo.es 2 | 3 | #include "Color.h" 4 | #include "Color.inl" 5 | -------------------------------------------------------------------------------- /sxp_extlibs/nvtexturetools/src/nvmath/Half.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JarkkoPFC/mini_sxp/7282dc219c35728aa4cc006a589517ad9645afef/sxp_extlibs/nvtexturetools/src/nvmath/Half.cpp -------------------------------------------------------------------------------- /sxp_extlibs/nvtexturetools/src/nvmath/Matrix.inl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JarkkoPFC/mini_sxp/7282dc219c35728aa4cc006a589517ad9645afef/sxp_extlibs/nvtexturetools/src/nvmath/Matrix.inl -------------------------------------------------------------------------------- /sxp_extlibs/nvtexturetools/src/nvmath/Plane.cpp: -------------------------------------------------------------------------------- 1 | // This code is in the public domain -- castanyo@yahoo.es 2 | 3 | #include "Plane.h" 4 | #include "Plane.inl" 5 | #include "Matrix.inl" 6 | 7 | namespace nv 8 | { 9 | Plane transformPlane(const Matrix & m, const Plane & p) 10 | { 11 | Vector3 newVec = transformVector(m, p.vector()); 12 | 13 | Vector3 ptInPlane = p.offset() * p.vector(); 14 | ptInPlane = transformPoint(m, ptInPlane); 15 | 16 | return Plane(newVec, ptInPlane); 17 | } 18 | 19 | Vector3 planeIntersection(const Plane & a, const Plane & b, const Plane & c) 20 | { 21 | return dot(a.vector(), cross(b.vector(), c.vector())) * ( 22 | a.offset() * cross(b.vector(), c.vector()) + 23 | c.offset() * cross(a.vector(), b.vector()) + 24 | b.offset() * cross(c.vector(), a.vector())); 25 | } 26 | 27 | } // nv namespace 28 | -------------------------------------------------------------------------------- /sxp_extlibs/nvtexturetools/src/nvmath/Plane.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JarkkoPFC/mini_sxp/7282dc219c35728aa4cc006a589517ad9645afef/sxp_extlibs/nvtexturetools/src/nvmath/Plane.h -------------------------------------------------------------------------------- /sxp_extlibs/nvtexturetools/src/nvmath/Plane.inl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JarkkoPFC/mini_sxp/7282dc219c35728aa4cc006a589517ad9645afef/sxp_extlibs/nvtexturetools/src/nvmath/Plane.inl -------------------------------------------------------------------------------- /sxp_extlibs/nvtexturetools/src/nvmath/SimdVector.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JarkkoPFC/mini_sxp/7282dc219c35728aa4cc006a589517ad9645afef/sxp_extlibs/nvtexturetools/src/nvmath/SimdVector.h -------------------------------------------------------------------------------- /sxp_extlibs/nvtexturetools/src/nvmath/Vector.cpp: -------------------------------------------------------------------------------- 1 | // This code is in the public domain -- castanyo@yahoo.es 2 | 3 | #include "Vector.h" 4 | #include "Vector.inl" 5 | -------------------------------------------------------------------------------- /sxp_extlibs/nvtexturetools/src/nvthread/Event.h: -------------------------------------------------------------------------------- 1 | // This code is in the public domain -- castano@gmail.com 2 | 3 | #pragma once 4 | #ifndef NV_THREAD_EVENT_H 5 | #define NV_THREAD_EVENT_H 6 | 7 | #include "nvthread.h" 8 | 9 | #include "nvcore/Ptr.h" 10 | 11 | namespace nv 12 | { 13 | // This is intended to be used by a single waiter thread. 14 | class NVTHREAD_CLASS Event 15 | { 16 | NV_FORBID_COPY(Event); 17 | public: 18 | Event(); 19 | ~Event(); 20 | 21 | void post(); 22 | void wait(); // Wait resets the event. 23 | 24 | static void post(Event * events, uint count); 25 | static void wait(Event * events, uint count); 26 | 27 | private: 28 | struct Private; 29 | AutoPtr m; 30 | }; 31 | 32 | } // nv namespace 33 | 34 | #endif // NV_THREAD_EVENT_H 35 | -------------------------------------------------------------------------------- /sxp_extlibs/nvtexturetools/src/nvthread/Mutex.h: -------------------------------------------------------------------------------- 1 | // This code is in the public domain -- castano@gmail.com 2 | 3 | #pragma once 4 | #ifndef NV_THREAD_MUTEX_H 5 | #define NV_THREAD_MUTEX_H 6 | 7 | #include "nvthread.h" 8 | 9 | #include "nvcore/Ptr.h" 10 | 11 | namespace nv 12 | { 13 | 14 | class NVTHREAD_CLASS Mutex 15 | { 16 | NV_FORBID_COPY(Mutex); 17 | public: 18 | Mutex (); 19 | ~Mutex (); 20 | 21 | void lock(); 22 | bool tryLock(); 23 | void unlock(); 24 | 25 | private: 26 | struct Private; 27 | AutoPtr m; 28 | }; 29 | 30 | 31 | // Templated lock that can be used with any mutex. 32 | template 33 | class Lock 34 | { 35 | NV_FORBID_COPY(Lock); 36 | public: 37 | 38 | Lock (M & m) : m_mutex (m) { m_mutex.lock(); } 39 | ~Lock () { m_mutex.unlock(); } 40 | 41 | private: 42 | M & m_mutex; 43 | }; 44 | 45 | } // nv namespace 46 | 47 | #endif // NV_THREAD_MUTEX_H 48 | -------------------------------------------------------------------------------- /sxp_extlibs/nvtexturetools/src/nvthread/ParallelFor.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JarkkoPFC/mini_sxp/7282dc219c35728aa4cc006a589517ad9645afef/sxp_extlibs/nvtexturetools/src/nvthread/ParallelFor.cpp -------------------------------------------------------------------------------- /sxp_extlibs/nvtexturetools/src/nvthread/ParallelFor.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JarkkoPFC/mini_sxp/7282dc219c35728aa4cc006a589517ad9645afef/sxp_extlibs/nvtexturetools/src/nvthread/ParallelFor.h -------------------------------------------------------------------------------- /sxp_extlibs/nvtexturetools/src/nvthread/Thread.h: -------------------------------------------------------------------------------- 1 | // This code is in the public domain -- castano@gmail.com 2 | 3 | #pragma once 4 | #ifndef NV_THREAD_THREAD_H 5 | #define NV_THREAD_THREAD_H 6 | 7 | #include "nvthread.h" 8 | 9 | #include "nvcore/Ptr.h" // AutoPtr 10 | 11 | namespace nv 12 | { 13 | typedef void ThreadFunc(void * arg); 14 | 15 | class NVTHREAD_CLASS Thread 16 | { 17 | NV_FORBID_COPY(Thread); 18 | public: 19 | Thread(); 20 | ~Thread(); 21 | 22 | void start(ThreadFunc * func, void * arg); 23 | void wait(); 24 | 25 | bool isRunning() const; 26 | 27 | static void spinWait(uint count); 28 | static void yield(); 29 | static void sleep(uint ms); 30 | 31 | static void wait(Thread * threads, uint count); 32 | 33 | struct Private; 34 | AutoPtr p; 35 | }; 36 | 37 | } // nv namespace 38 | 39 | #endif // NV_THREAD_THREAD_H 40 | -------------------------------------------------------------------------------- /sxp_extlibs/nvtexturetools/src/nvthread/Win32.h: -------------------------------------------------------------------------------- 1 | // This code is in the public domain -- castano@gmail.com 2 | 3 | // Never include this from a header file. 4 | 5 | #define WIN32_LEAN_AND_MEAN 6 | #define VC_EXTRALEAN 7 | #define _WIN32_WINNT 0x0400 // for SwitchToThread, TryEnterCriticalSection 8 | #include 9 | //#include // for _beginthreadex -------------------------------------------------------------------------------- /sxp_extlibs/nvtexturetools/src/nvthread/nvthread.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JarkkoPFC/mini_sxp/7282dc219c35728aa4cc006a589517ad9645afef/sxp_extlibs/nvtexturetools/src/nvthread/nvthread.cpp -------------------------------------------------------------------------------- /sxp_extlibs/nvtexturetools/src/nvtt/CompressorDXT1.h: -------------------------------------------------------------------------------- 1 | 2 | namespace nv { 3 | 4 | class Color32; 5 | struct ColorBlock; 6 | struct BlockDXT1; 7 | class Vector3; 8 | 9 | // All these functions return MSE. 10 | 11 | float compress_dxt1_single_color_optimal(Color32 c, BlockDXT1 * output); 12 | float compress_dxt1_single_color_optimal(const Vector3 & color, BlockDXT1 * output); 13 | 14 | float compress_dxt1_single_color(const Vector3 * colors, const float * weights, int count, const Vector3 & color_weights, BlockDXT1 * output); 15 | float compress_dxt1_least_squares_fit(const Vector3 input_colors[16], const Vector3 * colors, const float * weights, int count, const Vector3 & color_weights, BlockDXT1 * output); 16 | float compress_dxt1_bounding_box_exhaustive(const Vector3 input_colors[16], const Vector3 * colors, const float * weights, int count, const Vector3 & color_weights, int search_limit, BlockDXT1 * output); 17 | void compress_dxt1_cluster_fit(const Vector3 input_colors[16], const Vector3 * colors, const float * weights, int count, const Vector3 & color_weights, BlockDXT1 * output); 18 | 19 | 20 | float compress_dxt1(const Vector3 colors[16], const float weights[16], const Vector3 & color_weights, BlockDXT1 * output); 21 | 22 | } 23 | -------------------------------------------------------------------------------- /sxp_extlibs/nvtexturetools/src/nvtt/CubeSurface.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JarkkoPFC/mini_sxp/7282dc219c35728aa4cc006a589517ad9645afef/sxp_extlibs/nvtexturetools/src/nvtt/CubeSurface.cpp -------------------------------------------------------------------------------- /sxp_extlibs/nvtexturetools/src/nvtt/SingleColorLookup.h: -------------------------------------------------------------------------------- 1 | 2 | #include "nvcore/nvcore.h" // uint8 3 | 4 | extern uint8 OMatch5[256][2]; 5 | extern uint8 OMatch6[256][2]; 6 | extern uint8 OMatchAlpha5[256][2]; 7 | extern uint8 OMatchAlpha6[256][2]; 8 | 9 | void initSingleColorLookup(); -------------------------------------------------------------------------------- /sxp_extlibs/nvtexturetools/src/nvtt/TaskDispatcher.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JarkkoPFC/mini_sxp/7282dc219c35728aa4cc006a589517ad9645afef/sxp_extlibs/nvtexturetools/src/nvtt/TaskDispatcher.cpp -------------------------------------------------------------------------------- /sxp_extlibs/nvtexturetools/src/nvtt/squish/README: -------------------------------------------------------------------------------- 1 | LICENSE 2 | ------- 3 | 4 | The squish library is distributed under the terms and conditions of the MIT 5 | license. This license is specified at the top of each source file and must be 6 | preserved in its entirety. 7 | 8 | BUILDING AND INSTALLING THE LIBRARY 9 | ----------------------------------- 10 | 11 | If you are using Visual Studio 2003 or above under Windows then load the Visual 12 | Studio 2003 project in the vs7 folder. By default, the library is built using 13 | SSE optimisations. To change this either change or remove the SQUISH_USE_SSE=1 14 | from the preprocessor symbols. 15 | 16 | If you are using a Mac then load the Xcode 2.2 project in the distribution. By 17 | default, the library is built using Altivec optimisations. To change this 18 | either change or remove SQUISH_USE_ALTIVEC=1 from the preprocessor symbols. I 19 | guess I'll have to think about changing this for the new Intel Macs that are 20 | rolling out... 21 | 22 | If you are using unix then first edit the config file in the base directory of 23 | the distribution, enabling Altivec or SSE with the USE_ALTIVEC or USE_SSE 24 | variables, and editing the optimisation flags passed to the C++ compiler if 25 | necessary. Then make can be used to build the library, and make install (from 26 | the superuser account) can be used to install (into /usr/local by default). 27 | 28 | REPORTING BUGS OR FEATURE REQUESTS 29 | ---------------------------------- 30 | 31 | Feedback can be sent to Simon Brown (the developer) at si@sjbrown.co.uk 32 | 33 | New releases are announced on the squish library homepage at 34 | http://sjbrown.co.uk/?code=squish 35 | 36 | -------------------------------------------------------------------------------- /sxp_extlibs/nvtristrip/README.txt: -------------------------------------------------------------------------------- 1 | README for NvTriStrip, library version 2 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3 | 4 | To use: 5 | -#include "NvTriStrip.h" 6 | -put nvtristrip.lib in your library path (the pragma in nvtristrip.h will automatically look for the library). 7 | 8 | Check out NvTriStrip.h for the interface. 9 | 10 | See the StripTest source code (in function LoadXFileStripped) for an example of using the library. 11 | 12 | Features: 13 | -generates strips from arbitrary geometry. 14 | -flexibly optimizes for post TnL vertex caches (16 on GeForce1/2, 24 on GeForce3). 15 | -can stitch together strips using degenerate triangles, or not. 16 | -can output lists instead of strips. 17 | -can optionally throw excessively small strips into a list instead. 18 | -can remap indices to improve spatial locality in your vertex buffers. 19 | 20 | On cache sizes: 21 | Note that it's better to UNDERESTIMATE the cache size instead of OVERESTIMATING. 22 | So, if you're targetting GeForce1, 2, and 3, be conservative and use the GeForce1_2 cache 23 | size, NOT the GeForce3 cache size. 24 | This will make sure you don't "blow" the cache of the GeForce1 and 2. 25 | Also note that the cache size you specify is the "actual" cache size, not the "effective" 26 | cache size you may have heard about. This is 16 for GeForce1 and 2, and 24 for GeForce3. 27 | 28 | Credit goes to Curtis Beeson and Joe Demers for the basis for this stripifier and to Jason Regier and 29 | Jon Stone at Blizzard for providing a much cleaner version of CreateStrips(). 30 | 31 | Questions/comments email cem@nvidia.com 32 | 33 | -------------------------------------------------------------------------------- /sxp_extlibs/nvtristrip/src/VertexCache.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef VERTEX_CACHE_H 3 | 4 | #define VERTEX_CACHE_H 5 | 6 | class VertexCache 7 | { 8 | 9 | public: 10 | 11 | VertexCache(int size) 12 | { 13 | numEntries = size; 14 | 15 | entries = new int[numEntries]; 16 | 17 | for(int i = 0; i < numEntries; i++) 18 | entries[i] = -1; 19 | } 20 | 21 | VertexCache() { VertexCache(16); } 22 | ~VertexCache() { delete[] entries; entries = 0; } 23 | 24 | bool InCache(int entry) 25 | { 26 | bool returnVal = false; 27 | for(int i = 0; i < numEntries; i++) 28 | { 29 | if(entries[i] == entry) 30 | { 31 | returnVal = true; 32 | break; 33 | } 34 | } 35 | 36 | return returnVal; 37 | } 38 | 39 | int AddEntry(int entry) 40 | { 41 | int removed; 42 | 43 | removed = entries[numEntries - 1]; 44 | 45 | //push everything right one 46 | for(int i = numEntries - 2; i >= 0; i--) 47 | { 48 | entries[i + 1] = entries[i]; 49 | } 50 | 51 | entries[0] = entry; 52 | 53 | return removed; 54 | } 55 | 56 | void Clear() 57 | { 58 | memset(entries, -1, sizeof(int) * numEntries); 59 | } 60 | 61 | void Copy(VertexCache* inVcache) 62 | { 63 | for(int i = 0; i < numEntries; i++) 64 | { 65 | inVcache->Set(i, entries[i]); 66 | } 67 | } 68 | 69 | int At(int index) { return entries[index]; } 70 | void Set(int index, int value) { entries[index] = value; } 71 | 72 | private: 73 | 74 | int *entries; 75 | int numEntries; 76 | 77 | }; 78 | 79 | #endif 80 | -------------------------------------------------------------------------------- /sxp_extlibs/opencl/VERSION: -------------------------------------------------------------------------------- 1 | 3.0 2 | -------------------------------------------------------------------------------- /sxp_extlibs/opencl/cl/opencl.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2008-2021 The Khronos Group Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | ******************************************************************************/ 16 | 17 | #ifndef __OPENCL_H 18 | #define __OPENCL_H 19 | 20 | #ifdef __cplusplus 21 | extern "C" { 22 | #endif 23 | 24 | #include 25 | #include 26 | #include 27 | 28 | #ifdef __cplusplus 29 | } 30 | #endif 31 | 32 | #endif /* __OPENCL_H */ 33 | -------------------------------------------------------------------------------- /sxp_extlibs/openjpeg/src/event.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JarkkoPFC/mini_sxp/7282dc219c35728aa4cc006a589517ad9645afef/sxp_extlibs/openjpeg/src/event.c -------------------------------------------------------------------------------- /sxp_extlibs/openjpeg/src/event.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JarkkoPFC/mini_sxp/7282dc219c35728aa4cc006a589517ad9645afef/sxp_extlibs/openjpeg/src/event.h -------------------------------------------------------------------------------- /sxp_extlibs/openjpeg/src/image.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JarkkoPFC/mini_sxp/7282dc219c35728aa4cc006a589517ad9645afef/sxp_extlibs/openjpeg/src/image.c -------------------------------------------------------------------------------- /sxp_extlibs/openjpeg/src/image.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JarkkoPFC/mini_sxp/7282dc219c35728aa4cc006a589517ad9645afef/sxp_extlibs/openjpeg/src/image.h -------------------------------------------------------------------------------- /sxp_extlibs/openjpeg/src/j2k_lib.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JarkkoPFC/mini_sxp/7282dc219c35728aa4cc006a589517ad9645afef/sxp_extlibs/openjpeg/src/j2k_lib.c -------------------------------------------------------------------------------- /sxp_extlibs/openjpeg/src/j2k_lib.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JarkkoPFC/mini_sxp/7282dc219c35728aa4cc006a589517ad9645afef/sxp_extlibs/openjpeg/src/j2k_lib.h -------------------------------------------------------------------------------- /sxp_extlibs/openjpeg/src/jp2.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JarkkoPFC/mini_sxp/7282dc219c35728aa4cc006a589517ad9645afef/sxp_extlibs/openjpeg/src/jp2.c -------------------------------------------------------------------------------- /sxp_extlibs/openjpeg/src/openjpeg.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JarkkoPFC/mini_sxp/7282dc219c35728aa4cc006a589517ad9645afef/sxp_extlibs/openjpeg/src/openjpeg.c -------------------------------------------------------------------------------- /sxp_extlibs/openjpeg/src/opj_includes.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JarkkoPFC/mini_sxp/7282dc219c35728aa4cc006a589517ad9645afef/sxp_extlibs/openjpeg/src/opj_includes.h -------------------------------------------------------------------------------- /sxp_extlibs/openjpeg/src/opj_malloc.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JarkkoPFC/mini_sxp/7282dc219c35728aa4cc006a589517ad9645afef/sxp_extlibs/openjpeg/src/opj_malloc.h -------------------------------------------------------------------------------- /sxp_extlibs/zlib/src/inffast.h: -------------------------------------------------------------------------------- 1 | /* inffast.h -- header to use inffast.c 2 | * Copyright (C) 1995-2003 Mark Adler 3 | * For conditions of distribution and use, see copyright notice in zlib.h 4 | */ 5 | 6 | /* WARNING: this file should *not* be used by applications. It is 7 | part of the implementation of the compression library and is 8 | subject to change. Applications should only use zlib.h. 9 | */ 10 | 11 | void inflate_fast OF((z_streamp strm, unsigned start)); 12 | -------------------------------------------------------------------------------- /sxp_src/core/main.h: -------------------------------------------------------------------------------- 1 | //============================================================================ 2 | // Mini Spin-X Library 3 | // 4 | // Copyright (c) 2024, Jarkko Lempiainen 5 | // All rights reserved. 6 | //============================================================================ 7 | 8 | #ifndef PFC_CORE_MAIN_H 9 | #define PFC_CORE_MAIN_H 10 | //---------------------------------------------------------------------------- 11 | 12 | 13 | //============================================================================ 14 | // interface 15 | //============================================================================ 16 | #include "sxp_src/core/core.h" 17 | #include PFC_STR(PFC_CAT2(sxp_src/platform/PFC_PLATFORM_SRC_STR/core/PFC_PLATFORM_SRC_STR, _main.h)) // expands to e.g. "sxp_src/platform/win/core/win_main.h" 18 | namespace pfc 19 | { 20 | 21 | // new 22 | int entry(const char *args_[], unsigned num_args_); 23 | //---------------------------------------------------------------------------- 24 | 25 | //============================================================================ 26 | } // namespace pfc 27 | #endif 28 | -------------------------------------------------------------------------------- /sxp_src/core/math/fast_math.h: -------------------------------------------------------------------------------- 1 | //============================================================================ 2 | // Mini Spin-X Library 3 | // 4 | // Copyright (c) 2024, Jarkko Lempiainen 5 | // All rights reserved. 6 | //============================================================================ 7 | 8 | #ifndef PFC_CORE_FAST_MATH_H 9 | #define PFC_CORE_FAST_MATH_H 10 | //---------------------------------------------------------------------------- 11 | 12 | 13 | //============================================================================ 14 | // interface 15 | //============================================================================ 16 | // external 17 | #include "sxp_src/core/core.h" 18 | namespace pfc 19 | { 20 | 21 | // new 22 | PFC_INLINE float32_t fast_rsqrt(float32_t); 23 | PFC_INLINE float64_t fast_rsqrt(float64_t); 24 | PFC_INLINE float32_t fast_sqrt(float32_t); 25 | PFC_INLINE float64_t fast_sqrt(float64_t); 26 | PFC_INLINE float32_t fast_rcp(float32_t); 27 | PFC_INLINE float64_t fast_rcp(float64_t); 28 | //---------------------------------------------------------------------------- 29 | 30 | //============================================================================ 31 | #include "fast_math.inl" 32 | } // namespace pfc 33 | #endif 34 | -------------------------------------------------------------------------------- /sxp_src/core/math/math_adv.h: -------------------------------------------------------------------------------- 1 | //============================================================================ 2 | // Mini Spin-X Library 3 | // 4 | // Copyright (c) 2024, Jarkko Lempiainen 5 | // All rights reserved. 6 | //============================================================================ 7 | 8 | #ifndef PFC_CORE_MATH_ADV_H 9 | #define PFC_CORE_MATH_ADV_H 10 | //---------------------------------------------------------------------------- 11 | 12 | 13 | //============================================================================ 14 | // interface 15 | //============================================================================ 16 | // external 17 | #include "math.h" 18 | namespace pfc 19 | { 20 | 21 | // new 22 | template vec3 eigenvalues_sym(const mat33&); // return eigenvalues of a symmetric 3x3 matrix 23 | template vec3 eigenvector_pow(const mat33&); // return maximum eigenvector for 3x3 matrix using power method 24 | //---------------------------------------------------------------------------- 25 | 26 | 27 | //============================================================================ 28 | #include "math_adv.inl" 29 | } // namespace pfc 30 | #endif 31 | -------------------------------------------------------------------------------- /sxp_src/core/math/stats.h: -------------------------------------------------------------------------------- 1 | //============================================================================ 2 | // Mini Spin-X Library 3 | // 4 | // Copyright (c) 2024, Jarkko Lempiainen 5 | // All rights reserved. 6 | //============================================================================ 7 | 8 | #ifndef PFC_CORE_MATH_STATS_H 9 | #define PFC_CORE_MATH_STATS_H 10 | //---------------------------------------------------------------------------- 11 | 12 | 13 | //============================================================================ 14 | // interface 15 | //============================================================================ 16 | // external 17 | #include "math.h" 18 | namespace pfc 19 | { 20 | 21 | // new 22 | template T inv_standard_normal_cdf(T p_); 23 | template T inv_normal_cdf(T p_, T mean_, T deviation_); 24 | //---------------------------------------------------------------------------- 25 | 26 | //============================================================================ 27 | #include "stats.inl" 28 | } // namespace pfc 29 | #endif 30 | -------------------------------------------------------------------------------- /sxp_src/core/mp/mp_fiber.cpp: -------------------------------------------------------------------------------- 1 | //============================================================================ 2 | // Mini Spin-X Library 3 | // 4 | // Copyright (c) 2024, Jarkko Lempiainen 5 | // All rights reserved. 6 | //============================================================================ 7 | 8 | #include "sxp_src/sxp_pch.h" 9 | #include "mp_fiber.h" 10 | using namespace pfc; 11 | //---------------------------------------------------------------------------- 12 | 13 | 14 | //============================================================================ 15 | // ffunc_sleep 16 | //============================================================================ 17 | PFC_FFUNC_IMPL(ffunc_sleep) 18 | { 19 | // count down the sleep time 20 | sleep_time-=__ffunc_dtime_; 21 | if(sleep_time<=0.0f) 22 | { 23 | __ffunc_dtime_+=sleep_time; 24 | return false; 25 | } 26 | __ffunc_dtime_=0.0f; 27 | return !__ffunc_cs_.is_abort(); 28 | } 29 | //---------------------------------------------------------------------------- 30 | -------------------------------------------------------------------------------- /sxp_src/core/mp/mp_memory.inl: -------------------------------------------------------------------------------- 1 | //============================================================================ 2 | // Mini Spin-X Library 3 | // 4 | // Copyright (c) 2024, Jarkko Lempiainen 5 | // All rights reserved. 6 | //============================================================================ 7 | 8 | 9 | //============================================================================ 10 | // mp_free_list 11 | //============================================================================ 12 | usize_t mp_free_list::capacity() const 13 | { 14 | return m_capacity; 15 | } 16 | //---- 17 | 18 | usize_t mp_free_list::num_pending_allocs() const 19 | { 20 | return m_num_allocs; 21 | } 22 | //---- 23 | 24 | void *mp_free_list::alloc_block() 25 | { 26 | while(true) 27 | { 28 | // allocate item from free list 29 | if(item *i=m_queue.pop()) 30 | { 31 | atom_inc(m_num_allocs); 32 | return i; 33 | } 34 | reserve(m_num_allocs+1); 35 | } 36 | } 37 | //---- 38 | 39 | void mp_free_list::free_block(void *p_) 40 | { 41 | // release item back to the free list 42 | PFC_ASSERT_PEDANTIC(p_!=0); 43 | m_queue.push(*reinterpret_cast(p_)); 44 | atom_dec(m_num_allocs); 45 | } 46 | //---------------------------------------------------------------------------- 47 | -------------------------------------------------------------------------------- /sxp_src/core/mp/mp_msg_queue.cpp: -------------------------------------------------------------------------------- 1 | //============================================================================ 2 | // Mini Spin-X Library 3 | // 4 | // Copyright (c) 2024, Jarkko Lempiainen 5 | // All rights reserved. 6 | //============================================================================ 7 | 8 | #include "sxp_src/sxp_pch.h" 9 | #include "mp_msg_queue.h" 10 | using namespace pfc; 11 | //---------------------------------------------------------------------------- 12 | 13 | 14 | //============================================================================ 15 | // mp_message_queue 16 | //============================================================================ 17 | mp_message_queue::mp_message_queue() 18 | { 19 | } 20 | //---- 21 | 22 | mp_message_queue::~mp_message_queue() 23 | { 24 | } 25 | //---- 26 | 27 | void mp_message_queue::force_clear() 28 | { 29 | m_messages.force_clear(); 30 | m_allocator.force_release(); 31 | } 32 | //---------------------------------------------------------------------------- 33 | 34 | void mp_message_queue::exec_messages() 35 | { 36 | // execute all messages in the queue 37 | while(message_base *msg=m_messages.pop()) 38 | msg->exec(); 39 | m_allocator.force_release(); 40 | } 41 | //---------------------------------------------------------------------------- 42 | -------------------------------------------------------------------------------- /sxp_src/core/mp/mp_msg_queue.inl: -------------------------------------------------------------------------------- 1 | //============================================================================ 2 | // Mini Spin-X Library 3 | // 4 | // Copyright (c) 2024, Jarkko Lempiainen 5 | // All rights reserved. 6 | //============================================================================ 7 | 8 | 9 | //============================================================================ 10 | // message_base 11 | //============================================================================ 12 | message_base::message_base() 13 | { 14 | m_next=0; 15 | } 16 | //---------------------------------------------------------------------------- 17 | 18 | 19 | //============================================================================ 20 | // mp_message_queue 21 | //============================================================================ 22 | template 23 | void mp_message_queue::add_message(const T &msg_) 24 | { 25 | // construct 26 | T *msg=(T*)m_allocator.alloc(sizeof(T), meta_alignof::res); 27 | PFC_PNEW(msg)T(msg_); 28 | m_messages.push(*msg); 29 | } 30 | //---------------------------------------------------------------------------- 31 | -------------------------------------------------------------------------------- /sxp_src/core/typeid.inc: -------------------------------------------------------------------------------- 1 | //============================================================================ 2 | // Mini Spin-X Library 3 | // 4 | // Copyright (c) 2024, Jarkko Lempiainen 5 | // All rights reserved. 6 | //============================================================================ 7 | 8 | // fundamental data type IDs 9 | PFC_STATIC_TYPEID(void, 0x80000000); 10 | PFC_STATIC_TYPEID(bool, 0x80000001); 11 | PFC_STATIC_TYPEID(char, 0x80000002); 12 | PFC_STATIC_TYPEID(signed char, 0x80000003); 13 | PFC_STATIC_TYPEID(unsigned char, 0x80000004); 14 | PFC_STATIC_TYPEID(signed short, 0x80000005); 15 | PFC_STATIC_TYPEID(unsigned short, 0x80000006); 16 | PFC_STATIC_TYPEID(signed int, 0x80000007); 17 | PFC_STATIC_TYPEID(unsigned int, 0x80000008); 18 | PFC_STATIC_TYPEID(signed long, 0x80000009); 19 | PFC_STATIC_TYPEID(unsigned long, 0x8000000a); 20 | #if PFC_INT64_CPP_TYPE==0 21 | PFC_STATIC_TYPEID(int64_t, 0x8000000b); 22 | PFC_STATIC_TYPEID(uint64_t, 0x8000000c); 23 | #endif 24 | PFC_STATIC_TYPEID(float, 0x8000000d); 25 | PFC_STATIC_TYPEID(double, 0x8000000e); 26 | PFC_STATIC_TYPEID(long double, 0x8000000f); 27 | //---------------------------------------------------------------------------- 28 | -------------------------------------------------------------------------------- /sxp_src/platform/linux/core/fsys/linux_fsys.cpp: -------------------------------------------------------------------------------- 1 | //============================================================================ 2 | // Mini Spin-X Library 3 | // 4 | // Copyright (c) 2024, Jarkko Lempiainen 5 | // All rights reserved. 6 | //============================================================================ 7 | 8 | #include "sxp_src/sxp_pch.h" 9 | #include "sxp_src/platform/posix/posix_fsys.h" 10 | using namespace pfc; 11 | //---------------------------------------------------------------------------- 12 | 13 | 14 | //============================================================================ 15 | // create_default_file_system 16 | //============================================================================ 17 | owner_ref pfc::create_default_file_system(bool set_active_) 18 | { 19 | return PFC_NEW(posix_file_system)(set_active_); 20 | } 21 | //---------------------------------------------------------------------------- 22 | -------------------------------------------------------------------------------- /sxp_src/platform/linux/core/linux_core.h: -------------------------------------------------------------------------------- 1 | //============================================================================ 2 | // Mini Spin-X Library 3 | // 4 | // Copyright (c) 2024, Jarkko Lempiainen 5 | // All rights reserved. 6 | //============================================================================ 7 | 8 | #ifndef PFC_LINUX_CORE_H 9 | #define PFC_LINUX_CORE_H 10 | //---------------------------------------------------------------------------- 11 | 12 | 13 | //============================================================================ 14 | // interface 15 | //============================================================================ 16 | // external 17 | #include "sxp_src/core/config.h" 18 | #include 19 | namespace pfc 20 | { 21 | 22 | // new 23 | #define PFC_BIG_ENDIAN 0 /*todo*/ 24 | #define PFC_SNPRINTF snprintf 25 | #define PFC_ALLOCA alloca 26 | #define PFC_MKDIR(dir__) mkdir(dir__, S_IRWXU|S_IRWXG|S_IROTH|S_IXOTH) 27 | #define PFC_TIMEGM(x__) timegm(x__) 28 | //---------------------------------------------------------------------------- 29 | 30 | 31 | //============================================================================ 32 | // fundamental data types 33 | //============================================================================ 34 | // SIMD types 35 | typedef float simd_float4 __attribute__ ((vector_size(16))); 36 | //---------------------------------------------------------------------------- 37 | 38 | //============================================================================ 39 | } // namespace pfc 40 | #endif 41 | -------------------------------------------------------------------------------- /sxp_src/platform/linux/core/linux_inet.cpp: -------------------------------------------------------------------------------- 1 | //============================================================================ 2 | // Mini Spin-X Library 3 | // 4 | // Copyright (c) 2024, Jarkko Lempiainen 5 | // All rights reserved. 6 | //============================================================================ 7 | 8 | #include "sxp_src/sxp_pch.h" 9 | #include "sxp_src/platform/posix/posix_inet.h" 10 | using namespace pfc; 11 | //---------------------------------------------------------------------------- 12 | 13 | 14 | //============================================================================ 15 | // create_default_file_system 16 | //============================================================================ 17 | owner_ptr pfc::create_default_inet_system(bool set_active_) 18 | { 19 | return PFC_NEW(posix_inet_system)(set_active_); 20 | } 21 | //---------------------------------------------------------------------------- 22 | -------------------------------------------------------------------------------- /sxp_src/platform/linux/core/linux_inet.h: -------------------------------------------------------------------------------- 1 | //============================================================================ 2 | // Mini Spin-X Library 3 | // 4 | // Copyright (c) 2024, Jarkko Lempiainen 5 | // All rights reserved. 6 | //============================================================================ 7 | 8 | #ifndef PFC_LINUX_INET_H 9 | #define PFC_LINUX_INET_H 10 | //---------------------------------------------------------------------------- 11 | 12 | 13 | //============================================================================ 14 | // interface 15 | //============================================================================ 16 | // external 17 | #include "sxp_src/core/core.h" 18 | namespace pfc 19 | { 20 | 21 | // new 22 | //---------------------------------------------------------------------------- 23 | 24 | //============================================================================ 25 | } // namespace pfc 26 | #endif 27 | -------------------------------------------------------------------------------- /sxp_src/platform/linux/core/linux_inet_posix.h: -------------------------------------------------------------------------------- 1 | //============================================================================ 2 | // Mini Spin-X Library 3 | // 4 | // Copyright (c) 2024, Jarkko Lempiainen 5 | // All rights reserved. 6 | //============================================================================ 7 | 8 | #ifndef PFC_LINUX_INET_POSIX_H 9 | #define PFC_LINUX_INET_POSIX_H 10 | //---------------------------------------------------------------------------- 11 | 12 | 13 | //============================================================================ 14 | // interface 15 | //============================================================================ 16 | // external 17 | #include 18 | #include 19 | #include 20 | #include 21 | #include 22 | #include 23 | namespace pfc 24 | { 25 | 26 | // new 27 | #define PFC_CLOSESOCKET(s__) ::close(s__) 28 | #define PFC_SET_SOCKET_NONBLOCKING(s__) {int flags=fcntl(s__, F_GETFL, 0); if(!(flags&O_NONBLOCK)) fcntl(s__, F_SETFL, flags|O_NONBLOCK);} 29 | PFC_INLINE bool is_nonblocking_socket_fail() {return errno==EAGAIN || errno==EWOULDBLOCK || errno==EINPROGRESS;} 30 | //---------------------------------------------------------------------------- 31 | 32 | //============================================================================ 33 | } // namespace pfc 34 | #endif 35 | -------------------------------------------------------------------------------- /sxp_src/platform/linux/core/linux_main.cpp: -------------------------------------------------------------------------------- 1 | //============================================================================ 2 | // Mini Spin-X Library 3 | // 4 | // Copyright (c) 2024, Jarkko Lempiainen 5 | // All rights reserved. 6 | //============================================================================ 7 | 8 | #include "sxp_src/sxp_pch.h" 9 | #include "sxp_src/core/main.h" 10 | using namespace pfc; 11 | //---------------------------------------------------------------------------- 12 | 13 | 14 | //============================================================================ 15 | // linux_main 16 | //============================================================================ 17 | int pfc::linux_main(int argc_, const char *argv_[]) 18 | { 19 | if(argc_>0) 20 | return entry(argv_+1, argc_-1); 21 | return entry(0, 0); 22 | } 23 | //---------------------------------------------------------------------------- 24 | -------------------------------------------------------------------------------- /sxp_src/platform/linux/core/linux_main.h: -------------------------------------------------------------------------------- 1 | //============================================================================ 2 | // Mini Spin-X Library 3 | // 4 | // Copyright (c) 2024, Jarkko Lempiainen 5 | // All rights reserved. 6 | //============================================================================ 7 | 8 | #ifndef PFC_LINUX_INET_H 9 | #define PFC_LINUX_INET_H 10 | //---------------------------------------------------------------------------- 11 | 12 | 13 | //============================================================================ 14 | // interface 15 | //============================================================================ 16 | // external 17 | #include "sxp_src/core/core.h" 18 | namespace pfc 19 | { 20 | 21 | // new 22 | int linux_main(int argc_, const char *argv_[]); 23 | #define PFC_MAIN(args__, num_args__)\ 24 | int main(int argc_, const char *argv_[]) {return pfc::linux_main(argc_, argv_);}\ 25 | int pfc::entry(args__, num_args__) 26 | //---------------------------------------------------------------------------- 27 | 28 | //============================================================================ 29 | } // namespace pfc 30 | #endif 31 | -------------------------------------------------------------------------------- /sxp_src/platform/linux/core/mp/linux_mp.h: -------------------------------------------------------------------------------- 1 | //============================================================================ 2 | // Mini Spin-X Library 3 | // 4 | // Copyright (c) 2024, Jarkko Lempiainen 5 | // All rights reserved. 6 | //============================================================================ 7 | 8 | #ifndef PFC_LINUX_CORE_MP_H 9 | #define PFC_LINUX_CORE_MP_H 10 | //---------------------------------------------------------------------------- 11 | 12 | 13 | //============================================================================ 14 | // interface 15 | //============================================================================ 16 | #include "sxp_src/core/core.h" 17 | #include 18 | #include 19 | #include 20 | namespace pfc 21 | { 22 | 23 | // new 24 | struct mp_thread_handle_t {pthread_t thread_id; pthread_attr_t thread_attr; bool is_running;}; 25 | struct mp_event_handle_t {pthread_cond_t cond; pthread_mutex_t mutex;}; 26 | struct mp_gate_handle_t {pthread_cond_t cond; pthread_mutex_t mutex; volatile bool is_open;}; 27 | typedef pthread_mutex_t mp_critical_section_handle_t; 28 | #define PFC_THREAD_PROC void *thread_proc(void*) 29 | //---------------------------------------------------------------------------- 30 | 31 | //============================================================================ 32 | } // namespace pfc 33 | #endif 34 | -------------------------------------------------------------------------------- /sxp_src/platform/win/core/mp/win_mp.h: -------------------------------------------------------------------------------- 1 | //============================================================================ 2 | // Mini Spin-X Library 3 | // 4 | // Copyright (c) 2024, Jarkko Lempiainen 5 | // All rights reserved. 6 | //============================================================================ 7 | 8 | #ifndef PFC_WIN_CORE_MP_H 9 | #define PFC_WIN_CORE_MP_H 10 | //---------------------------------------------------------------------------- 11 | 12 | 13 | //============================================================================ 14 | // interface 15 | //============================================================================ 16 | #include "sxp_src/core/core.h" 17 | namespace pfc 18 | { 19 | 20 | // new 21 | typedef HANDLE mp_thread_handle_t; 22 | typedef HANDLE mp_event_handle_t; 23 | typedef HANDLE mp_gate_handle_t; 24 | typedef CRITICAL_SECTION mp_critical_section_handle_t; 25 | #define PFC_THREAD_PROC DWORD WINAPI thread_proc(void*) 26 | //---------------------------------------------------------------------------- 27 | 28 | //============================================================================ 29 | } // namespace pfc 30 | #endif 31 | -------------------------------------------------------------------------------- /sxp_src/platform/win/core/win_inet_posix.h: -------------------------------------------------------------------------------- 1 | //============================================================================ 2 | // Mini Spin-X Library 3 | // 4 | // Copyright (c) 2024, Jarkko Lempiainen 5 | // All rights reserved. 6 | //============================================================================ 7 | 8 | #ifndef PFC_WIN_INET_POSIX_H 9 | #define PFC_WIN_INET_POSIX_H 10 | //---------------------------------------------------------------------------- 11 | 12 | 13 | //============================================================================ 14 | // interface 15 | //============================================================================ 16 | // external 17 | #include 18 | namespace pfc 19 | { 20 | 21 | // new 22 | #define PFC_CLOSESOCKET(s__) ::closesocket(s__) 23 | #define PFC_SET_SOCKET_NONBLOCKING(s__) {u_long socket_mode=1; PFC_VERIFY(::ioctlsocket(s__, FIONBIO, &socket_mode)==0);} 24 | PFC_INLINE bool is_nonblocking_socket_fail() {return WSAGetLastError()==WSAEWOULDBLOCK;} 25 | //---------------------------------------------------------------------------- 26 | 27 | //============================================================================ 28 | } // namespace pfc 29 | #endif 30 | -------------------------------------------------------------------------------- /sxp_src/platform/win/core/win_main.cpp: -------------------------------------------------------------------------------- 1 | //============================================================================ 2 | // Mini Spin-X Library 3 | // 4 | // Copyright (c) 2024, Jarkko Lempiainen 5 | // All rights reserved. 6 | //============================================================================ 7 | 8 | #include "sxp_src/sxp_pch.h" 9 | #include "sxp_src/core/main.h" 10 | #include "sxp_src/core/str.h" 11 | #include "sxp_src/core/utils.h" 12 | using namespace pfc; 13 | //---------------------------------------------------------------------------- 14 | 15 | 16 | //============================================================================ 17 | // win_main 18 | //============================================================================ 19 | int pfc::win_main(int argc_, const char *argv_[]) 20 | { 21 | // get command-line arguments 22 | enum {max_args=256}; 23 | const char *args[max_args]={0}; 24 | heap_str cmd_line=GetCommandLine(); 25 | unsigned num_args=tokenize_command_line(cmd_line.c_str(), args, max_args); 26 | return entry(args+1, num_args-1); 27 | } 28 | //---- 29 | 30 | int pfc::win_main(HINSTANCE inst_, HINSTANCE prev_inst_, LPSTR cmd_, int show_flags_) 31 | { 32 | // get command-line arguments 33 | enum {max_args=256}; 34 | const char *args[max_args]={0}; 35 | unsigned num_args=tokenize_command_line(cmd_, args, max_args); 36 | return entry(args, num_args); 37 | } 38 | //---------------------------------------------------------------------------- 39 | -------------------------------------------------------------------------------- /sxp_src/platform/win/core/win_main.h: -------------------------------------------------------------------------------- 1 | //============================================================================ 2 | // Mini Spin-X Library 3 | // 4 | // Copyright (c) 2024, Jarkko Lempiainen 5 | // All rights reserved. 6 | //============================================================================ 7 | 8 | #ifndef PFC_WIN_MAIN_H 9 | #define PFC_WIN_MAIN_H 10 | //---------------------------------------------------------------------------- 11 | 12 | 13 | //============================================================================ 14 | // interface 15 | //============================================================================ 16 | // external 17 | #include "sxp_src/core/core.h" 18 | namespace pfc 19 | { 20 | 21 | // new 22 | int win_main(int argc_, const char *argv_[]); 23 | int win_main(HINSTANCE inst_, HINSTANCE prev_inst_, LPSTR cmd_, int show_flags_); 24 | #define PFC_MAIN(args__, num_args__)\ 25 | int __cdecl main(int argc_, const char *argv_[]) {return pfc::win_main(argc_, argv_);}\ 26 | int __stdcall WinMain(HINSTANCE inst_, HINSTANCE prev_inst_, LPSTR cmd_, int show_flags_) {return pfc::win_main(inst_, prev_inst_, cmd_, show_flags_);}\ 27 | int pfc::entry(args__, num_args__) 28 | //---------------------------------------------------------------------------- 29 | 30 | //============================================================================ 31 | } // namespace pfc 32 | #endif 33 | -------------------------------------------------------------------------------- /sxp_src/sxp_pch.cpp: -------------------------------------------------------------------------------- 1 | //============================================================================ 2 | // Mini Spin-X Library 3 | // 4 | // Copyright (c) 2024, Jarkko Lempiainen 5 | // All rights reserved. 6 | //============================================================================ 7 | 8 | #include "sxp_src/sxp_pch.h" 9 | //---------------------------------------------------------------------------- 10 | -------------------------------------------------------------------------------- /sxp_src/sxp_pch.h: -------------------------------------------------------------------------------- 1 | //============================================================================ 2 | // Mini Spin-X Library 3 | // 4 | // Copyright (c) 2024, Jarkko Lempiainen 5 | // All rights reserved. 6 | //============================================================================ 7 | 8 | #include "sxp_src/core/core.h" 9 | //---------------------------------------------------------------------------- 10 | -------------------------------------------------------------------------------- /tools/bin/build_templates/file_configs/vs2008/cl: -------------------------------------------------------------------------------- 1 | 4 | 10 | 11 | -------------------------------------------------------------------------------- /tools/bin/build_templates/file_configs/vs2008/cuda_debug_win32: -------------------------------------------------------------------------------- 1 | 4 | 9 | 10 | -------------------------------------------------------------------------------- /tools/bin/build_templates/file_configs/vs2008/cuda_debug_win64: -------------------------------------------------------------------------------- 1 | 4 | 9 | 10 | -------------------------------------------------------------------------------- /tools/bin/build_templates/file_configs/vs2008/cuda_release_win32: -------------------------------------------------------------------------------- 1 | 4 | 9 | 10 | -------------------------------------------------------------------------------- /tools/bin/build_templates/file_configs/vs2008/cuda_release_win64: -------------------------------------------------------------------------------- 1 | 4 | 9 | 10 | -------------------------------------------------------------------------------- /tools/bin/build_templates/file_configs/vs2008/cuda_retail_win32: -------------------------------------------------------------------------------- 1 | 4 | 9 | 10 | -------------------------------------------------------------------------------- /tools/bin/build_templates/file_configs/vs2008/cuda_retail_win64: -------------------------------------------------------------------------------- 1 | 4 | 9 | 10 | -------------------------------------------------------------------------------- /tools/bin/build_templates/file_configs/vs2008/custom_cpp: -------------------------------------------------------------------------------- 1 | 4 | 8 | 9 | -------------------------------------------------------------------------------- /tools/bin/build_templates/file_configs/vs2008/disable_pch: -------------------------------------------------------------------------------- 1 | 4 | 8 | 9 | -------------------------------------------------------------------------------- /tools/bin/build_templates/file_configs/vs2008/excluded: -------------------------------------------------------------------------------- 1 | 5 | 6 | -------------------------------------------------------------------------------- /tools/bin/build_templates/file_configs/vs2008/generate_pch: -------------------------------------------------------------------------------- 1 | 4 | 8 | 9 | -------------------------------------------------------------------------------- /tools/bin/build_templates/file_configs/vs2008/hlsl: -------------------------------------------------------------------------------- 1 | 4 | 10 | 11 | -------------------------------------------------------------------------------- /tools/bin/build_templates/file_configs/vs2008/sxfx: -------------------------------------------------------------------------------- 1 | 4 | 10 | 11 | -------------------------------------------------------------------------------- /tools/bin/build_templates/file_configs/vs2010/cl: -------------------------------------------------------------------------------- 1 | "@(SXPToolsPath)\pfc_cl_compiler.exe" -c -o @(CLTargetPath)/%(Filename).ccl %(FullPath) 2 | @(CLTargetPath)/%(Filename).ccl 3 | -------------------------------------------------------------------------------- /tools/bin/build_templates/file_configs/vs2010/cuda_debug_win32: -------------------------------------------------------------------------------- 1 | "$(CUDA_PATH)\bin\nvcc.exe" -m32 -ccbin "$(VCInstallDir)bin" -c @(CUDACustomParameters) -D_DEBUG -DWIN32 -D_MBCS -D_LIB -Xcompiler /EHsc,/W3,/nologo,/Od,/Zi,/Oi,/RTC1,/MDd,/GF,/Gm,/fp:fast -I"$(CUDA_INC_PATH)" -I./ -o $(IntDir)%(Filename).obj %(FullPath) 2 | $(IntDir)%(Filename).obj;%(Outputs) 3 | -------------------------------------------------------------------------------- /tools/bin/build_templates/file_configs/vs2010/cuda_debug_win64: -------------------------------------------------------------------------------- 1 | "$(CUDA_PATH)\bin\nvcc.exe" -m64 -ccbin "$(VCInstallDir)bin" -c @(CUDACustomParameters) -D_DEBUG -DWIN32 -D_MBCS -D_LIB -Xcompiler /EHsc,/W3,/nologo,/Od,/Zi,/Oi,/RTC1,/MDd,/GF,/Gm,/fp:fast -I"$(CUDA_INC_PATH)" -I./ -o $(IntDir)%(Filename).obj %(FullPath) 2 | $(IntDir)%(Filename).obj;%(Outputs) 3 | -------------------------------------------------------------------------------- /tools/bin/build_templates/file_configs/vs2010/cuda_release_win32: -------------------------------------------------------------------------------- 1 | "$(CUDA_PATH)\bin\nvcc.exe" -m32 -ccbin "$(VCInstallDir)bin" -c @(CUDACustomParameters) -DNDEBUG -DWIN32 -D_MBCS -D_LIB -Xcompiler /EHsc,/W3,/nologo,/Ox,/Ob2,/Oi,/Ot,/GF,/FD,/MD,/GS-,/fp:fast -I"$(CUDA_INC_PATH)" -I./ -o $(IntDir)%(Filename).obj %(FullPath) 2 | $(IntDir)%(Filename).obj;%(Outputs) 3 | -------------------------------------------------------------------------------- /tools/bin/build_templates/file_configs/vs2010/cuda_release_win64: -------------------------------------------------------------------------------- 1 | "$(CUDA_PATH)\bin\nvcc.exe" -m64 -ccbin "$(VCInstallDir)bin" -c @(CUDACustomParameters) -DNDEBUG -DWIN32 -D_MBCS -D_LIB -Xcompiler /EHsc,/W3,/nologo,/Ox,/Ob2,/Oi,/Ot,/GF,/FD,/MD,/GS-,/fp:fast -I"$(CUDA_INC_PATH)" -I./ -o $(IntDir)%(Filename).obj %(FullPath) 2 | $(IntDir)%(Filename).obj;%(Outputs) 3 | -------------------------------------------------------------------------------- /tools/bin/build_templates/file_configs/vs2010/cuda_retail_win32: -------------------------------------------------------------------------------- 1 | "$(CUDA_PATH)\bin\nvcc.exe" -m32 -ccbin "$(VCInstallDir)bin" -c @(CUDACustomParameters) -DNDEBUG -DWIN32 -D_MBCS -D_LIB -Xcompiler /W3,/nologo,/Ox,/Ob2,/Oi,/Ot,/GL,/GF,/FD,/MD,/GS-,/GR-,/fp:fast -I"$(CUDA_INC_PATH)" -I./ -o $(IntDir)%(Filename).obj %(FullPath) 2 | $(IntDir)%(Filename).obj;%(Outputs) 3 | -------------------------------------------------------------------------------- /tools/bin/build_templates/file_configs/vs2010/cuda_retail_win64: -------------------------------------------------------------------------------- 1 | "$(CUDA_PATH)\bin\nvcc.exe" -m64 -ccbin "$(VCInstallDir)bin" -c @(CUDACustomParameters) -DNDEBUG -DWIN32 -D_MBCS -D_LIB -Xcompiler /W3,/nologo,/Ox,/Ob2,/Oi,/Ot,/GL,/GF,/FD,/MD,/GS-,/GR-,/fp:fast -I"$(CUDA_INC_PATH)" -I./ -o $(IntDir)%(Filename).obj %(FullPath) 2 | $(IntDir)%(Filename).obj;%(Outputs) 3 | -------------------------------------------------------------------------------- /tools/bin/build_templates/file_configs/vs2010/custom_cpp: -------------------------------------------------------------------------------- 1 | @(IncludeDirectories) 2 | -------------------------------------------------------------------------------- /tools/bin/build_templates/file_configs/vs2010/disable_pch: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tools/bin/build_templates/file_configs/vs2010/excluded: -------------------------------------------------------------------------------- 1 | true 2 | -------------------------------------------------------------------------------- /tools/bin/build_templates/file_configs/vs2010/generate_pch: -------------------------------------------------------------------------------- 1 | Create 2 | -------------------------------------------------------------------------------- /tools/bin/build_templates/file_configs/vs2010/hlsl: -------------------------------------------------------------------------------- 1 | "$(DXSDK_DIR)Utilities\bin\x86\fxc.exe" /nologo /E @(HLSLShaderMain) /T @(ShaderModel) @(HLSLAdditionalFlags) /Vn g_%(Filename) /Fh @(OutputDirectory)/%(Filename).sh %(FullPath) 2 | @(OutputDirectory)/%(Filename).sh 3 | Compiling HLSL Shader "%(Filename)%(Extension)" -------------------------------------------------------------------------------- /tools/bin/build_templates/file_configs/vs2010/sxfx: -------------------------------------------------------------------------------- 1 | "@(SXPToolsPath)\pfc_sxfx_compiler.exe" -c -p @(SXFXPlatform) -o @(SXFXTargetPath)/%(Filename).csc @(SXFXAdditionalArguments) %(FullPath) 2 | @(SXFXTargetPath)/%(Filename).csc 3 | -------------------------------------------------------------------------------- /tools/bin/build_templates/file_configs/vs2012/cl: -------------------------------------------------------------------------------- 1 | "@(SXPToolsPath)\pfc_cl_compiler.exe" -c -o @(CLTargetPath)/%(Filename).ccl %(FullPath) 2 | @(CLTargetPath)/%(Filename).ccl 3 | -------------------------------------------------------------------------------- /tools/bin/build_templates/file_configs/vs2012/cuda_debug_win32: -------------------------------------------------------------------------------- 1 | "$(CUDA_PATH)\bin\nvcc.exe" -m32 -ccbin "$(VCInstallDir)bin" -c @(CUDACustomParameters) -D_DEBUG -DWIN32 -D_MBCS -D_LIB -Xcompiler /EHsc,/W3,/nologo,/Od,/Zi,/Oi,/RTC1,/MDd,/GF,/Gm,/fp:fast -I"$(CUDA_INC_PATH)" -I./ -o $(IntDir)%(Filename).obj %(FullPath) 2 | $(IntDir)%(Filename).obj;%(Outputs) 3 | -------------------------------------------------------------------------------- /tools/bin/build_templates/file_configs/vs2012/cuda_debug_win64: -------------------------------------------------------------------------------- 1 | "$(CUDA_PATH)\bin\nvcc.exe" -m64 -ccbin "$(VCInstallDir)bin" -c @(CUDACustomParameters) -D_DEBUG -DWIN32 -D_MBCS -D_LIB -Xcompiler /EHsc,/W3,/nologo,/Od,/Zi,/Oi,/RTC1,/MDd,/GF,/Gm,/fp:fast -I"$(CUDA_INC_PATH)" -I./ -o $(IntDir)%(Filename).obj %(FullPath) 2 | $(IntDir)%(Filename).obj;%(Outputs) 3 | -------------------------------------------------------------------------------- /tools/bin/build_templates/file_configs/vs2012/cuda_release_win32: -------------------------------------------------------------------------------- 1 | "$(CUDA_PATH)\bin\nvcc.exe" -m32 -ccbin "$(VCInstallDir)bin" -c @(CUDACustomParameters) -DNDEBUG -DWIN32 -D_MBCS -D_LIB -Xcompiler /EHsc,/W3,/nologo,/Ox,/Ob2,/Oi,/Ot,/GF,/FD,/MD,/GS-,/fp:fast -I"$(CUDA_INC_PATH)" -I./ -o $(IntDir)%(Filename).obj %(FullPath) 2 | $(IntDir)%(Filename).obj;%(Outputs) 3 | -------------------------------------------------------------------------------- /tools/bin/build_templates/file_configs/vs2012/cuda_release_win64: -------------------------------------------------------------------------------- 1 | "$(CUDA_PATH)\bin\nvcc.exe" -m64 -ccbin "$(VCInstallDir)bin" -c @(CUDACustomParameters) -DNDEBUG -DWIN32 -D_MBCS -D_LIB -Xcompiler /EHsc,/W3,/nologo,/Ox,/Ob2,/Oi,/Ot,/GF,/FD,/MD,/GS-,/fp:fast -I"$(CUDA_INC_PATH)" -I./ -o $(IntDir)%(Filename).obj %(FullPath) 2 | $(IntDir)%(Filename).obj;%(Outputs) 3 | -------------------------------------------------------------------------------- /tools/bin/build_templates/file_configs/vs2012/cuda_retail_win32: -------------------------------------------------------------------------------- 1 | "$(CUDA_PATH)\bin\nvcc.exe" -m32 -ccbin "$(VCInstallDir)bin" -c @(CUDACustomParameters) -DNDEBUG -DWIN32 -D_MBCS -D_LIB -Xcompiler /W3,/nologo,/Ox,/Ob2,/Oi,/Ot,/GL,/GF,/FD,/MD,/GS-,/GR-,/fp:fast -I"$(CUDA_INC_PATH)" -I./ -o $(IntDir)%(Filename).obj %(FullPath) 2 | $(IntDir)%(Filename).obj;%(Outputs) 3 | -------------------------------------------------------------------------------- /tools/bin/build_templates/file_configs/vs2012/cuda_retail_win64: -------------------------------------------------------------------------------- 1 | "$(CUDA_PATH)\bin\nvcc.exe" -m64 -ccbin "$(VCInstallDir)bin" -c @(CUDACustomParameters) -DNDEBUG -DWIN32 -D_MBCS -D_LIB -Xcompiler /W3,/nologo,/Ox,/Ob2,/Oi,/Ot,/GL,/GF,/FD,/MD,/GS-,/GR-,/fp:fast -I"$(CUDA_INC_PATH)" -I./ -o $(IntDir)%(Filename).obj %(FullPath) 2 | $(IntDir)%(Filename).obj;%(Outputs) 3 | -------------------------------------------------------------------------------- /tools/bin/build_templates/file_configs/vs2012/custom_cpp: -------------------------------------------------------------------------------- 1 | @(IncludeDirectories) 2 | -------------------------------------------------------------------------------- /tools/bin/build_templates/file_configs/vs2012/disable_pch: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tools/bin/build_templates/file_configs/vs2012/excluded: -------------------------------------------------------------------------------- 1 | true 2 | -------------------------------------------------------------------------------- /tools/bin/build_templates/file_configs/vs2012/generate_pch: -------------------------------------------------------------------------------- 1 | Create 2 | -------------------------------------------------------------------------------- /tools/bin/build_templates/file_configs/vs2012/hlsl: -------------------------------------------------------------------------------- 1 | "$(DXSDK_DIR)Utilities\bin\x86\fxc.exe" /nologo /E @(HLSLShaderMain) /T @(ShaderModel) @(HLSLAdditionalFlags) /Vn g_%(Filename) /Fh @(OutputDirectory)/%(Filename).sh %(FullPath) 2 | @(OutputDirectory)/%(Filename).sh 3 | Compiling HLSL Shader "%(Filename)%(Extension)" -------------------------------------------------------------------------------- /tools/bin/build_templates/file_configs/vs2012/sxfx: -------------------------------------------------------------------------------- 1 | "@(SXPToolsPath)\pfc_sxfx_compiler.exe" -c -p @(SXFXPlatform) -o @(SXFXTargetPath)/%(Filename).csc @(SXFXAdditionalArguments) %(FullPath) 2 | @(SXFXTargetPath)/%(Filename).csc 3 | -------------------------------------------------------------------------------- /tools/bin/build_templates/vs2008.platform: -------------------------------------------------------------------------------- 1 | 4 | -------------------------------------------------------------------------------- /tools/bin/build_templates/vs2008_project.vcproj: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | @(Platforms) 13 | 14 | 15 | 16 | 17 | @(Configurations) 18 | 19 | 20 | 21 | 22 | @(Files) 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /tools/bin/build_templates/vs2010.codeanalysis: -------------------------------------------------------------------------------- 1 | AllRules.ruleset 2 | 3 | 4 | -------------------------------------------------------------------------------- /tools/bin/build_templates/vs2010.impgroup: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /tools/bin/build_templates/vs2010.projcfg: -------------------------------------------------------------------------------- 1 | 2 | @(BuildName) 3 | @(VSPlatformType) 4 | 5 | -------------------------------------------------------------------------------- /tools/bin/build_templates/vs2010_project.propgroup: -------------------------------------------------------------------------------- 1 | @(OutputDirectory)/ 2 | @(IntermediateDirectory)/ 3 | @(OutputFile) 4 | @(OutputDirectory)/@(OutputFile)@(OutputFileExt) 5 | -------------------------------------------------------------------------------- /tools/bin/build_templates/vs2010_project.vcxproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | @(ProjectConfigurations) 5 | 6 | 7 | {@(VSProjectGUID)} 8 | @(ProjectName) 9 | Win32Proj 10 | 11 | 12 | @(ProjectGroups) 13 | 14 | 15 | 16 | @(ImportGroups) 17 | 18 | 19 | <_ProjectFileVersion>10.0.40219.1 20 | @(PropertyGroups) 21 | @(CodeAnalysis) 22 | 23 | @(ItemDefinitionGroups) 24 | @(ItemGroups) 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /tools/bin/build_templates/vs2010_project.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | @(ItemFilterGroups) 4 | 5 | -------------------------------------------------------------------------------- /tools/bin/build_templates/vs2012.codeanalysis: -------------------------------------------------------------------------------- 1 | AllRules.ruleset 2 | 3 | 4 | -------------------------------------------------------------------------------- /tools/bin/build_templates/vs2012.impgroup: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /tools/bin/build_templates/vs2012.projcfg: -------------------------------------------------------------------------------- 1 | 2 | @(BuildName) 3 | @(VSPlatformType) 4 | 5 | -------------------------------------------------------------------------------- /tools/bin/build_templates/vs2012_project.propgroup: -------------------------------------------------------------------------------- 1 | @(OutputDirectory)/ 2 | @(IntermediateDirectory)/ 3 | @(OutputFile) 4 | @(OutputDirectory)/@(OutputFile)@(OutputFileExt) 5 | -------------------------------------------------------------------------------- /tools/bin/build_templates/vs2012_project.vcxproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | @(ProjectConfigurations) 5 | 6 | 7 | title 8 | {@(VSProjectGUID)} 9 | @(ProjectName) 10 | Win32Proj 11 | en-US 12 | @(VSWindowsTargetPlatformVersion) 13 | 14 | 15 | @(ProjectGroups) 16 | 17 | 18 | 19 | @(ImportGroups) 20 | 21 | 22 | <_ProjectFileVersion>10.0.40219.1 23 | @(PropertyGroups) 24 | @(CodeAnalysis) 25 | 26 | @(ItemDefinitionGroups) 27 | @(ItemGroups) 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /tools/bin/build_templates/vs2012_project.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | @(ItemFilterGroups) 4 | 5 | -------------------------------------------------------------------------------- /tools/bin/build_templates/win32/vs2010_debug_exe.propgroup: -------------------------------------------------------------------------------- 1 | 2 | Application 3 | MultiByte 4 | 5 | -------------------------------------------------------------------------------- /tools/bin/build_templates/win32/vs2010_debug_lib.propgroup: -------------------------------------------------------------------------------- 1 | 2 | StaticLibrary 3 | MultiByte 4 | 5 | -------------------------------------------------------------------------------- /tools/bin/build_templates/win32/vs2010_release_exe.propgroup: -------------------------------------------------------------------------------- 1 | 2 | Application 3 | MultiByte 4 | 5 | -------------------------------------------------------------------------------- /tools/bin/build_templates/win32/vs2010_release_lib.propgroup: -------------------------------------------------------------------------------- 1 | 2 | StaticLibrary 3 | MultiByte 4 | 5 | -------------------------------------------------------------------------------- /tools/bin/build_templates/win32/vs2010_retail_exe.propgroup: -------------------------------------------------------------------------------- 1 | 2 | Application 3 | MultiByte 4 | true 5 | 6 | -------------------------------------------------------------------------------- /tools/bin/build_templates/win32/vs2010_retail_lib.propgroup: -------------------------------------------------------------------------------- 1 | 2 | StaticLibrary 3 | MultiByte 4 | true 5 | 6 | -------------------------------------------------------------------------------- /tools/bin/build_templates/win32/vs2012_debug_exe.propgroup: -------------------------------------------------------------------------------- 1 | 2 | Application 3 | MultiByte 4 | @(VSPlatformToolset) 5 | 6 | -------------------------------------------------------------------------------- /tools/bin/build_templates/win32/vs2012_debug_lib.propgroup: -------------------------------------------------------------------------------- 1 | 2 | StaticLibrary 3 | MultiByte 4 | @(VSPlatformToolset) 5 | 6 | -------------------------------------------------------------------------------- /tools/bin/build_templates/win32/vs2012_release_exe.propgroup: -------------------------------------------------------------------------------- 1 | 2 | Application 3 | MultiByte 4 | @(VSPlatformToolset) 5 | 6 | -------------------------------------------------------------------------------- /tools/bin/build_templates/win32/vs2012_release_lib.propgroup: -------------------------------------------------------------------------------- 1 | 2 | StaticLibrary 3 | MultiByte 4 | @(VSPlatformToolset) 5 | 6 | -------------------------------------------------------------------------------- /tools/bin/build_templates/win32/vs2012_retail_exe.propgroup: -------------------------------------------------------------------------------- 1 | 2 | Application 3 | MultiByte 4 | true 5 | @(VSPlatformToolset) 6 | 7 | -------------------------------------------------------------------------------- /tools/bin/build_templates/win32/vs2012_retail_lib.propgroup: -------------------------------------------------------------------------------- 1 | 2 | StaticLibrary 3 | MultiByte 4 | true 5 | @(VSPlatformToolset) 6 | 7 | -------------------------------------------------------------------------------- /tools/bin/build_templates/win64/vs2010_debug_exe.propgroup: -------------------------------------------------------------------------------- 1 | 2 | Application 3 | MultiByte 4 | 5 | -------------------------------------------------------------------------------- /tools/bin/build_templates/win64/vs2010_debug_lib.propgroup: -------------------------------------------------------------------------------- 1 | 2 | StaticLibrary 3 | MultiByte 4 | 5 | -------------------------------------------------------------------------------- /tools/bin/build_templates/win64/vs2010_release_exe.propgroup: -------------------------------------------------------------------------------- 1 | 2 | Application 3 | MultiByte 4 | 5 | -------------------------------------------------------------------------------- /tools/bin/build_templates/win64/vs2010_release_lib.propgroup: -------------------------------------------------------------------------------- 1 | 2 | StaticLibrary 3 | MultiByte 4 | 5 | -------------------------------------------------------------------------------- /tools/bin/build_templates/win64/vs2010_retail_exe.propgroup: -------------------------------------------------------------------------------- 1 | 2 | Application 3 | MultiByte 4 | true 5 | 6 | -------------------------------------------------------------------------------- /tools/bin/build_templates/win64/vs2010_retail_lib.propgroup: -------------------------------------------------------------------------------- 1 | 2 | StaticLibrary 3 | MultiByte 4 | true 5 | 6 | -------------------------------------------------------------------------------- /tools/bin/build_templates/win64/vs2012_debug_exe.propgroup: -------------------------------------------------------------------------------- 1 | 2 | Application 3 | MultiByte 4 | @(VSPlatformToolset) 5 | 6 | -------------------------------------------------------------------------------- /tools/bin/build_templates/win64/vs2012_debug_lib.propgroup: -------------------------------------------------------------------------------- 1 | 2 | StaticLibrary 3 | MultiByte 4 | @(VSPlatformToolset) 5 | 6 | -------------------------------------------------------------------------------- /tools/bin/build_templates/win64/vs2012_release_exe.propgroup: -------------------------------------------------------------------------------- 1 | 2 | Application 3 | MultiByte 4 | @(VSPlatformToolset) 5 | 6 | -------------------------------------------------------------------------------- /tools/bin/build_templates/win64/vs2012_release_lib.propgroup: -------------------------------------------------------------------------------- 1 | 2 | StaticLibrary 3 | MultiByte 4 | @(VSPlatformToolset) 5 | 6 | -------------------------------------------------------------------------------- /tools/bin/build_templates/win64/vs2012_retail_exe.propgroup: -------------------------------------------------------------------------------- 1 | 2 | Application 3 | MultiByte 4 | true 5 | @(VSPlatformToolset) 6 | 7 | -------------------------------------------------------------------------------- /tools/bin/build_templates/win64/vs2012_retail_lib.propgroup: -------------------------------------------------------------------------------- 1 | 2 | StaticLibrary 3 | MultiByte 4 | true 5 | @(VSPlatformToolset) 6 | 7 | -------------------------------------------------------------------------------- /tools/bin/pfc_project_gen.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JarkkoPFC/mini_sxp/7282dc219c35728aa4cc006a589517ad9645afef/tools/bin/pfc_project_gen.exe --------------------------------------------------------------------------------