enctracestream.h 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*------------------------------------------------------------------------------
  2. -- --
  3. -- This software is confidential and proprietary and may be used --
  4. -- only as expressly authorized by a licensing agreement from --
  5. -- --
  6. -- Hantro Products Oy. --
  7. -- --
  8. -- (C) COPYRIGHT 2006 HANTRO PRODUCTS OY --
  9. -- ALL RIGHTS RESERVED --
  10. -- --
  11. -- The entire notice above must be reproduced --
  12. -- on all copies and should not be removed. --
  13. -- --
  14. --------------------------------------------------------------------------------
  15. --
  16. -- Abstract : Stream tracing
  17. --
  18. ------------------------------------------------------------------------------*/
  19. #ifndef __ENCTRACESTREAM_H__
  20. #define __ENCTRACESTREAM_H__
  21. /*------------------------------------------------------------------------------
  22. 1. Include headers
  23. ------------------------------------------------------------------------------*/
  24. #include "basetype.h"
  25. #include <stdio.h>
  26. /*------------------------------------------------------------------------------
  27. 2. External compiler flags
  28. --------------------------------------------------------------------------------
  29. --------------------------------------------------------------------------------
  30. 3. Module defines
  31. ------------------------------------------------------------------------------*/
  32. typedef struct {
  33. FILE *file; /* File where the trace is written */
  34. i32 bitCnt; /* Stream bit count from the beginning of file */
  35. i32 frameNum; /* Frame number */
  36. i32 disableStreamTrace; /* Don't write stream trace when disabled */
  37. i32 id; /* ID of stream generation, eg. 0=SW, 1=HW */
  38. } traceStream_s;
  39. extern traceStream_s traceStream;
  40. /*------------------------------------------------------------------------------
  41. 4. Function prototypes
  42. ------------------------------------------------------------------------------*/
  43. i32 EncOpenStreamTrace(const char *filename);
  44. void EncCloseStreamTrace(void);
  45. void EncTraceStream(i32 value, i32 numberOfBits);
  46. void EncComment(const char *comment);
  47. void EncCommentMbType(const char *comment, i32 mbNum);
  48. #endif