HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups 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 
19 {
29 };
30 
31 // This class only contains static methods.
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
#define PXL_API
Definition: PXL_API.h:10
GLsizeiptr size
Definition: glcorearb.h:663
PXL_LumFunction
Definition: PXL_LumFuncs.h:18
PXL_DataFormat
Definition: PXL_Common.h:19
GLint GLint GLsizei GLint GLenum format
Definition: glcorearb.h:107
GLenum func
Definition: glcorearb.h:782