Home | History | Annotate | Download | only in core

Lines Matching defs:Config

36     and height, and a format (config), and a pointer to the actual pixels.
44 enum Config {
58 Its config is set to kNo_Config.
87 /** Return the config for the bitmap.
89 Config config() const { return (Config)fConfig; }
90 /** DEPRECATED, use config()
92 Config getConfig() const { return this->config(); }
110 /** Return the number of bytes per pixel based on the config. If the config
155 /** Given a config and a width, this computes the optimal rowBytes value. This is called automatically
158 static int ComputeRowBytes(Config c, int width);
160 /** Return the bytes-per-pixel for the specified config. If the config is
163 static int ComputeBytesPerPixel(Config c);
165 /** Return the shift-per-pixel for the specified config. If the config is
168 static int ComputeShiftPerPixel(Config c) {
172 static Sk64 ComputeSize64(Config, int width, int height);
173 static size_t ComputeSize(Config, int width, int height);
175 /** Set the bitmap's config and dimensions. If rowBytes is 0, then
179 void setConfig(Config, int width, int height, int rowBytes = 0);
193 pixel memory. It will be sized based on the current width/height/config.
201 be allocated. Only used if config == Index8_Config
210 pixel memory. It will be sized based on the current width/height/config.
219 width/height/config. If allocator is NULL, the standard
222 be allocated. Only used if config == Index8_Config.
223 If it is non-null and the config is not Index8, it will
256 it has non-null pixels, and if required by its config, it has a
261 ((this->config() != kIndex8_Config && this->config() != kRLE_Index8_Config) ||
284 for the bitmap's config. If the config is kRGB_565_Config, then the alpha value is ignored.
285 If the config is kA8_Config, then the r,g,b parameters are ignored.
289 for the bitmap's config. If the config is kRGB_565_Config, then the alpha value is presumed
290 to be 0xFF. If the config is kA8_Config, then the r,g,b parameters are ignored and the
297 for the bitmap's config. If the config is kRGB_565_Config, then the color's alpha value is presumed
298 to be 0xFF. If the config is kA8_Config, then only the color's alpha value is used.
319 uses an unsupported config for scrolling (only kA8,
358 pixel memory, and just point into a subset of it. However, if the config
361 dimensions is empty, or if there is an unsupported config, false will be
370 config.
373 alpha, and the requested config does not support alpha).
375 @param c The desired config for dst
381 bool copyTo(SkBitmap* dst, Config c, Allocator* allocator = NULL) const;
383 /** Returns true if this bitmap can be deep copied into the requested config
386 bool canCopyTo(Config newConfig) const;
413 config. Return true on success, where success means either setPixels
415 returns. If the config requires a colortable, it also must be
473 uint8_t fBytesPerPixel; // based on config