Wireshark 4.7.3
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
rtp_media.h
Go to the documentation of this file.
1
14
15#ifndef __RTP_MEDIA_H__
16#define __RTP_MEDIA_H__
17
18#include <glib.h>
20
25
26#ifdef __cplusplus
27extern "C" {
28#endif /* __cplusplus */
29
30/****************************************************************************/
31/* INTERFACE */
32/****************************************************************************/
33
34typedef int16_t SAMPLE;
35#define SAMPLE_MAX INT16_MAX
36#define SAMPLE_MIN INT16_MIN
37#define SAMPLE_NaN SAMPLE_MIN
38#define SAMPLE_BYTES (sizeof(SAMPLE) / sizeof(char))
39
43typedef struct _rtp_packet {
44 uint32_t frame_num;
45 struct _rtp_info *info;
47 uint8_t *payload_data;
49
54GHashTable *rtp_decoder_hash_table_new(void);
55
65size_t decode_rtp_packet(rtp_packet_t *rp, SAMPLE **out_buff, GHashTable *decoders_hash, unsigned *channels_ptr, unsigned *sample_rate_ptr);
66
67#ifdef __cplusplus
68}
69#endif /* __cplusplus */
70
71#endif /* __RTP_MEDIA_H__ */
GHashTable * rtp_decoder_hash_table_new(void)
Definition rtp_media.c:314
struct _rtp_packet rtp_packet_t
Represents a single dissected RTP packet captured within an RTP stream.
size_t decode_rtp_packet(rtp_packet_t *rp, SAMPLE **out_buff, GHashTable *decoders_hash, unsigned *channels_ptr, unsigned *sample_rate_ptr)
Definition rtp_media.c:277
Definition packet-rtp.h:29
Represents a single dissected RTP packet captured within an RTP stream.
Definition rtp_media.h:43
struct _rtp_info * info
Definition rtp_media.h:45
uint8_t * payload_data
Definition rtp_media.h:47
uint32_t frame_num
Definition rtp_media.h:44
double arrive_offset
Definition rtp_media.h:46