File: test.c

package info (click to toggle)
tinyexr 1.0.10%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,184 kB
  • sloc: cpp: 12,561; makefile: 110; sh: 18; ansic: 15
file content (19 lines) | stat: -rw-r--r-- 283 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <stdio.h>
#include <stdlib.h>
#include <tinyexr.h>

int main(int argc, char** argv)
{
  float *rgba;
  const char* err;
  int width;
  int height;

  if (argc < 2) {
    return EXIT_FAILURE;
  }

  int ret = LoadEXR(&rgba, &width, &height, argv[1], &err);

  return ret; 
}