Lines Matching refs:mpPixel

44             BasePixelPtr( PIXBYTE* p = NULL ) : mpPixel( p ) {}  in BasePixelPtr()
45 void SetRawPtr( PIXBYTE* pRawPtr ) { mpPixel = pRawPtr; } in SetRawPtr()
46 PIXBYTE* GetRawPtr( void ) const { return mpPixel; } in GetRawPtr()
47 void AddByteOffset( int nByteOffset ) { mpPixel += nByteOffset; } in AddByteOffset()
48 bool operator<( const BasePixelPtr& rCmp ) const { return (mpPixel < rCmp.mpPixel); } in operator <()
51 PIXBYTE* mpPixel; member in BasePixelPtr
75 void operator++() { mpPixel += 3; } in operator ++()
77 PIXBYTE GetRed() const { return mpPixel[0]; } in GetRed()
78 PIXBYTE GetGreen() const { return mpPixel[1]; } in GetGreen()
79 PIXBYTE GetBlue() const { return mpPixel[2]; } in GetBlue()
85 mpPixel[0] = r; in SetColor()
86 mpPixel[1] = g; in SetColor()
87 mpPixel[2] = b; in SetColor()
95 void operator++() { mpPixel += 3; } in operator ++()
97 PIXBYTE GetRed() const { return mpPixel[2]; } in GetRed()
98 PIXBYTE GetGreen() const { return mpPixel[1]; } in GetGreen()
99 PIXBYTE GetBlue() const { return mpPixel[0]; } in GetBlue()
105 mpPixel[0] = b; in SetColor()
106 mpPixel[1] = g; in SetColor()
107 mpPixel[2] = r; in SetColor()
115 void operator++() { mpPixel += 4; } in operator ++()
117 PIXBYTE GetRed() const { return mpPixel[1]; } in GetRed()
118 PIXBYTE GetGreen() const { return mpPixel[2]; } in GetGreen()
119 PIXBYTE GetBlue() const { return mpPixel[3]; } in GetBlue()
120 PIXBYTE GetAlpha() const { return mpPixel[0]; } in GetAlpha()
121 void SetAlpha( PIXBYTE a ) const { mpPixel[0] = a; } in SetAlpha()
125 mpPixel[1] = r; in SetColor()
126 mpPixel[2] = g; in SetColor()
127 mpPixel[3] = b; in SetColor()
135 void operator++() { mpPixel += 4; } in operator ++()
137 PIXBYTE GetRed() const { return mpPixel[3]; } in GetRed()
138 PIXBYTE GetGreen() const { return mpPixel[2]; } in GetGreen()
139 PIXBYTE GetBlue() const { return mpPixel[1]; } in GetBlue()
140 PIXBYTE GetAlpha() const { return mpPixel[0]; } in GetAlpha()
141 void SetAlpha( PIXBYTE a ) const { mpPixel[0] = a; } in SetAlpha()
145 mpPixel[1] = b; in SetColor()
146 mpPixel[2] = g; in SetColor()
147 mpPixel[3] = r; in SetColor()
155 void operator++() { mpPixel += 4; } in operator ++()
157 PIXBYTE GetRed() const { return mpPixel[0]; } in GetRed()
158 PIXBYTE GetGreen() const { return mpPixel[1]; } in GetGreen()
159 PIXBYTE GetBlue() const { return mpPixel[2]; } in GetBlue()
160 PIXBYTE GetAlpha() const { return mpPixel[3]; } in GetAlpha()
161 void SetAlpha( PIXBYTE a ) const{ mpPixel[3] = a; } in SetAlpha()
165 mpPixel[0] = r; in SetColor()
166 mpPixel[1] = g; in SetColor()
167 mpPixel[2] = b; in SetColor()
175 void operator++() { mpPixel += 4; } in operator ++()
177 PIXBYTE GetRed() const { return mpPixel[2]; } in GetRed()
178 PIXBYTE GetGreen() const { return mpPixel[1]; } in GetGreen()
179 PIXBYTE GetBlue() const { return mpPixel[0]; } in GetBlue()
180 PIXBYTE GetAlpha() const { return mpPixel[3]; } in GetAlpha()
181 void SetAlpha( PIXBYTE a ) const{ mpPixel[3] = a; } in SetAlpha()
185 mpPixel[0] = b; in SetColor()
186 mpPixel[1] = g; in SetColor()
187 mpPixel[2] = r; in SetColor()
195 void operator++() { mpPixel += 2; } in operator ++()
198 PIXBYTE GetRed() const { return (mpPixel[0] & 0xF8U); } in GetRed()
199 PIXBYTE GetGreen() const { return (mpPixel[0]<<5U) | ((mpPixel[1]>>3U)&28U); } in GetGreen()
200 PIXBYTE GetBlue() const { return (mpPixel[1]<<3U); } in GetBlue()
206 mpPixel[0] = ((g >> 5U) & 7U) | (r & 0xF8U); in SetColor()
207 mpPixel[1] = ((g & 28U)<< 3U) | (b >> 3U); in SetColor()
215 void operator++() { mpPixel += 2; } in operator ++()
218 PIXBYTE GetRed() const { return (mpPixel[1] & 0xF8U); } in GetRed()
219 PIXBYTE GetGreen() const { return (mpPixel[1]<<5U) | ((mpPixel[0]>>3U)&28U); } in GetGreen()
220 PIXBYTE GetBlue() const { return (mpPixel[0]<<3U); } in GetBlue()
226 mpPixel[0] = ((g & 28U)<< 3U) | (b >> 3U); in SetColor()
227 mpPixel[1] = ((g >> 5U) & 7U) | (r & 0xF8U); in SetColor()
237 void operator++() { mpPixel += 1; } in operator ++()
238 PIXBYTE GetAlpha() const { return mpPixel[0]; } in GetAlpha()
239 void SetAlpha( PIXBYTE a ) const { mpPixel[0] = a; } in SetAlpha()
255 void operator++() { mpPixel += 3; }
259 unsigned nAlpha = mpPixel[0];
260 nAlpha |= mpPixel[1] << 8U;
261 nAlpha |= mpPixel[2] << 16U;
267 mpPixel[0] = nAlpha;
268 mpPixel[1] = nAlpha >> 8U;
269 mpPixel[2] = nAlpha >> 16U;
277 void operator++() { mpPixel += 4; }
282 unsigned nAlpha = *reinterpret_cast<unsigned*>( mpPixel );
284 unsigned nAlpha = mpPixel[0];
285 nAlpha |= mpPixel[1] << 8U;
286 nAlpha |= mpPixel[2] << 16U;
287 nAlpha |= mpPixel[3] << 24U;
295 *reinterpret_cast<unsigned*>( mpPixel ) = nAlpha;
297 mpPixel[0] = nAlpha;
298 mpPixel[1] = nAlpha >> 8U;
299 mpPixel[2] = nAlpha >> 16U;
300 mpPixel[3] = nAlpha >> 24U;