summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ac1b169)
raw | patch | inline | side by side (parent: ac1b169)
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | |
Fri, 3 Jun 2016 14:15:43 +0000 (17:15 +0300) | ||
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | |
Sat, 4 Jun 2016 19:33:54 +0000 (22:33 +0300) |
libkms++/videomode.h | patch | blob | history |
diff --git a/libkms++/videomode.h b/libkms++/videomode.h
index 382c1cd98caa93848c6442c4931c19b9335ca16a..f9abaf9ff0fad00c37a83a2b9eb413b4a87a7998 100644 (file)
--- a/libkms++/videomode.h
+++ b/libkms++/videomode.h
uint32_t type; // DRM_MODE_TYPE_*
std::unique_ptr<Blob> to_blob(Card& card) const;
+
+ uint16_t hfp() const { return hsync_start - hdisplay; }
+ uint16_t hsw() const { return hsync_end - hsync_start; }
+ uint16_t hbp() const { return htotal - hsync_end; }
+
+ uint16_t vfp() const { return vsync_start - vdisplay; }
+ uint16_t vsw() const { return vsync_end - vsync_start; }
+ uint16_t vbp() const { return vtotal - vsync_end; }
};
}