Home | History | Annotate | Download | only in core

Lines Matching full:width

180 int SkBitmap::ComputeRowBytes(Config c, int width) {
181 if (width < 0) {
193 rowBytes.set(width);
199 rowBytes.set(width);
203 rowBytes.set(width);
207 rowBytes.set(width);
217 Sk64 SkBitmap::ComputeSize64(Config c, int width, int height) {
219 size.setMul(SkBitmap::ComputeRowBytes(c, width), height);
223 size_t SkBitmap::ComputeSize(Config c, int width, int height) {
224 Sk64 size = SkBitmap::ComputeSize64(c, width, height);
228 void SkBitmap::setConfig(Config c, int width, int height, int rowBytes) {
231 if ((width | height | rowBytes) < 0) {
236 rowBytes = SkBitmap::ComputeRowBytes(c, width);
243 fWidth = width;
495 SkASSERT((unsigned)x < (unsigned)this->width());
547 const int width = fWidth;
560 const int count = (width + 7) >> 3;
572 memset(p, a, width);
589 sk_memset16(p, v, width);
599 width);
615 SkASSERT((unsigned)x < (unsigned)bm.width());
649 srcRect.set(0, 0, this->width(), this->height());
663 bm.setConfig(kIndex8_Config, r.width(), r.height());
671 const int width = bm.width();
675 SkPackBits::Unpack8(dst, r.fLeft, width, rle->packedAtY(y));
688 dst.setConfig(this->config(), r.width(), r.height(), this->rowBytes());
751 tmp.setConfig(dstConfig, this->width(), this->height());
776 size_t bytesToCopy = tmp.width() * tmp.bytesPerPixel();
814 if (x < src.width() - 1) {
824 if (x < src.width() - 1) {
852 if (x < src.width() - 1) {
862 if (x < src.width() - 1) {
887 if (x < src.width() - 1) {
897 if (x < src.width() - 1) {
942 int width = this->width();
945 width >>= 1;
947 if (0 == width || 0 == height) {
950 size += ComputeRowBytes(config, width) * height;
973 int width = this->width();
979 width >>= 1;
981 rowBytes = ComputeRowBytes(config, width);
984 level[i].fWidth = width;
988 dstBM.setConfig(config, width, height, rowBytes);
992 for (int x = 0; x < width; x++) {
1050 SkASSERT(alphaRowBytes >= src.width());
1053 int w = src.width();
1123 srcM.fBounds.set(0, 0, this->width(), this->height());
1124 srcM.fRowBytes = SkAlign4(this->width());
1136 dstM.fRowBytes = SkAlign4(dstM.fBounds.width());
1139 dst->setConfig(SkBitmap::kA8_Config, this->width(), this->height(),
1158 dst->setConfig(SkBitmap::kA8_Config, dstM.fBounds.width(),
1261 int width = buffer.readInt();
1266 this->setConfig((Config)config, width, height, rowBytes);
1311 SkBitmap::RLEPixels::RLEPixels(int width, int height) {