Forge
image.h
Go to the documentation of this file.
1 /*******************************************************
2  * Copyright (c) 2015-2019, ArrayFire
3  * All rights reserved.
4  *
5  * This file is distributed under 3-clause BSD license.
6  * The complete license agreement can be obtained at:
7  * http://arrayfire.com/licenses/BSD-3-Clause
8  ********************************************************/
9 
10 #pragma once
11 
12 #include <fg/defines.h>
13 
14 namespace internal
15 {
16 class _Image;
17 }
18 
19 namespace fg
20 {
21 
25 class Image {
26  private:
27  internal::_Image* value;
28 
29  public:
40  FGAPI Image(unsigned pWidth, unsigned pHeight, ChannelFormat pFormat, dtype pDataType);
41 
47  FGAPI Image(const Image& other);
48 
52  FGAPI ~Image();
53 
58  FGAPI unsigned width() const;
59 
64  FGAPI unsigned height() const;
65 
70  FGAPI ChannelFormat pixelFormat() const;
71 
76  FGAPI dtype channelType() const;
77 
83  FGAPI unsigned pbo() const;
84 
90  FGAPI unsigned size() const;
91 
95  FGAPI internal::_Image* get() const;
96 };
97 
98 }
ChannelFormat
Definition: defines.h:101
Definition: CPUCopy.hpp:13
#define FGAPI
Definition: defines.h:32
dtype
Definition: defines.h:136
Definition: font.h:13
Definition: image.h:25