1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- #ifndef __MAS_COM_DEF_H
- #define __MAS_COM_DEF_H
- #include "MAS_Definition.h"
- NAMESPACE_MAS_BEGIN
- // MesgDispatcher
- typedef enum __MAS_MESG_TYPE {
- EMM_MEDIA_STATE = 1 << 0,
- EMM_STRA_RESULT = 1 << 1
- } EN_MAS_MESG;
- struct MasMesg {
- SPtr<void> Content;
- TZ_INT MesgType; // EN_MAS_MESG
- };
- // PipeStateChecker
- typedef enum __MAS_PIPE_TYPE {
- EMPT_MEDIA,
- EMPT_DET,
- EMPT_STRA,
- EMPT_WSS_STREAM,
- EMPT_SCENE
- } EN_MAS_PIPE_TYPE;
- typedef enum __MAS_PIPE_STATUS {
- EMPS_OK,
- EMPS_NO_DATA,
- EMPS_TIMEOUT,
- } EN_MAS_PIPE_STATUS;
- struct TaskTarget {
- TZ_INT RscID;
- TZ_INT Channo;
- EN_BUFFER_TYPE Source;
- EN_BUFFER_TYPE Target;
- EN_MAS_RSC_STREAM_TYPE StreamType;
- SPtr<class IStreamPipe> RecvPipe; // Pipe * sendPipe;
- bool operator==(const TaskTarget & t)
- {
- return RscID == t.RscID && StreamType == t.StreamType
- && Channo == t.Channo && Source == t.Source
- && Target == t.Target;
- }
- };
- NAMESPACE_MAS_END
- #endif
|