Lines Matching defs:Config
32 and height, and a format (config), and a pointer to the actual pixels.
43 enum Config {
67 Its config is set to kNo_Config.
96 /** Return the config for the bitmap.
98 Config config() const { return (Config)fConfig; }
99 /** DEPRECATED, use config()
101 Config getConfig() const { return this->config(); }
119 /** Return the number of bytes per pixel based on the config. If the config
201 /** Given a config and a width, this computes the optimal rowBytes value. This is called automatically
204 static int ComputeRowBytes(Config c, int width);
206 /** Return the bytes-per-pixel for the specified config. If the config is
209 static int ComputeBytesPerPixel(Config c);
211 /** Return the shift-per-pixel for the specified config. If the config is
214 static int ComputeShiftPerPixel(Config c) {
218 static Sk64 ComputeSize64(Config, int width, int height);
219 static size_t ComputeSize(Config, int width, int height);
221 /** Set the bitmap's config and dimensions. If rowBytes is 0, then
225 void setConfig(Config, int width, int height, int rowBytes = 0);
261 pixel memory. It will be sized based on the current width/height/config.
269 be allocated. Only used if config == Index8_Config
278 pixel memory. It will be sized based on the current width/height/config.
287 width/height/config. If allocator is NULL, the standard
290 be allocated. Only used if config == Index8_Config.
291 If it is non-null and the config is not Index8, it will
332 it has non-null pixels, and if required by its config, it has a
337 ((this->config() != kIndex8_Config &&
338 this->config() != kRLE_Index8_Config) ||
365 for the bitmap's config. If the config is kRGB_565_Config, then the alpha value is ignored.
366 If the config is kA8_Config, then the r,g,b parameters are ignored.
370 for the bitmap's config. If the config is kRGB_565_Config, then the alpha value is presumed
371 to be 0xFF. If the config is kA8_Config, then the r,g,b parameters are ignored and the
378 for the bitmap's config. If the config is kRGB_565_Config, then the color's alpha value is presumed
379 to be 0xFF. If the config is kA8_Config, then only the color's alpha value is used.
400 uses an unsupported config for scrolling (only kA8,
430 * and that the config is 32-bit, however none of these checks are performed
437 * and that the config is 16-bit, however none of these checks are performed
444 * and that the config is 8-bit, however none of these checks are performed
452 * and that the config is 1-bit, however none of these checks are performed
460 * that the config is kIndex8, and that the colortable is allocated,
466 pixel memory, and just point into a subset of it. However, if the config
469 dimensions is empty, or if there is an unsupported config, false will be
478 /** Makes a deep copy of this bitmap, respecting the requested config,
482 * alpha, and the requested config does not support alpha).
484 * @param c The desired config for dst
490 bool copyTo(SkBitmap* dst, Config c, Allocator* allocator = NULL) const;
492 /** Makes a deep copy of this bitmap, respecting the requested config, and
499 bool deepCopyTo(SkBitmap* dst, Config c) const;
501 /** Returns true if this bitmap can be deep copied into the requested config
504 bool canCopyTo(Config newConfig) const;
549 config. Return true on success, where success means either setPixels
551 returns. If the config requires a colortable, it also must be
615 uint8_t fBytesPerPixel; // based on config
619 static Sk64 ComputeSafeSize64(Config config,
623 static size_t ComputeSafeSize(Config config,