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.

пре 10 месеци
123456789101112131415161718192021222324252627282930313233
  1. #ifndef _rtp_over_rtsp_h_
  2. #define _rtp_over_rtsp_h_
  3. #include <stdint.h>
  4. #if defined(__cplusplus)
  5. extern "C" {
  6. #endif
  7. struct rtp_over_rtsp_t
  8. {
  9. int state; // 0-all done, other-need more interleaved data
  10. uint8_t channel;
  11. uint16_t length;
  12. uint16_t bytes;
  13. uint16_t capacity;
  14. uint8_t* data;
  15. //#if defined(RTP_OVER_RTSP_TRY_TO_FIND_NEXT_PACKET)
  16. int check; // should check flag
  17. uint32_t ssrc[8];
  18. //#endif
  19. void (*onrtp)(void* param, uint8_t channel, const void* data, uint16_t bytes);
  20. void* param;
  21. };
  22. const uint8_t* rtp_over_rtsp(struct rtp_over_rtsp_t *rtp, const uint8_t* data, const uint8_t* end);
  23. #if defined(__cplusplus)
  24. }
  25. #endif
  26. #endif /* !_rtp_over_rtsp_h_ */