rtp_header_extension_api.h 734 B

1234567891011121314151617181920212223242526272829
  1. #ifndef RTP_HEADER_EXTENSION_API_H_
  2. #define RTP_HEADER_EXTENSION_API_H_
  3. #include <stdint.h>
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. typedef struct _RtpHeaderExtensionApi RtpHeaderExtensionApi;
  8. RtpHeaderExtensionApi *rtp_header_extension_api_new();
  9. void rtp_header_extension_api_destroy(RtpHeaderExtensionApi *obj) ;
  10. int rtp_header_extension_api_encode_absolute_send_time(RtpHeaderExtensionApi *obj, uint32_t send_time, uint8_t* header, int *header_length);
  11. int rtp_header_extension_api_decode_absolute_send_time(RtpHeaderExtensionApi *obj, const uint8_t* buffer, int buffer_length, uint32_t *send_time, int *extension_length);
  12. #ifdef __cplusplus
  13. }
  14. #endif /* end of __cplusplus */
  15. #endif // RTP_HEADER_EXTENSION_API_H_