Leaked source code of windows server 2003
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.

45 lines
1.5 KiB

  1. // $Header: G:/SwDev/WDM/Video/bt848/rcs/Defaults.h 1.4 1998/04/29 22:43:32 tomz Exp $
  2. #ifndef __DEFAULTS_H
  3. #define __DEFAULTS_H
  4. const int DefWidth = 320;
  5. const int DefHeight = 240;
  6. const int MaxInWidth = 720;
  7. const int MinInWidth = 80;
  8. const int MaxInHeight = 480;
  9. const int MinInHeight = 60;
  10. const int MaxOutWidth = 720;
  11. const int MinOutWidth = 80;
  12. const int MaxOutHeight = 480;
  13. const int MinOutHeight = 60;
  14. //--------------------------------------
  15. const int VBISamples = 800 * 2;
  16. //const int VBISamples = 768 * 2;
  17. //--------------------------------------
  18. const int VBIStart = 10;
  19. const int VBIEnd = 21;
  20. const int VBILines = VBIEnd - VBIStart + 1;
  21. const int VBISampFreq = 28636363;
  22. const DWORD MaxVidProgSize = 288 * 5 * sizeof( DWORD );// max size of a planar program
  23. const DWORD MaxVidCrossings = 720 * 288 * 3 / PAGE_SIZE; // worst case buffer layout
  24. const DWORD MaxVidSize = MaxVidProgSize + MaxVidCrossings * 5 * sizeof( DWORD );
  25. const DWORD MaxVBIProgSize = VBILines * 2 * sizeof( DWORD );
  26. const DWORD MaxVBICrossings = VBISamples * VBILines / PAGE_SIZE;
  27. const DWORD MaxVBISize = MaxVBIProgSize + MaxVBICrossings * 5 * sizeof( DWORD );
  28. const DWORD MaxHelpers = 13;
  29. // 2 fields, 2 programs per field + skippers
  30. const DWORD VideoOffset = MaxVBISize * 2 * 2 + MaxVBISize * MaxHelpers;
  31. const DWORD RISCProgramsSize = // total memory needed for all risc programs
  32. ( MaxVidSize * 2 + MaxVBISize * 2 ) * 2 + MaxVBISize * MaxHelpers; // skippers
  33. #endif