File: test.c

package info (click to toggle)
tinyexr 1.0.1%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 4,660 kB
  • sloc: cpp: 11,855; makefile: 103; 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; 
}