Lines Matching refs:width
62 static bool webp_parse_header(SkStream* stream, int* width, int* height) {
69 if (WebPGetInfo(buffer, WEBP_VP8_HEADER_SIZE, width, height) == 0) {
76 size.setMul(*width, *height);
95 virtual bool onBuildTileIndex(SkStream *stream, int *width, int *height);
100 bool setDecodeConfig(SkBitmap* decodedBitmap, int width, int height);
133 SkDebugf("libwebp error %s [%d %d]", msg, bm.width(), bm.height());
224 config.options.crop_width = region.width();
227 if (region.width() != decodedBitmap->width() ||
230 config.options.scaled_width = decodedBitmap->width();
255 if (origWidth != decodedBitmap->width() ||
258 config.options.scaled_width = decodedBitmap->width();
266 int width, int height) {
282 if (!this->chooseFromOneChoice(config, width, height)) {
286 decodedBitmap->setConfig(config, width, height, 0);
295 int *width, int *height) {
302 *width = origWidth;
314 const int width = region.width();
318 SkScaledBitmapSampler sampler(width, height, sampleSize);
382 typedef void (*ScanlineImporter)(const uint8_t* in, uint8_t* out, int width,
385 static void ARGB_8888_To_RGB(const uint8_t* in, uint8_t* rgb, int width,
388 for (int i = 0; i < width; ++i) {
397 static void RGB_565_To_RGB(const uint8_t* in, uint8_t* rgb, int width,
400 for (int i = 0; i < width; ++i) {
409 static void ARGB_4444_To_RGB(const uint8_t* in, uint8_t* rgb, int width,
412 for (int i = 0; i < width; ++i) {
421 static void Index8_To_RGB(const uint8_t* in, uint8_t* rgb, int width,
424 for (int i = 0; i < width; ++i) {
480 pic.width = bm.width();
487 const int rgb_stride = pic.width * 3;
494 pic.width, colors);
512 int width, height;
513 if (!webp_parse_header(stream, &width, &height)) {