ComDef.h 1015 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. #ifndef __MAS_COM_DEF_H
  2. #define __MAS_COM_DEF_H
  3. #include "MAS_Definition.h"
  4. NAMESPACE_MAS_BEGIN
  5. // MesgDispatcher
  6. typedef enum __MAS_MESG_TYPE {
  7. EMM_MEDIA_STATE = 1 << 0,
  8. EMM_STRA_RESULT = 1 << 1
  9. } EN_MAS_MESG;
  10. struct MasMesg {
  11. SPtr<void> Content;
  12. TZ_INT MesgType; // EN_MAS_MESG
  13. };
  14. // PipeStateChecker
  15. typedef enum __MAS_PIPE_TYPE {
  16. EMPT_MEDIA,
  17. EMPT_DET,
  18. EMPT_STRA,
  19. EMPT_WSS_STREAM,
  20. EMPT_SCENE
  21. } EN_MAS_PIPE_TYPE;
  22. typedef enum __MAS_PIPE_STATUS {
  23. EMPS_OK,
  24. EMPS_NO_DATA,
  25. EMPS_TIMEOUT,
  26. } EN_MAS_PIPE_STATUS;
  27. struct TaskTarget {
  28. TZ_INT RscID;
  29. TZ_INT Channo;
  30. EN_BUFFER_TYPE Source;
  31. EN_BUFFER_TYPE Target;
  32. EN_MAS_RSC_STREAM_TYPE StreamType;
  33. SPtr<class IStreamPipe> RecvPipe; // Pipe * sendPipe;
  34. bool operator==(const TaskTarget & t)
  35. {
  36. return RscID == t.RscID && StreamType == t.StreamType
  37. && Channo == t.Channo && Source == t.Source
  38. && Target == t.Target;
  39. }
  40. };
  41. NAMESPACE_MAS_END
  42. #endif