summaryrefslogtreecommitdiff
path: root/libkms++/videomode.h
blob: 382c1cd98caa93848c6442c4931c19b9335ca16a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#pragma once

#include <string>
#include <cstdint>
#include <memory>

#include "blob.h"

namespace kms
{

struct Videomode
{
	std::string name;

	uint32_t clock;
	uint16_t hdisplay, hsync_start, hsync_end, htotal, hskew;
	uint16_t vdisplay, vsync_start, vsync_end, vtotal, vscan;

	uint32_t vrefresh;

	uint32_t flags;		// DRM_MODE_FLAG_*
	uint32_t type;		// DRM_MODE_TYPE_*

	std::unique_ptr<Blob> to_blob(Card& card) const;
};

}