Closed jotego closed 3 months ago
Sure,
Its in main but
int COLORBURST_START = (int)(3.7f * (CLK_VIDEO / CLK_REF));
int COLORBURST_END = (int)(9.0f * (CLK_VIDEO / CLK_REF)) + COLORBURST_START;
int COLORBURST_RANGE = (COLORBURST_START << 10) | COLORBURST_END;
Where Start is the number of samples of the ref carrier a number i was comfortable with which shifts the start of the colorburst signal from the stop of the HSYNC, The next is just the number of cycles of the ref clock 9 (Which is the NTSC Standard) Range just combines both of them so when to start and stop the colorburst is pulled into the output module.
Simply Start position of the colorburst + End position of the colorburst (9 cycles)
Thank you!
Is CLK_REF the subcarrier frequency?
Yep! It varies between NTSC and PAL / PAL60
double CLK_REF = (pal || (cfg.ntsc_mode == 1)) ? 4.43361875f : (cfg.ntsc_mode == 2) ? 3.575611f : 3.579545f;
Could you detail in the documentation how to calculate the COLORBURST_RANGE?