2016-03-09 03:40:23 +00:00
|
|
|
//
|
|
|
|
// CRTTypes.hpp
|
|
|
|
// Clock Signal
|
|
|
|
//
|
|
|
|
// Created by Thomas Harte on 08/03/2016.
|
|
|
|
// Copyright © 2016 Thomas Harte. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef CRTTypes_h
|
|
|
|
#define CRTTypes_h
|
|
|
|
|
|
|
|
namespace Outputs {
|
|
|
|
namespace CRT {
|
|
|
|
|
|
|
|
struct Rect {
|
|
|
|
struct {
|
|
|
|
float x, y;
|
|
|
|
} origin;
|
|
|
|
|
|
|
|
struct {
|
|
|
|
float width, height;
|
|
|
|
} size;
|
|
|
|
|
|
|
|
Rect() {}
|
|
|
|
Rect(float x, float y, float width, float height) :
|
2017-11-11 00:14:19 +00:00
|
|
|
origin({x, y}), size({width, height}) {}
|
2016-03-09 03:40:23 +00:00
|
|
|
};
|
|
|
|
|
2017-11-12 22:17:27 +00:00
|
|
|
enum class DisplayType {
|
2016-03-09 03:40:23 +00:00
|
|
|
PAL50,
|
|
|
|
NTSC60
|
|
|
|
};
|
|
|
|
|
2017-11-12 22:17:27 +00:00
|
|
|
enum class ColourSpace {
|
2016-03-09 03:40:23 +00:00
|
|
|
YIQ,
|
|
|
|
YUV
|
|
|
|
};
|
|
|
|
|
2018-03-30 14:25:41 +00:00
|
|
|
enum class VideoSignal {
|
|
|
|
RGB,
|
|
|
|
SVideo,
|
|
|
|
Composite
|
2016-03-09 03:40:23 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* CRTTypes_h */
|