22 #ifndef GNASH_IMAGE_ITERATORS_H
23 #define GNASH_IMAGE_ITERATORS_H
25 #include <boost/iterator/iterator_facade.hpp>
56 std::copy(other._it, other._it + 4, _it);
61 std::copy(other._it, other._it + 3, _it);
67 std::copy(other._it, other._it + 3, _it);
82 *(_it + 3) = (pixel & 0xff000000) >> 24;
84 *_it = (pixel & 0x00ff0000) >> 16;
85 *(_it + 1) = (pixel & 0x0000ff00) >> 8;
86 *(_it + 2) = (pixel & 0x000000ff);
94 operator boost::uint32_t()
const {
95 boost::uint32_t ret = 0xff000000;
99 ret = *(_it + 3) << 24;
101 ret |= (*_it << 16 | *(_it + 1) << 8 | *(_it + 2));
121 template<
typename Pixel>
123 pixel_iterator<Pixel>,
125 std::random_access_iterator_tag>
160 const Pixel& dereference()
const {