home *** CD-ROM | disk | FTP | other *** search
/ The Net: Ultimate Internet Guide / WWLCD1.ISO / mac / SiteBldr / AMOVIE / SDK / _SETUP / COMMON.Z / vidprop.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-04-22  |  2.3 KB  |  59 lines

  1. //==========================================================================;
  2. //
  3. //  THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  4. //  KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  5. //  IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
  6. //  PURPOSE.
  7. //
  8. //  Copyright (c) 1992 - 1996  Microsoft Corporation.  All Rights Reserved.
  9. //
  10. //--------------------------------------------------------------------------;
  11.  
  12. #ifndef __VIDPROP__
  13. #define __VIDPROP__
  14.  
  15. #define IDD_QUALITY             150     // Dialog resource
  16. #define IDD_Q1                  151     // Frames played
  17. #define IDD_Q2                  152     // Frames dropped
  18. #define IDD_Q4                  154     // Frame rate
  19. #define IDD_Q5                  155     // Frame jitter
  20. #define IDD_Q6                  156     // Sync offset
  21. #define IDD_Q7                  157     // Sync deviation
  22. #define FIRST_Q_BUTTON          171     // First button
  23. #define LAST_Q_BUTTON           177     // Last button
  24. #define IDD_QDRAWN              171     // Frames played
  25. #define IDD_QDROPPED            172     // Frames dropped
  26. #define IDD_QAVGFRM             174     // Average frame rate achieved
  27. #define IDD_QJITTER             175     // Average frame jitter
  28. #define IDD_QSYNCAVG            176     // Average sync offset
  29. #define IDD_QSYNCDEV            177     // Std dev sync offset
  30. #define IDS_NAME                178     // Quality dialog name
  31.  
  32. // Property page built on top of a renderer IQualProp interface
  33.  
  34. class CQualityProperties : public CBasePropertyPage
  35. {
  36.     IQualProp *m_pQualProp;         // Interface held on the renderer
  37.     int m_iDropped;                 // Number of frames dropped
  38.     int m_iDrawn;                   // Count of images drawn
  39.     int m_iSyncAvg;                 // Average sync value
  40.     int m_iSyncDev;                 // And standard deviation
  41.     int m_iFrameRate;               // Total frame rate average
  42.     int m_iFrameJitter;             // Measure of frame jitter
  43.  
  44.     void SetEditFieldData();
  45.     void DisplayStatistics(void);
  46.  
  47. public:
  48.  
  49.     CQualityProperties(LPUNKNOWN lpUnk, HRESULT *phr);
  50.     static CUnknown *CreateInstance(LPUNKNOWN pUnk, HRESULT *phr);
  51.  
  52.     HRESULT OnConnect(IUnknown *pUnknown);
  53.     HRESULT OnDisconnect();
  54.     HRESULT OnActivate();
  55. };
  56.  
  57. #endif // __VIDPROP__
  58.  
  59.