Home | History | Annotate | Download | only in display

Lines Matching defs:ctm

462           // CTM needs to be calculated if aspect preserving scaling is used.
463 // Otherwise, assume it is full screen, and use identity CTM.
506 CoordinateTransformation* ctm = &(output->transform);
507 ctm->x_scale = static_cast<float>(mode_sizes[i].first) / width;
508 ctm->x_offset = static_cast<float>(output->x) / width;
509 ctm->y_scale = static_cast<float>(mode_sizes[i].second) / height;
510 ctm->y_offset = static_cast<float>(output->y) / height;
580 CoordinateTransformation ctm; // Default to identity
587 return ctm;
591 return ctm;
599 ctm.x_scale = 1.0;
600 ctm.x_offset = 0.0;
601 ctm.y_scale = mirror_mode_ar / native_mode_ar;
602 ctm.y_offset = (native_mode_ar / mirror_mode_ar - 1.0) * 0.5;
603 return ctm;
606 ctm.y_scale = 1.0;
607 ctm.y_offset = 0.0;
608 ctm.x_scale = native_mode_ar / mirror_mode_ar;
609 ctm.x_offset = (mirror_mode_ar / native_mode_ar - 1.0) * 0.5;
610 return ctm;
613 return ctm; // Same aspect ratio - return identity