29#if defined(SK_BUILD_FOR_MAC) || defined(SK_BUILD_FOR_IOS)
31#elif defined(SK_BUILD_FOR_WIN)
62#if defined(SK_BUILD_FOR_MAC) || defined(SK_BUILD_FOR_IOS)
64#elif defined(SK_BUILD_FOR_WIN)
130 for (
const auto& rec : recs) {
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
static bool gMyFactoryWasCalled
static void test_imagegenerator_factory(skiatest::Reporter *reporter)
static std::unique_ptr< SkImageGenerator > my_factory(sk_sp< SkData >)
static sk_sp< SkPicture > make_picture()
DEF_TEST(ImageGenerator, reporter)
static float prev(float f)
@ kPremul_SkAlphaType
pixel components are premultiplied by alpha
@ kBGRA_8888_SkColorType
pixel with 8 bits for blue, green, red, alpha; in 32-bit word
@ kRGBA_F16_SkColorType
pixel with half floats for red, green, blue, alpha;
@ kRGBA_8888_SkColorType
pixel with 8 bits for red, green, blue, alpha; in 32-bit word
@ kRGBA_F32_SkColorType
pixel using C float for red, green, blue, alpha; in 128-bit word
@ kRGBA_1010102_SkColorType
10 bits for red, green, blue; 2 bits for alpha; in 32-bit word
constexpr SkColor SK_ColorRED
SK_API int SkColorTypeBytesPerPixel(SkColorType ct)
@ kJPEG_Full_SkYUVColorSpace
describes full range
#define REPORTER_ASSERT(r, cond,...)
void drawColor(SkColor color, SkBlendMode mode=SkBlendMode::kSrcOver)
static sk_sp< SkColorSpace > MakeSRGB()
static sk_sp< SkData > MakeWithCString(const char cstr[])
static ImageGeneratorFromEncodedDataFactory SetImageGeneratorFromEncodedDataFactory(ImageGeneratorFromEncodedDataFactory)
bool getYUVAPlanes(const SkYUVAPixmaps &yuvaPixmaps)
bool queryYUVAInfo(const SkYUVAPixmapInfo::SupportedDataTypes &supportedDataTypes, SkYUVAPixmapInfo *yuvaPixmapInfo) const
SkCanvas * beginRecording(const SkRect &bounds, sk_sp< SkBBoxHierarchy > bbh)
sk_sp< SkPicture > finishRecordingAsPicture()
@ kY_UV
Plane 0: Y, Plane 1: UV.
@ k420
1 set of UV values for each 2x2 block of Y values.
static constexpr SupportedDataTypes All()
@ kUnorm8
8 bit unsigned normalized
static SkYUVAPixmaps Allocate(const SkYUVAPixmapInfo &yuvaPixmapInfo)
std::unique_ptr< SkImageGenerator > MakeFromPicture(const SkISize &, sk_sp< SkPicture >, const SkMatrix *, const SkPaint *, SkImages::BitDepth, sk_sp< SkColorSpace >, SkSurfaceProps props)
std::unique_ptr< SkImageGenerator > MakeFromEncoded(sk_sp< SkData > data, std::optional< SkAlphaType > at)
@ kU8
uses 8-bit unsigned int per color component
sk_sp< const SkPicture > picture
static SkImageInfo Make(int width, int height, SkColorType ct, SkAlphaType at)
std::shared_ptr< const fml::Mapping > data