File: EXRFiles.h

package info (click to toggle)
asymptote 3.09%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 41,392 kB
  • sloc: cpp: 282,597; ansic: 69,697; python: 15,252; sh: 5,888; perl: 3,006; makefile: 1,719; lisp: 1,507; yacc: 614; lex: 449; xml: 182; javascript: 79; asm: 8
file content (33 lines) | stat: -rw-r--r-- 415 bytes parent folder | download | duplicates (2)
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
31
32
33
//
// Created by jamie on 8/23/21.
//

#pragma once

#include "common.h"


namespace camp
{
class IEXRFile
{
public:
  IEXRFile(string const& file);
  ~IEXRFile();

  [[nodiscard]]
  float const* getData() const {
    return data;
  }

  [[nodiscard]]
  std::pair<int,int> size() const {
    return std::make_pair(width, height);
  }

private:
  float* data=nullptr;
  int width=0, height=0;
};

} // namespace gl;