HDK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
IMG_FileFilterGainOffset.h
Go to the documentation of this file.
1
/*
2
* PROPRIETARY INFORMATION. This software is proprietary to
3
* Side Effects Software Inc., and is not to be reproduced,
4
* transmitted, or disclosed in any way without written permission.
5
*
6
* NAME: IMG_FileFilterGainOffset ( IMG Library, C++)
7
*
8
* COMMENTS:
9
*
10
* Apply gain and offset to image in that order.
11
*/
12
#ifndef IMG_FILE_FILTER_GAIN_OFFSET_H
13
#define IMG_FILE_FILTER_GAIN_OFFSET_H
14
15
#include <
SYS/SYS_Types.h
>
16
#include <
UT/UT_BitArray.h
>
17
#include <
UT/UT_ValArray.h
>
18
#include <
PXL/PXL_Fill.h
>
19
20
#include "
IMG_FileFilter.h
"
21
22
class
PXL_Raster
;
23
class
PXL_Lookup
;
24
25
class
IMG_API
IMG_FileFilterGainOffset
:
public
IMG_FileFilter
26
{
27
public
:
28
IMG_FileFilterGainOffset
(IMG_File *file_to_filter);
29
30
const
char
*
className
()
const override
31
{
return
"IMG_FileFilterGainOffset"
; }
32
33
void
init(
fpreal
gain,
fpreal
offset
);
34
35
const
void
*readPlaneScanline(
int
y
,
const
IMG_Plane
&
pi
)
override
;
36
37
int
writePlaneScanline(
const
void
*
data
,
int
y
,
38
const
IMG_Plane
&
pi
)
override
;
39
40
private
:
41
void
applyGainOffset(
void
*dest,
const
void
*sdata,
42
const
IMG_Plane
&
pi
);
43
44
fpreal
myGain;
45
fpreal
myOffset;
46
};
47
48
49
#endif
y
GLint y
Definition:
glcorearb.h:103
PXL_Raster
Definition:
PXL_Raster.h:35
IMG_Plane
Describes the format and layout of a single plane in an image The plane specifies the format and name...
Definition:
IMG_Plane.h:48
IMG_API
#define IMG_API
Definition:
IMG_API.h:10
SYS_Types.h
offset
GLintptr offset
Definition:
glcorearb.h:665
UT_BitArray.h
UT_ValArray.h
IMG_FileFilter.h
IMG_FileFilterGainOffset::className
const char * className() const override
Definition:
IMG_FileFilterGainOffset.h:30
fpreal
fpreal64 fpreal
Definition:
SYS_Types.h:277
PXL_Lookup
Definition:
PXL_Lookup.h:53
PXL_Fill.h
openvdb::OPENVDB_VERSION_NAME::math::pi
constexpr T pi()
Pi constant taken from Boost to match old behaviour.
Definition:
Math.h:119
IMG_FileFilterGainOffset
Definition:
IMG_FileFilterGainOffset.h:25
IMG_FileFilter
Definition:
IMG_FileFilter.h:25
data
Definition:
format.h:895
IMG
IMG_FileFilterGainOffset.h
Generated on Thu Apr 25 2024 03:16:58 for HDK by
1.8.6