HDK
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
PXL_LumFuncs.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: PXL_LumFuncs.h
7
*
8
* COMMENTS:
9
* Utility functions used by multiple COPs.
10
*/
11
#ifndef PXL_LUM_FUNCS_H
12
#define PXL_LUM_FUNCS_H
13
14
#include <
SYS/SYS_Types.h
>
15
#include "
PXL_API.h
"
16
#include "
PXL_Common.h
"
17
18
enum
PXL_LumFunction
19
{
20
PXL_MONO_LUM
=0,
21
PXL_MONO_NTSC
,
22
PXL_MONO_MAX
,
23
PXL_MONO_MIN
,
24
PXL_MONO_AVERAGE
,
25
PXL_MONO_RED
,
26
PXL_MONO_GREEN
,
27
PXL_MONO_BLUE
,
28
PXL_MONO_COMP4
29
};
30
31
// This class only contains static methods.
32
class
PXL_API
PXL_LumFuncs
33
{
34
public
:
35
// Generic luma function.
36
static
void
convertToLuma(
PXL_DataFormat
format
,
37
void
*lum,
PXL_LumFunction
func
,
38
const
void
*l1,
const
void
*l2,
39
const
void
*l3,
const
void
*l4,
int
size
,
40
int
sinc = 1);
41
42
// Integer luma functions.
43
static
void
convertToLuma(
unsigned
char
*lum,
PXL_LumFunction
func,
44
const
unsigned
char
*l1,
45
const
unsigned
char
*l2,
46
const
unsigned
char
*l3,
47
const
unsigned
char
*l4,
48
int
size,
int
sinc = 1);
49
50
static
void
convertToLuma(
unsigned
short
*lum,
PXL_LumFunction
func,
51
const
unsigned
short
*l1,
52
const
unsigned
short
*l2,
53
const
unsigned
short
*l3,
54
const
unsigned
short
*l4,
55
int
size,
int
sinc = 1);
56
57
static
void
convertToLuma(
unsigned
int
*lum,
PXL_LumFunction
func,
58
const
unsigned
int
*l1,
59
const
unsigned
int
*l2,
60
const
unsigned
int
*l3,
61
const
unsigned
int
*l4,
62
int
size,
int
sinc = 1);
63
64
static
void
convertToLuma(
fpreal16
*lum,
PXL_LumFunction
func,
65
const
fpreal16
*l1,
66
const
fpreal16
*l2,
67
const
fpreal16
*l3,
68
const
fpreal16
*l4,
69
int
size,
int
sinc = 1);
70
71
// Float luma function.
72
static
void
convertToLuma(
float
*lum,
PXL_LumFunction
func,
73
const
float
*l1,
const
float
*l2,
74
const
float
*l3,
const
float
*l4,
int
size,
75
int
sinc = 1,
bool
copy_if_possible =
false
);
76
77
};
78
#endif
fpreal16
Definition:
fpreal16.h:98
PXL_MONO_LUM
Definition:
PXL_LumFuncs.h:20
PXL_MONO_AVERAGE
Definition:
PXL_LumFuncs.h:24
PXL_MONO_BLUE
Definition:
PXL_LumFuncs.h:27
PXL_API
#define PXL_API
Definition:
PXL_API.h:10
size
GLsizeiptr size
Definition:
glcorearb.h:663
PXL_LumFunction
PXL_LumFunction
Definition:
PXL_LumFuncs.h:18
SYS_Types.h
PXL_LumFuncs
Definition:
PXL_LumFuncs.h:32
PXL_MONO_MAX
Definition:
PXL_LumFuncs.h:22
PXL_MONO_RED
Definition:
PXL_LumFuncs.h:25
PXL_MONO_MIN
Definition:
PXL_LumFuncs.h:23
PXL_MONO_COMP4
Definition:
PXL_LumFuncs.h:28
PXL_DataFormat
PXL_DataFormat
Definition:
PXL_Common.h:19
PXL_MONO_NTSC
Definition:
PXL_LumFuncs.h:21
PXL_API.h
format
GLint GLint GLsizei GLint GLenum format
Definition:
glcorearb.h:107
func
GLenum func
Definition:
glcorearb.h:782
PXL_Common.h
PXL_MONO_GREEN
Definition:
PXL_LumFuncs.h:26
PXL
PXL_LumFuncs.h
Generated on Sat Apr 21 2018 03:38:12 for HDK by
1.8.6