File: tinyexr.cc

package info (click to toggle)
psychtoolbox-3 3.0.19.14.dfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 86,796 kB
  • sloc: ansic: 176,245; cpp: 20,103; objc: 5,393; sh: 2,753; python: 1,397; php: 384; makefile: 193; java: 113
file content (22 lines) | stat: -rw-r--r-- 672 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* Thin C++ wrapper around the tinyexr.h header file only OpenEXR library.
 *
 * Used to isolate Psychtoolbox / Screen()'s regular C source code from the
 * C++ code needed to compile tinyexr.h.
 *
 * SCREENReadHDRImage.c uses functions imported from here with C linkage
 * to utilize tinyexr for reading of HDR files.
 *
 */

#if defined(_WIN32)
#ifndef NOMINMAX
#define NOMINMAX
#endif
#endif

// Include tinyexr header only library. Currently tinyexr.h contains a
// snapshot of upstream https://github.com/syoyo/tinyexr at commit
// cf8550f1b8b9f5f79f02df810c885ed2a2b578f9 ("Merge branch 'AdrianAtGoogle-master").

#define TINYEXR_IMPLEMENTATION
#include "tinyexr.h"