Lines Matching refs:Plane
96 struct plane {
97 drmModePlane *plane;
110 struct plane *planes;
431 struct plane *plane = &dev->resources->planes[i];
432 drmModePlane *ovr = plane->plane;
449 if (plane->props) {
451 for (j = 0; j < plane->props->count_props; j++)
452 dump_prop(dev, plane->props_info[j],
453 plane->props->props[j],
454 plane->props->prop_values[j]);
507 free_properties(res, plane_res, plane);
509 free_resource(res, plane_res, plane, Plane);
613 get_resource(res, plane_res, plane, Plane);
614 get_properties(res, plane_res, plane, PLANE);
708 uint32_t plane_id; /* the id of plane to use */
881 find_object(dev->resources, plane_res, plane, PLANE);
971 /* Find an unused plane which can be connected to our CRTC. Find the
990 ovr = dev->resources->planes[i].plane;
1007 fprintf(stderr, "no unused plane available for CRTC %u\n",
1012 fprintf(stderr, "testing %dx%d@%s overlay plane %u\n",
1022 /* just use single plane format for now.. */
1044 fprintf(stderr, "failed to enable plane: %s\n",
1370 static int parse_plane(struct plane_arg *plane, const char *p)
1374 plane->plane_id = strtoul(p, &end, 10);
1379 plane->crtc_id = strtoul(p, &end, 10);
1384 plane->w = strtoul(p, &end, 10);
1389 plane->h = strtoul(p, &end, 10);
1392 plane->x = strtol(end, &end, 10);
1395 plane->y = strtol(end, &end, 10);
1397 plane->has_position = true;
1402 plane->scale = strtod(p, &end);
1403 if (plane->scale <= 0.0)
1406 plane->scale = 1.0;
1414 strcpy(plane->format_str, p);
1416 strcpy(plane->format_str, "XR24");
1419 plane->fourcc = util_format_fourcc(plane->format_str);
1420 if (plane->fourcc == 0) {
1421 fprintf(stderr, "unknown format %s\n", plane->format_str);
1450 fprintf(stderr, "\t-P <plane_id>@<crtc_id>:<w>x<h>[+<x>+<y>][*<scale>][@<format>]\tset a plane\n");