Lines Matching refs:rect
297 Rectangle rect = parseRect(rectDesc); in main() local
300 rectangle.push_back(rect); in main()
368 Rectangle rect; in parseRect() local
381 rect.format = format->format; in parseRect()
384 rect.displayFrame = hwcTestParseHwcRect(in, error); in parseRect()
393 rect.sourceDim = HwcTestDim(rect.displayFrame.right in parseRect()
394 - rect.displayFrame.left, in parseRect()
395 rect.displayFrame.bottom in parseRect()
396 - rect.displayFrame.top); in parseRect()
397 rect.sourceCrop.left = 0; in parseRect()
398 rect.sourceCrop.top = 0; in parseRect()
399 rect.sourceCrop.right = rect.sourceDim.width(); in parseRect()
400 rect.sourceCrop.bottom = rect.sourceDim.height(); in parseRect()
421 rect.transform = 0; in parseRect()
423 rect.transform = HWC_TRANSFORM_FLIP_H; in parseRect()
425 rect.transform = HWC_TRANSFORM_FLIP_V; in parseRect()
427 rect.transform = HWC_TRANSFORM_ROT_90; in parseRect()
429 rect.transform = HWC_TRANSFORM_ROT_180; in parseRect()
431 rect.transform = HWC_TRANSFORM_ROT_270; in parseRect()
442 rect.blend = HWC_BLENDING_NONE; in parseRect()
444 rect.blend = HWC_BLENDING_PREMULT; in parseRect()
446 rect.blend = HWC_BLENDING_COVERAGE; in parseRect()
453 rect.color = hwcTestParseColor(in, error); in parseRect()
459 in >> rect.alpha; in parseRect()
466 rect.sourceDim = hwcTestParseDim(in, error); in parseRect()
473 rect.sourceCrop = hwcTestParseHwcRect(in, error); in parseRect()
487 if (((uint32_t) rect.sourceCrop.left >= rect.sourceDim.width()) in parseRect()
488 || ((uint32_t) rect.sourceCrop.right > rect.sourceDim.width()) in parseRect()
489 || ((uint32_t) rect.sourceCrop.top >= rect.sourceDim.height()) in parseRect()
490 || ((uint32_t) rect.sourceCrop.bottom > rect.sourceDim.height())) { in parseRect()
494 if ((rect.displayFrame.left >= width) in parseRect()
495 || (rect.displayFrame.right > width) in parseRect()
496 || (rect.displayFrame.top >= height) in parseRect()
497 || (rect.displayFrame.bottom > height)) { in parseRect()
501 if ((rect.alpha < 0.0) || (rect.alpha > 1.0)) { in parseRect()
507 rect.texture = new GraphicBuffer(rect.sourceDim.width(), in parseRect()
508 rect.sourceDim.height(), in parseRect()
509 rect.format, texUsage); in parseRect()
510 if ((rv = rect.texture->initCheck()) != NO_ERROR) { in parseRect()
517 hwcTestFillColor(rect.texture.get(), rect.color, rect.alpha); in parseRect()
521 rect.texture.get(), rect.texture->handle, format->desc, in parseRect()
522 rect.sourceDim.width(), rect.sourceDim.height(), in parseRect()
523 string(rect.color).c_str(), rect.alpha); in parseRect()
526 return rect; in parseRect()