summaryrefslogtreecommitdiffstats
path: root/ue2/imgsynth2/cpixelformat_bgr24.h
diff options
context:
space:
mode:
authormanuel <manuel@nc8430.lan>2009-05-01 14:54:45 +0200
committermanuel <manuel@nc8430.lan>2009-05-01 14:54:45 +0200
commitb22395ec4de60326eb629df882b4b8781dbca15c (patch)
treeb04e7a01d3e50c7d366059517fae249381c7540c /ue2/imgsynth2/cpixelformat_bgr24.h
parentcfd4f77988cf12106e22e52fba6c1b5672a06162 (diff)
downloadooprog-b22395ec4de60326eb629df882b4b8781dbca15c.tar.gz
ooprog-b22395ec4de60326eb629df882b4b8781dbca15c.tar.bz2
ooprog-b22395ec4de60326eb629df882b4b8781dbca15c.zip
- removed runtime generated output files
- implemented brightness() - implemented invert() - implemented getPixel in CPixelFormat_BGR24 and CPixelFormat_BGR555
Diffstat (limited to 'ue2/imgsynth2/cpixelformat_bgr24.h')
-rw-r--r--ue2/imgsynth2/cpixelformat_bgr24.h33
1 files changed, 25 insertions, 8 deletions
diff --git a/ue2/imgsynth2/cpixelformat_bgr24.h b/ue2/imgsynth2/cpixelformat_bgr24.h
index 73f22c1..242eadf 100644
--- a/ue2/imgsynth2/cpixelformat_bgr24.h
+++ b/ue2/imgsynth2/cpixelformat_bgr24.h
@@ -45,13 +45,23 @@ class CPixelFormat_BGR24 : public CPixelFormat
45 ~CPixelFormat_BGR24() 45 ~CPixelFormat_BGR24()
46 {} 46 {}
47 47
48 /* TODO */ 48 /**
49 void getPixel(uint32_t *pixel, uint32_t x, uint32_t y); 49 * @method getPixel
50 * @brief Get pixel at coordinates x, y
51 * @param pixel reference to pixel data
52 * @param x x-coordinate
53 * @param y y-coordinate
54 * @return -
55 * @globalvars none
56 * @exception PixelFormatError
57 * @conditions none
58 */
59 void getPixel(RGBPIXEL& pixel, uint32_t x, uint32_t y);
50 60
51 /** 61 /**
52 * @method setPixel 62 * @method setPixel
53 * @brief Modifies pixel at coordinates x, y 63 * @brief Modifies pixel at coordinates x, y
54 * @param pixel pointer to new pixel data 64 * @param pixel reference to new pixel data
55 * @param x x-coordinate 65 * @param x x-coordinate
56 * @param y y-coordinate 66 * @param y y-coordinate
57 * @return - 67 * @return -
@@ -59,7 +69,7 @@ class CPixelFormat_BGR24 : public CPixelFormat
59 * @exception PixelFormatError 69 * @exception PixelFormatError
60 * @conditions none 70 * @conditions none
61 */ 71 */
62 void setPixel(const uint32_t *pixel, uint32_t x, uint32_t y); 72 void setPixel(const RGBPIXEL& pixel, uint32_t x, uint32_t y);
63 73
64 /** 74 /**
65 * @method getBitCount 75 * @method getBitCount
@@ -75,12 +85,19 @@ class CPixelFormat_BGR24 : public CPixelFormat
75 return 24; 85 return 24;
76 } 86 }
77 87
78 /* 88 /**
79 * TODO 89 * @method getMaxColor
90 * @brief Get maximum values for RGB pixel
91 * @param pixel reference to pixel struct
92 * @return -
93 * @globalvars none
94 * @exception none
95 * @conditions none
80 */ 96 */
81 void getMaxColor(unsigned int *red, unsigned int *green, unsigned int *blue) 97 void getMaxColor(RGBPIXEL& pixel)
82 { 98 {
83 *red = *green = *blue = 255; /* 2^8 - 1 */ 99 /* value = 2^8 - 1 */
100 pixel.red = pixel.green = pixel.blue = 255;
84 } 101 }
85}; 102};
86 103