Lines Matching refs:pixel
191 // Returns the pixel data for the current X coordinate in a uint32_t.
195 // the pixel data will actually be set.
207 uint32_t pixel;
208 memcpy(&pixel, &m_data->data()[m_decodedOffset + offset], 3);
210 pixel = ((pixel & 0xff00) << 8) | ((pixel & 0xff0000) >> 8) | ((pixel & 0xff000000) >> 24);
212 return pixel;
225 // in the given pixel data.
226 inline unsigned getComponent(uint32_t pixel, int component) const
228 return ((pixel & m_bitMasks[component]) >> m_bitShiftsRight[component]) << m_bitShiftsLeft[component];
231 inline unsigned getAlpha(uint32_t pixel) const
234 return m_bitMasks[3] ? getComponent(pixel, 3) : 0xff;
237 // Sets the current pixel to the color given by |colorIndex|. This also
238 // increments the relevant local variables to move the current pixel
258 // pixel right to |endCoord|.
277 // The destination for the pixel data.
324 // the 32 bits of pixel data, and left shift to scale the color values