1 // license:BSD-3-Clause 2 // copyright-holders:Dirk Best 3 /*************************************************************************** 4 5 TEA1002 6 7 PAL colour encoder and video summer 8 9 _____ _____ 10 INV 1 |* \_/ | 18 CBLNK 11 R 2 | | 17 3,54 MHz 12 G 3 | | 16 GND 13 B 4 | | 15 CBF 14 _CSYNC 5 | TEA1002 | 14 8,86 MHz 15 lum. delay line 6 | | 13 8,86 MHz 16 lum. delay line 7 | | 12 PAL switch 17 comp. video to mod. 8 | | 11 chroma band limiting 18 d.c. adj. / colour bar 9 |_____________| 10 Vp 19 20 ***************************************************************************/ 21 22 #ifndef MAME_VIDEO_TEA1002_H 23 #define MAME_VIDEO_TEA1002_H 24 25 #pragma once 26 27 28 //************************************************************************** 29 // TYPE DEFINITIONS 30 //************************************************************************** 31 32 // ======================> tea1002_device 33 34 class tea1002_device : public device_t 35 { 36 public: 37 // construction/destruction 38 tea1002_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); 39 40 rgb_t color(int index); 41 42 protected: 43 // device_t overrides 44 virtual void device_start() override; 45 46 private: 47 static const int m_tint = -6; // what is this based on? 48 static const float m_luminance[16]; 49 static const int m_phase[16]; 50 static const int m_amplitute[16]; 51 }; 52 53 // device type definition 54 DECLARE_DEVICE_TYPE(TEA1002, tea1002_device) 55 56 #endif // MAME_VIDEO_TEA1002_H 57