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.

75 lines
2.0 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) 1995 Intel Corporation.
  10. ** All Rights Reserved.
  11. **
  12. ** *************************************************************************
  13. */
  14. /*****************************************************************************
  15. *
  16. * e1stat.h
  17. *
  18. * Description:
  19. * Encoder statistics interface
  20. *
  21. * Notes
  22. * - Functions are only defined ifdef ENCODE_STATS. The data structures
  23. * are always defined inorder that we have one memory layout regardless
  24. * or our build parameters.
  25. */
  26. // $Header: R:\h26x\h26x\src\enc\e1stat.h_v 1.1 20 Mar 1996 14:20:28 Sylvia_C_Day $
  27. // $Log: R:\h26x\h26x\src\enc\e1stat.h_v $
  28. ;//
  29. ;// Rev 1.1 20 Mar 1996 14:20:28 Sylvia_C_Day
  30. ;// Added lower level timing stats for SLF_UV
  31. ;//
  32. ;// Rev 1.0 26 Dec 1995 17:46:14 DBRUCKS
  33. ;// Initial revision.
  34. #ifndef __E1STAT_H__
  35. #define __E1STAT_H__
  36. /* Encoder BitStream Data
  37. */
  38. typedef struct {
  39. U32 uMTypeCount[10];
  40. U32 uBlockCount[10];
  41. U32 uKeyFrameCount;
  42. U32 uDeltaFrameCount;
  43. U32 uTotalDeltaBytes;
  44. U32 uTotalKeyBytes;
  45. U32 uQuantsUsedOnBlocks[32];
  46. U32 uQuantsTransmittedOnBlocks[32];
  47. } ENC_BITSTREAM_INFO;
  48. /* Encoder Timing Data - per frame
  49. */
  50. typedef struct {
  51. U32 uEncodeFrame;
  52. U32 uInputCC;
  53. U32 uMotionEstimation;
  54. U32 uFDCT;
  55. U32 uQRLE;
  56. U32 uDecodeFrame;
  57. U32 uZeroingBuffer;
  58. U32 uSLF_UV;
  59. } ENC_TIMING_INFO;
  60. #define ENC_TIMING_INFO_FRAME_COUNT 100
  61. #ifdef ENCODE_STATS
  62. extern void OutputEncodeBitStreamStatistics(char * szFileName, ENC_BITSTREAM_INFO * pBSInfo, int bCIF);
  63. extern void OutputEncodeTimingStatistics(char * szFileName, ENC_TIMING_INFO * pEncTimingInfo);
  64. #endif /* ENCODE_STATS */
  65. #endif /* __E1STAT_H__ */