Lines Matching defs:rect

300             Rectangle rect = parseRect(rectDesc);
303 rectangle.push_back(rect);
369 Rectangle rect;
383 rect.format = format->format;
386 rect.displayFrame = hwcTestParseHwcRect(in, error);
395 rect.sourceDim = HwcTestDim(rect.displayFrame.right
396 - rect.displayFrame.left,
397 rect.displayFrame.bottom
398 - rect.displayFrame.top);
399 rect.sourceCrop.left = 0;
400 rect.sourceCrop.top = 0;
401 rect.sourceCrop.right = rect.sourceDim.width();
402 rect.sourceCrop.bottom = rect.sourceDim.height();
423 rect.transform = 0;
425 rect.transform = HWC_TRANSFORM_FLIP_H;
427 rect.transform = HWC_TRANSFORM_FLIP_V;
429 rect.transform = HWC_TRANSFORM_ROT_90;
431 rect.transform = HWC_TRANSFORM_ROT_180;
433 rect.transform = HWC_TRANSFORM_ROT_270;
444 rect.blend = HWC_BLENDING_NONE;
446 rect.blend = HWC_BLENDING_PREMULT;
448 rect.blend = HWC_BLENDING_COVERAGE;
455 rect.color = hwcTestParseColor(in, error);
461 in >> rect.alpha;
468 rect.sourceDim = hwcTestParseDim(in, error);
475 rect.sourceCrop = hwcTestParseHwcRect(in, error);
489 if (((uint32_t) rect.sourceCrop.left >= rect.sourceDim.width())
490 || ((uint32_t) rect.sourceCrop.right > rect.sourceDim.width())
491 || ((uint32_t) rect.sourceCrop.top >= rect.sourceDim.height())
492 || ((uint32_t) rect.sourceCrop.bottom > rect.sourceDim.height())) {
496 if ((rect.displayFrame.left >= width)
497 || (rect.displayFrame.right > width)
498 || (rect.displayFrame.top >= height)
499 || (rect.displayFrame.bottom > height)) {
503 if ((rect.alpha < 0.0) || (rect.alpha > 1.0)) {
509 rect.texture = new GraphicBuffer(rect.sourceDim.width(),
510 rect.sourceDim.height(),
511 rect.format, texUsage);
512 if ((rv = rect.texture->initCheck()) != NO_ERROR) {
519 hwcTestFillColor(rect.texture.get(), rect.color, rect.alpha);
523 rect.texture.get(), rect.texture->handle, format->desc,
524 rect.sourceDim.width(), rect.sourceDim.height(),
525 string(rect.color).c_str(), rect.alpha);
528 return rect;