Home | History | Annotate | Download | only in drm_hwcomposer

Lines Matching full:crtc

80       ALOGE("Failed to get crtc %d", res->crtcs[i]);
85 std::unique_ptr<DrmCrtc> crtc(new DrmCrtc(this, c, i));
88 ret = crtc->Init();
90 ALOGE("Failed to initialize crtc %d", res->crtcs[i]);
93 crtcs_.emplace_back(std::move(crtc));
106 for (auto &crtc : crtcs_) {
107 if ((1 << crtc->pipe()) & e->possible_crtcs)
108 possible_crtcs.push_back(crtc.get());
110 if (crtc->id() == e->crtc_id)
111 current_crtc = crtc.get();
228 for (auto &crtc : crtcs_) {
229 if (crtc->display() == display)
230 return crtc.get();
248 /* First try to use the currently-bound crtc */
249 DrmCrtc *crtc = enc->crtc();
250 if (crtc && crtc->can_bind(display)) {
251 crtc->set_display(display);
255 /* Try to find a possible crtc which will work */
256 for (DrmCrtc *crtc : enc->possible_crtcs()) {
258 if (crtc == enc->crtc())
261 if (crtc->can_bind(display)) {
262 enc->set_crtc(crtc);
263 crtc->set_display(display);
295 ALOGE("Could not find a suitable encoder/crtc for display %d",
412 int DrmResources::GetCrtcProperty(const DrmCrtc &crtc, const char *prop_name,
414 return GetProperty(crtc.id(), DRM_MODE_OBJECT_CRTC, prop_name, property);