29 #ifndef PT_GFX_YUV12FORMAT_H
30 #define PT_GFX_YUV12FORMAT_H
32 #include <Pt/Gfx/Api.h>
33 #include <Pt/Gfx/ImageFormat.h>
39 class PT_GFX_API Yuv12Format :
public ImageFormat
45 virtual void onSetPixel(Pixel& to,
const Pixel& from,
46 CompositionMode mode)
const;
48 virtual void onSetPixel(Pixel& to,
const ConstPixel& from,
49 CompositionMode mode)
const;
51 virtual void onSetPixel(Pixel& pixel,
const Color& c,
52 CompositionMode mode)
const;
54 virtual void onSetPixel(Pixel& to,
const Pixel& from,
55 CompositionMode mode,
Pt::uint8_t blendingAlpha)
const;
57 virtual void onSetPixel(Pixel& to,
const ConstPixel& from,
58 CompositionMode mode,
Pt::uint8_t blendingAlpha)
const;
60 virtual void onSetPixel(Pixel& pixel,
const Color& c,
61 CompositionMode mode,
Pt::uint8_t blendingAlpha)
const;
63 virtual void onSetPixels(Pixel& to,
const Pixel& from,
size_t length,
64 CompositionMode mode)
const;
66 virtual void onSetPixels(Pixel& to,
const ConstPixel& from,
size_t length,
67 CompositionMode mode)
const;
69 virtual void onSetPixels(Pixel& pixel,
const Color& c,
size_t length,
70 CompositionMode mode)
const;
72 virtual Color onGetColor(
const Pixel& pixel)
const;
74 virtual Color onGetColor(
const ConstPixel& pixel)
const;
76 virtual void onCopy(Pixel& dst,
const Pixel& src,
size_t length,
77 CompositionMode mode)
const;
79 virtual void onCopy(Pixel& dst,
const ConstPixel& src,
size_t length,
80 CompositionMode mode)
const;
82 virtual void onCopy(ImageView& to,
const Point& toPos,
83 const ImageView& from,
const Rect& fromRect,
84 CompositionMode mode)
const;
86 virtual std::size_t onImageSize(
const Size& size, Pt::ssize_t padding)
const;
uint_type uint8_t
Unsigned 8-bit integer type.
Definition: Types.h:18