10 #ifndef RTP_ANALYSIS_DIALOG_H 11 #define RTP_ANALYSIS_DIALOG_H 17 #include "epan/address.h" 22 #include <QAbstractButton> 26 #include "wireshark_dialog.h" 38 TAP_RTP_PADDING_ERROR,
51 void goToPacket(
int packet_num);
54 virtual void captureFileClosing();
57 virtual void updateWidgets();
60 void on_actionGoToPacket_triggered();
61 void on_actionNextProblem_triggered();
62 void on_fJitterCheckBox_toggled(
bool checked);
63 void on_fDiffCheckBox_toggled(
bool checked);
64 void on_fDeltaCheckBox_toggled(
bool checked);
65 void on_rJitterCheckBox_toggled(
bool checked);
66 void on_rDiffCheckBox_toggled(
bool checked);
67 void on_rDeltaCheckBox_toggled(
bool checked);
68 void on_actionSaveAudioUnsync_triggered();
69 void on_actionSaveForwardAudioUnsync_triggered();
70 void on_actionSaveReverseAudioUnsync_triggered();
71 void on_actionSaveAudioSyncStream_triggered();
72 void on_actionSaveForwardAudioSyncStream_triggered();
73 void on_actionSaveReverseAudioSyncStream_triggered();
74 void on_actionSaveAudioSyncFile_triggered();
75 void on_actionSaveForwardAudioSyncFile_triggered();
76 void on_actionSaveReverseAudioSyncFile_triggered();
77 void on_actionSaveCsv_triggered();
78 void on_actionSaveForwardCsv_triggered();
79 void on_actionSaveReverseCsv_triggered();
80 void on_actionSaveGraph_triggered();
81 void on_buttonBox_clicked(QAbstractButton *button);
82 void on_buttonBox_helpRequested();
83 void showStreamMenu(QPoint pos);
84 void graphClicked(QMouseEvent *event);
88 enum StreamDirection { dir_both_, dir_forward_, dir_reverse_ };
89 enum SyncType { sync_unsync_, sync_sync_stream_, sync_sync_file_ };
94 guint32 port_src_fwd_;
96 guint32 port_dst_fwd_;
98 guint32 packet_count_fwd_;
99 guint32 setup_frame_number_fwd_;
103 guint32 port_src_rev_;
105 guint32 port_dst_rev_;
107 guint32 packet_count_rev_;
108 guint32 setup_frame_number_rev_;
116 QPushButton *player_button_;
118 QTemporaryFile *fwd_tempfile_;
119 QTemporaryFile *rev_tempfile_;
122 QList<QCPGraph *>graphs_;
123 QVector<double> fwd_time_vals_;
124 QVector<double> fwd_jitter_vals_;
125 QVector<double> fwd_diff_vals_;
126 QVector<double> fwd_delta_vals_;
128 QVector<double> rev_time_vals_;
129 QVector<double> rev_jitter_vals_;
130 QVector<double> rev_diff_vals_;
131 QVector<double> rev_delta_vals_;
135 rtp_error_type_t save_payload_error_;
137 QMenu stream_ctx_menu_;
138 QMenu graph_ctx_menu_;
143 static void tapReset(
void *tapinfo_ptr);
145 static void tapDraw(
void *tapinfo_ptr);
147 void resetStatistics();
150 void updateStatistics();
155 size_t convert_payload_to_samples(
unsigned int payload_type, QTemporaryFile *tempfile, gchar *pd_out,
size_t expected_nchars);
156 gboolean saveAudioAUSilence(
size_t total_len, QFile *save_file, gboolean *stop_flag);
157 gboolean saveAudioAUUnidir(
tap_rtp_stat_t &statinfo, QTemporaryFile *tempfile, QFile *save_file,
size_t header_end, gboolean *stop_flag, gboolean interleave,
size_t prefix_silence);
158 gboolean saveAudioAUBidir(
tap_rtp_stat_t &fwd_statinfo,
tap_rtp_stat_t &rev_statinfo, QTemporaryFile *fwd_tempfile, QTemporaryFile *rev_tempfile, QFile *save_file,
size_t header_end, gboolean *stop_flag,
size_t prefix_silence_fwd,
size_t prefix_silence_rev);
159 gboolean saveAudioAU(StreamDirection direction, QFile *save_file, gboolean *stop_flag, RtpAnalysisDialog::SyncType sync);
160 gboolean saveAudioRAW(StreamDirection direction, QFile *save_file, gboolean *stop_flag);
161 void saveAudio(StreamDirection direction, RtpAnalysisDialog::SyncType sync);
162 void saveCsv(StreamDirection direction);
165 guint32 getIntFromProtoTree(
proto_tree *protocol_tree,
const gchar *proto_name,
const gchar *proto_field,
bool *ok);
167 bool eventFilter(QObject*, QEvent* event);
170 #endif // RTP_ANALYSIS_DIALOG_H
Definition: ui_rtp_analysis_dialog.h:383
Definition: packet_info.h:44
Definition: ui_about_dialog.h:291
A plottable representing a graph in a plot.
Definition: qcustomplot.h:2492
Definition: tap-rtp-analysis.h:55
Definition: rtp_stream.h:83
Definition: epan_dissect.h:28
Definition: wireshark_dialog.h:32
Definition: rtp_analysis_dialog.h:42
Definition: packet-rtp.h:26
Definition: capture_file.h:22
Definition: rtp_stream.h:36