blob: dcfa46f7bb129e6d624d0834959e1ca7baf1a9af (
plain) (
blame)
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
// license:GPL-2.0+
// copyright-holders:Dirk Best
/***************************************************************************
TEA1002
PAL colour encoder and video summer
_____ _____
INV 1 |* \_/ | 18 CBLNK
R 2 | | 17 3,54 MHz
G 3 | | 16 GND
B 4 | | 15 CBF
_CSYNC 5 | TEA1002 | 14 8,86 MHz
lum. delay line 6 | | 13 8,86 MHz
lum. delay line 7 | | 12 PAL switch
comp. video to mod. 8 | | 11 chroma band limiting
d.c. adj. / colour bar 9 |_____________| 10 Vp
***************************************************************************/
#ifndef MAME_VIDEO_TEA1002_H
#define MAME_VIDEO_TEA1002_H
#pragma once
//**************************************************************************
// INTERFACE CONFIGURATION MACROS
//**************************************************************************
#define MCFG_TEA1002_ADD(_tag, _clock) \
MCFG_DEVICE_ADD(_tag, TEA1002, _clock)
//**************************************************************************
// TYPE DEFINITIONS
//**************************************************************************
// ======================> tea1002_device
class tea1002_device : public device_t
{
public:
// construction/destruction
tea1002_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
rgb_t color(int index);
protected:
// device_t overrides
virtual void device_start() override;
private:
static const int m_tint = -6; // what is this based on?
static const float m_luminance[16];
static const int m_phase[16];
static const int m_amplitute[16];
};
// device type definition
extern const device_type TEA1002;
DECLARE_DEVICE_TYPE(TEA1002, tea1002_device)
#endif // MAME_VIDEO_TEA1002_H
|