Advertisement
xerpi

Vita DSI vertical active lines calculation

Feb 10th, 2018
275
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.79 KB | None | 0 0
  1. /*
  2. <----------------------------------------------- vtotal ------------------------------------------------------>
  3.  
  4. VSYNC | VBP |----------------------------------------------- Pixel Rows ----------------------------------| VFP
  5.              \                                         /\                                           /\   /
  6.               HSYNC | HBP | --- Pixel Columns --- | HFP  | HSYNC | HBP | --- Pixel Columns --- | HFP  ...
  7.  
  8.               <----------------- htotal -------------->
  9. */
  10.  
  11. if (timing_info->mode == 1)   // Interlaced?
  12.         height = timing_info->vtotal + 1 - 2 * (timing_info->VSYNC + timing_info->VBP + timing_info->VFP);
  13. else                         // Progressive?
  14.         height = timing_info->vtotal - (timing_info->VSYNC + timing_info->VBP + timing_info->VFP);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement