diff options
Diffstat (limited to 'ue2/imgsynth2/cpixelformat_bgr24.h')
| -rw-r--r-- | ue2/imgsynth2/cpixelformat_bgr24.h | 42 |
1 files changed, 23 insertions, 19 deletions
diff --git a/ue2/imgsynth2/cpixelformat_bgr24.h b/ue2/imgsynth2/cpixelformat_bgr24.h index da1592b..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 |
| @@ -74,26 +84,20 @@ class CPixelFormat_BGR24 : public CPixelFormat | |||
| 74 | { | 84 | { |
| 75 | return 24; | 85 | return 24; |
| 76 | } | 86 | } |
| 77 | 87 | ||
| 78 | /** | 88 | /** |
| 79 | * @method getColorMode | 89 | * @method getMaxColor |
| 80 | * @brief returns the color mode supported by this class | 90 | * @brief Get maximum values for RGB pixel |
| 81 | * @param - | 91 | * @param pixel reference to pixel struct |
| 82 | * @return color mode supported by this class | 92 | * @return - |
| 83 | * @globalvars none | 93 | * @globalvars none |
| 84 | * @exception none | 94 | * @exception none |
| 85 | * @conditions none | 95 | * @conditions none |
| 86 | */ | 96 | */ |
| 87 | std::string getColorMode() | 97 | void getMaxColor(RGBPIXEL& pixel) |
| 88 | { | ||
| 89 | return "c"; | ||
| 90 | } | ||
| 91 | /* | ||
| 92 | * TODO | ||
| 93 | */ | ||
| 94 | void getMaxColor(unsigned int *red, unsigned int *green, unsigned int *blue) | ||
| 95 | { | 98 | { |
| 96 | *red = *green = *blue = 255; /* 2^8 - 1 */ | 99 | /* value = 2^8 - 1 */ |
| 100 | pixel.red = pixel.green = pixel.blue = 255; | ||
| 97 | } | 101 | } |
| 98 | }; | 102 | }; |
| 99 | 103 | ||
