Lines Matching defs:rect

299             Rectangle rect = parseRect(rectDesc);
302 rectangle.push_back(rect);
370 Rectangle rect;
384 rect.format = format->format;
387 rect.displayFrame = hwcTestParseHwcRect(in, error);
396 rect.sourceDim = HwcTestDim(rect.displayFrame.right
397 - rect.displayFrame.left,
398 rect.displayFrame.bottom
399 - rect.displayFrame.top);
400 rect.sourceCrop.left = 0;
401 rect.sourceCrop.top = 0;
402 rect.sourceCrop.right = rect.sourceDim.width();
403 rect.sourceCrop.bottom = rect.sourceDim.height();
424 rect.transform = 0;
426 rect.transform = HWC_TRANSFORM_FLIP_H;
428 rect.transform = HWC_TRANSFORM_FLIP_V;
430 rect.transform = HWC_TRANSFORM_ROT_90;
432 rect.transform = HWC_TRANSFORM_ROT_180;
434 rect.transform = HWC_TRANSFORM_ROT_270;
445 rect.blend = HWC_BLENDING_NONE;
447 rect.blend = HWC_BLENDING_PREMULT;
449 rect.blend = HWC_BLENDING_COVERAGE;
456 rect.color = hwcTestParseColor(in, error);
462 in >> rect.alpha;
469 rect.sourceDim = hwcTestParseDim(in, error);
476 rect.sourceCrop = hwcTestParseHwcRect(in, error);
490 if (((uint32_t) rect.sourceCrop.left >= rect.sourceDim.width())
491 || ((uint32_t) rect.sourceCrop.right > rect.sourceDim.width())
492 || ((uint32_t) rect.sourceCrop.top >= rect.sourceDim.height())
493 || ((uint32_t) rect.sourceCrop.bottom > rect.sourceDim.height())) {
497 if ((rect.displayFrame.left >= width)
498 || (rect.displayFrame.right > width)
499 || (rect.displayFrame.top >= height)
500 || (rect.displayFrame.bottom > height)) {
504 if ((rect.alpha < 0.0) || (rect.alpha > 1.0)) {
510 rect.texture = new GraphicBuffer(rect.sourceDim.width(),
511 rect.sourceDim.height(),
512 rect.format, texUsage);
513 if ((rv = rect.texture->initCheck()) != NO_ERROR) {
520 hwcTestFillColor(rect.texture.get(), rect.color, rect.alpha);
524 rect.texture.get(), rect.texture->handle, format->desc,
525 rect.sourceDim.width(), rect.sourceDim.height(),
526 string(rect.color).c_str(), rect.alpha);
529 return rect;