houxiao
2017-01-10 91bcfe2c50c8732c1ccf792ca1f8964966808352
RtspFace/ev_proto.h
@@ -11,8 +11,22 @@
   enum EVPC
   {
      EVPC__FIRST,
      EVPC_SENSETIMEFACEDETECT,
      EVPC__LAST,
      EVPC_STATUS = 1,
      EVPC_USER_DEFINE = 128,
      EVPC__LAST
   };
};
struct EVPStatus
{
   enum EVPS
   {
      EVPS__FIRST,
      EVPS_OK = 1,
      EVPS_ERROR = 128,
      EVPS_INTERNAL_ERROR,
      EVPS_PARAMETER_ERROR,
      EVPS__LAST
   };
};
@@ -22,12 +36,21 @@
   uint32_t size;   // sizeof(EVPHeader)+sizeof(subcmd)
};
struct EVP_Status
{
   int16_t status;
};
struct EVP_VariableBuffer
{
   int16_t mb_type; // MB_Frame::MBFType
   int16_t type;
   uint8_t buff[0];
};
//#todo
template<typename TPacket>
void endian_convert(TPacket& packet);
#pragma pack()
#endif