// tdf#129845 as indicator for no need to buffer trivial data, stay at and // return zero. As border, use 450 bytes. For polygons, this means to buffer // starting with ca. 50 points (GDIPLUS uses 9 bytes per coordinate). For // Bitmap data this means to more or less always buffer (as it was before). // For the future, a more sophisticated differentiation may be added if(nBytes > 450)
{ // HoldCyclesInSeconds const sal_uInt32 nSeconds = 60;
// default is Seconds (minimal is one)
sal_uInt32 nResult(0 == nSeconds ? 1 : nSeconds);
if(0 != nBytes)
{ // use sqrt to get some curved shape. With a default of 60s we get // a single second at 3600 byte. To get close to 10mb, multiply by // a corresponding scaling factor constdouble fScaleToMB(3600.0 / (1024.0 * 1024.0 * 10.0));
// also use a multiplier to move the start point higher constdouble fMultiplierSeconds(10.0);
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.