Video timing, calculating blanking

  • Thread starter Thread starter kallisti5
  • Start date Start date
  • Tags Tags
    Video
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 3K views
kallisti5
Messages
1
Reaction score
0
I am writing a video card driver. One timing parameter I have to pass is H/V Blanking interval start/end.

I have all the standard timing information but can't figure out how to get the blanking start / end pixels.Here are my current calculations, I don't think their right however (you can ignore the c code, just posting it for clarity) Horiz:
// Calculate blanking
uint16 frontPorch = displayTiming.h_sync_start - displayTiming.h_display;
uint16 backPorch = displayTiming.h_total - displayTiming.h_sync_end;

uint16 blankStart = frontPorch - OVERSCAN;
uint16 blankEnd = backPorch;

Vert:
frontPorch = displayTiming.v_sync_start - displayTiming.v_display;
backPorch = displayTiming.v_total - displayTiming.v_sync_end;

blankStart = frontPorch - OVERSCAN;
blankEnd = backPorch;Thanks!
-- Alex
 
Engineering news on Phys.org
anorlunda said:
I just tuned into PF.
I don’t know about digital display driving but, if it were an analogue signal you want to drive, the timings of the video signal are all in the spec.. they differ between PAL and NTSC but the spec is easy to find. At the moment , I am in bright sunlight which makes googling hard for me on my dim screen.
Try “digital display driver timing” I don’t thing any actual calculations should be necessary.
 
Last edited: