/** * Helper class to package and trim the parameters passed to readPixels()
*/ struct SkReadPixelsRec {
SkReadPixelsRec(const SkImageInfo& info, void* pixels, size_t rowBytes, int x, int y)
: fPixels(pixels)
, fRowBytes(rowBytes)
, fInfo(info)
, fX(x)
, fY(y)
{}
SkReadPixelsRec(const SkPixmap& pm, int x, int y)
: fPixels(pm.writable_addr())
, fRowBytes(pm.rowBytes())
, fInfo(pm.info())
, fX(x)
, fY(y)
{}
void* fPixels;
size_t fRowBytes;
SkImageInfo fInfo; int fX; int fY;
/* * On true, may have modified its fields (except fRowBytes) to make it a legal subset * of the specified src width/height. * * On false, leaves self unchanged, but indicates that it does not overlap src, or * is not valid (e.g. bad fInfo) for readPixels().
*/ bool trim(int srcWidth, int srcHeight);
};
#endif
Messung V0.5
¤ Dauer der Verarbeitung: 0.14 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.