Pirate TV for the esp32
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

32 lines
851 B

/**
* @file broadcast_tables.h
* @brief Premodulated waveform lookup tables for NTSC/PAL RF broadcast
*
* These tables contain 1408-bit patterns per color, chosen as an exact harmonic
* of both NTSC chroma (3.579545 MHz) and Channel 3 luma (61.25 MHz).
*
* Original Copyright 2015 <>< Charles Lohr
* ESP32 Port 2024
*/
#ifndef BROADCAST_TABLES_H
#define BROADCAST_TABLES_H
#include <stdint.h>
#define PREMOD_ENTRIES 44
#define PREMOD_ENTRIES_WITH_SPILL 51
#define PREMOD_SIZE 18
// Color level indices for the premodulated table
#define SYNC_LEVEL 17
#define COLORBURST_LEVEL 16
#define BLACK_LEVEL 0
#define GRAY_LEVEL 1
#define WHITE_LEVEL 10
// Premodulated table: 918 entries (51 * 18)
// Each entry is a 32-bit word containing the precomputed RF waveform
extern const uint32_t premodulated_table[918];
#endif // BROADCAST_TABLES_H