Yuv12Image Class Reference

#include <Pt/Gfx/Yuv12Image.h>

YV-12 image. More...

Inherits BasicImage< ModelT, ViewT >.

Public Member Functions

 Yuv12Image (const Size &size, size_t padding=0)
 Constructor.
 
 Yuv12Image (Pt::uint8_t *data, const Size &size, size_t padding=0)
 Construct from external buffer.
 
PixelIterator begin ()
 Returns an iterator to the first pixel.
 
ConstPixelIterator begin () const
 Returns a const iterator to the first pixel.
 
PixelIterator end ()
 Returns an iterator to the end of the pixels.
 
ConstPixelIterator end () const
 Returns a const iterator to the end of the pixels.
 
PixelIterator pixel (Pt::ssize_t x, Pt::ssize_t y)
 Returns an iterator to the pixel at the given position.
 
ConstPixelIterator pixel (Pt::ssize_t x, Pt::ssize_t y) const
 Returns a const iterator to the pixel at the given position.
 
const Sizesize () const
 Returns the size of the image.
 

Detailed Description

If the Y plane has pad bytes after each row, then the U and V planes have half as many pad bytes after their rows. In other words, two U/V rows (including padding) is exactly as long as one Y row (including padding).