aboutsummaryrefslogtreecommitdiffstats
path: root/ui/tap-rtp-common.h
diff options
context:
space:
mode:
authorJirka Novak <j.novak@netsystem.cz>2021-04-13 16:38:13 +0200
committerWireshark GitLab Utility <gerald+gitlab-utility@wireshark.org>2021-04-14 14:02:58 +0000
commitc7f56462490eb287a4152fb086dc8ae4ef8fcd11 (patch)
treebcb417998a807bb87209d2af263765707c380ffe /ui/tap-rtp-common.h
parent38d279326a7b48aab44edfc58348758663b4d2ba (diff)
VoIP dialogs: Performance improvements
Retap and UI response are much faster when many RTP streams are processed. RTP Streams/Analyse 1000+, RTP Player 500+. Changes: - RTP streams are searched with hash, not by iterating over list. - UI operations do not redraw screen after every change, just after all changes. UI is locked when rereading packets. - Sample list during RTP decoding is stored in memory so wireshark uses just half of opened files for audio decoding than before. - Analysis window checkbox area is limited in height - Dialogs shows shows count of streams, count of selected streams and count of unmuted streams - Documentation extended with chapter about RTP decoding parameters - Documentation extended with performance estimates
Diffstat (limited to 'ui/tap-rtp-common.h')
-rw-r--r--ui/tap-rtp-common.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/ui/tap-rtp-common.h b/ui/tap-rtp-common.h
index 651c6f6f9f..7b91784a82 100644
--- a/ui/tap-rtp-common.h
+++ b/ui/tap-rtp-common.h
@@ -138,6 +138,26 @@ void rtpstream_info_calculate(const rtpstream_info_t *strinfo, rtpstream_info_ca
*/
void rtpstream_info_calc_free(rtpstream_info_calc_t *calc);
+/**
+ * Get hash key for rtpstream_info_t
+ */
+guint rtpstream_to_hash(gconstpointer key);
+
+/**
+ * Insert new_stream_info into multihash
+ */
+void rtpstream_info_multihash_insert(GHashTable *multihash, rtpstream_info_t *new_stream_info);
+
+/**
+ * Lookup stream_info in stream_info multihash
+ */
+rtpstream_info_t *rtpstream_info_multihash_lookup(GHashTable *multihash, rtpstream_info_t *stream_info);
+
+/**
+ * GHFunc () for destroying GList in multihash
+ */
+void rtpstream_info_multihash_destroy_value(gpointer key, gpointer value, gpointer user_data);
+
#ifdef __cplusplus
}
#endif /* __cplusplus */