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.

82 lines
2.2 KiB

  1. /* *************************************************************************
  2. ** INTEL Corporation Proprietary Information
  3. **
  4. ** This listing is supplied under the terms of a license
  5. ** agreement with INTEL Corporation and may not be copied
  6. ** nor disclosed except in accordance with the terms of
  7. ** that agreement.
  8. **
  9. ** Copyright (c) 1996 Intel Corporation.
  10. ** All Rights Reserved.
  11. **
  12. ** *************************************************************************
  13. */
  14. /*****************************************************************************
  15. *
  16. * e3stat.h
  17. *
  18. * Description:
  19. * Interface to the encoder statistics functions
  20. *
  21. * Activate with ENCODE_STATS
  22. */
  23. /*
  24. * $Header: R:\h26x\h26x\src\enc\e3stat.h_v 1.0 22 Apr 1996 17:10:10 BECHOLS $
  25. * $Log: R:\h26x\h26x\src\enc\e3stat.h_v $
  26. ;//
  27. ;// Rev 1.0 22 Apr 1996 17:10:10 BECHOLS
  28. ;// Initial revision.
  29. ;//
  30. ;// Rev 1.1 08 Mar 1996 14:13:36 DBRUCKS
  31. ;// add frame size stats for use with RTP headers
  32. ;//
  33. ;// Rev 1.0 01 Mar 1996 16:34:48 DBRUCKS
  34. ;// Initial revision.
  35. */
  36. #ifndef __E3STAT_H__
  37. #define __E3STAT_H__
  38. #ifdef ENCODE_STATS
  39. /* Frame Sizes
  40. */
  41. extern void StatsFrameSize(U32 uBitStreamSize, U32 uFrameSize);
  42. extern void InitFrameSizeStats();
  43. extern void OutputFrameSizeStats(char * filename);
  44. /* Quantization
  45. */
  46. extern void StatsUsedQuant(int iQuant);
  47. extern void InitQuantStats();
  48. extern void OutputQuantStats(char * filename);
  49. /* PSNR
  50. */
  51. extern void InitPSNRStats();
  52. extern void OutputPSNRStats(char * filename);
  53. extern void IncrementPSNRCounter();
  54. extern void ComputeYPSNR(U8 * pu8Input,
  55. int iInputPitch,
  56. U8 * pu8Output,
  57. int iOutputPitch,
  58. UN unWidth,
  59. UN unHeight);
  60. extern void ComputeVPSNR(U8 * pu8Input,
  61. int iInputPitch,
  62. U8 * pu8Output,
  63. int iOutputPitch,
  64. UN unWidth,
  65. UN unHeight);
  66. extern void ComputeUPSNR(U8 * pu8Input,
  67. int iInputPitch,
  68. U8 * pu8Output,
  69. int iOutputPitch,
  70. UN unWidth,
  71. UN unHeight);
  72. #endif /* ENCODE_STATS */
  73. #endif /* __E3STAT_H__ */