File: test.c

package info (click to toggle)
tinyexr 1.0.0%2Bdfsg-1%2Bdeb11u1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 5,268 kB
  • sloc: cpp: 15,319; makefile: 74; 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; 
}