]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android/external-libkmsxx.git/blob - kms++/src/videomode.cpp
30d47f8d2ba82d07cfa1487a9a21de813f8871aa
[android/external-libkmsxx.git] / kms++ / src / videomode.cpp
1 #include <xf86drm.h>
2 #include <xf86drmMode.h>
4 #include <kms++/kms++.h>
5 #include "helpers.h"
7 using namespace std;
9 namespace kms
10 {
12 unique_ptr<Blob> Videomode::to_blob(Card& card) const
13 {
14         drmModeModeInfo drm_mode = video_mode_to_drm_mode(*this);
16         return unique_ptr<Blob>(new Blob(card, &drm_mode, sizeof(drm_mode)));
17 }
19 }