![]() |
Wireshark
4.3.0
The Wireshark network protocol analyzer
|
Go to the source code of this file.
Classes | |
struct | _rtp_packet |
Macros | |
#define | SAMPLE_MAX INT16_MAX |
#define | SAMPLE_MIN INT16_MIN |
#define | SAMPLE_NaN SAMPLE_MIN |
#define | SAMPLE_BYTES (sizeof(SAMPLE) / sizeof(char)) |
Typedefs | |
typedef int16_t | SAMPLE |
typedef struct _rtp_packet | rtp_packet_t |
Functions | |
GHashTable * | rtp_decoder_hash_table_new (void) |
size_t | decode_rtp_packet_payload (uint8_t payload_type, const char *payload_type_str, int payload_rate, int payload_channels, wmem_map_t *payload_fmtp_map, uint8_t *payload_data, size_t payload_len, SAMPLE **out_buff, GHashTable *decoders_hash, unsigned *channels_ptr, unsigned *sample_rate_ptr) |
size_t | decode_rtp_packet (rtp_packet_t *rp, SAMPLE **out_buff, GHashTable *decoders_hash, unsigned *channels_ptr, unsigned *sample_rate_ptr) |
RTP decoding routines for Wireshark. Copied from ui/gtk/rtp_player.c
Copyright 2006, Alejandro Vaquero aleja ndro vaque ro@y ahoo. com
Wireshark - Network traffic analyzer By Gerald Combs geral Copyright 1999 Gerald Combs d@wi resha rk.o rg
SPDX-License-Identifier: GPL-2.0-or-later
"RTP Player" dialog box common routines.
size_t decode_rtp_packet | ( | rtp_packet_t * | rp, |
SAMPLE ** | out_buff, | ||
GHashTable * | decoders_hash, | ||
unsigned * | channels_ptr, | ||
unsigned * | sample_rate_ptr | ||
) |
Decode an RTP packet
rp | Wrapper for per-packet RTP tap data. |
out_buff | Output audio samples. |
decoders_hash | Hash table created with rtp_decoder_hash_table_new. |
channels_ptr | If non-NULL, receives the number of channels in the sample. |
sample_rate_ptr | If non-NULL, receives the sample rate. |
size_t decode_rtp_packet_payload | ( | uint8_t | payload_type, |
const char * | payload_type_str, | ||
int | payload_rate, | ||
int | payload_channels, | ||
wmem_map_t * | payload_fmtp_map, | ||
uint8_t * | payload_data, | ||
size_t | payload_len, | ||
SAMPLE ** | out_buff, | ||
GHashTable * | decoders_hash, | ||
unsigned * | channels_ptr, | ||
unsigned * | sample_rate_ptr | ||
) |
Decode payload from an RTP packet For RTP packets with dynamic payload types, the payload name, clock rate, and number of audio channels (e.g., from the SDP) can be provided. Note that the output sample rate and number of channels might not be the same as that of the input.
payload_type | Payload number |
payload_type_str | Payload name, can be NULL |
payload_rate | Sample rate, can be 0 for codec default |
payload_channels | Audio channels, can be 0 for codec default |
payload_fmtp_map | Map of format parameters for the media type |
payload_data | Payload |
payload_len | Length of payload |
out_buff | Output audio samples. |
decoders_hash | Hash table created with rtp_decoder_hash_table_new. |
channels_ptr | If non-NULL, receives the number of channels in the sample. |
sample_rate_ptr | If non-NULL, receives the sample rate. |
GHashTable* rtp_decoder_hash_table_new | ( | void | ) |
Create a new hash table.