Home | History | Annotate | Download | only in dm

Lines Matching full:divisor

141             const uint32_t divisor = 2;
142 if (width < divisor || height < divisor) {
143 return Error::Nonfatal("Divisor is larger than image dimension.");
150 const uint32_t maxBorder = SkTMin(width, height) / (fSampleSize * divisor);
167 for (uint32_t x = 0; x < divisor; x++) {
168 for (uint32_t y = 0; y < divisor; y++) {
170 uint32_t subsetWidth = width / divisor;
171 uint32_t subsetHeight = height / divisor;
176 // divisor does not divide evenly into the image dimensions
177 subsetWidth += (x + 1 == divisor) ? (width % divisor) : 0;
178 subsetHeight += (y + 1 == divisor) ? (height % divisor) : 0;
554 // Arbitrarily choose a divisor.
555 int divisor = 2;
559 if (divisor > W || divisor > H) {
560 return Error::Nonfatal(SkStringPrintf("Cannot codec subset: divisor %d is too big "
561 "for %s with dimensions (%d x %d)", divisor,
566 const int w = SkAlign2(W / divisor);
567 const int h = SkAlign2(H / divisor);
725 const int divisor = 2;
726 if (width < divisor || height < divisor) {
727 return Error::Nonfatal("Divisor is larger than image dimension.");
733 for (int x = 0; x < divisor; x++) {
734 for (int y = 0; y < divisor; y++) {
736 int subsetWidth = width / divisor;
737 int subsetHeight = height / divisor;
742 // divisor does not divide evenly into the image dimensions
743 subsetWidth += (x + 1 == divisor) ? (width % divisor) : 0;
744 subsetHeight += (y + 1 == divisor) ? (height % divisor) : 0;
758 if (x + 1 == divisor && y + 1 == divisor) {