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.

34 lines
2.1KB

  1. #ifndef _sdp_payload_h_
  2. #define _sdp_payload_h_
  3. #include <stdint.h>
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. int sdp_vp8(uint8_t* data, int bytes, const char* proto, unsigned short port, int payload);
  8. int sdp_vp9(uint8_t* data, int bytes, const char* proto, unsigned short port, int payload);
  9. int sdp_av1(uint8_t* data, int bytes, const char* proto, unsigned short port, int payload, int frequence, const void* extra, int extra_size);
  10. int sdp_h264(uint8_t* data, int bytes, const char* proto, unsigned short port, int payload, int frequence, const void* extra, int extra_size);
  11. int sdp_h265(uint8_t* data, int bytes, const char* proto, unsigned short port, int payload, int frequence, const void* extra, int extra_size);
  12. int sdp_mpeg4_es(uint8_t* data, int bytes, const char* proto, unsigned short port, int payload, int frequence, const void* extra, int extra_size);
  13. int sdp_g711u(uint8_t* data, int bytes, const char* proto, unsigned short port);
  14. int sdp_g711a(uint8_t* data, int bytes, const char* proto, unsigned short port);
  15. int sdp_opus(uint8_t* data, int bytes, const char* proto, unsigned short port, int payload, int sample_rate, int channel_count, const void* extra, int extra_size);
  16. int sdp_aac_latm(uint8_t* data, int bytes, const char* proto, unsigned short port, int payload, int sample_rate, int channel_count, const void* extra, int extra_size);
  17. int sdp_aac_generic(uint8_t* data, int bytes, const char* proto, unsigned short port, int payload, int sample_rate, int channel_count, const void* extra, int extra_size);
  18. int sdp_mpeg2_ps(uint8_t* data, int bytes, const char* proto, unsigned short port, int payload);
  19. int sdp_mpeg2_ts(uint8_t* data, int bytes, const char* proto, unsigned short port);
  20. /// @param[in] rtp rtp payload, see more @rtp-profile.h and @rtsp-payloads.h
  21. int sdp_payload_video(uint8_t* data, int bytes, int rtp, const char* proto, unsigned short port, int payload, int frequence, const void* extra, int extra_size);
  22. int sdp_payload_audio(uint8_t* data, int bytes, int rtp, const char* proto, unsigned short port, int payload, int sample_rate, int channel_count, const void* extra, int extra_size);
  23. #ifdef __cplusplus
  24. }
  25. #endif
  26. #endif /* !_sdp_payload_h_ */