Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
2e2070b4
Commit
2e2070b4
authored
Apr 22, 2011
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt, stats: always show unsigned for blocks or buffers
parent
955cbc60
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
23 deletions
+15
-23
modules/gui/qt4/components/info_panels.cpp
modules/gui/qt4/components/info_panels.cpp
+15
-23
No files found.
modules/gui/qt4/components/info_panels.cpp
View file @
2e2070b4
...
...
@@ -474,8 +474,6 @@ InputStatsPanel::InputStatsPanel( QWidget *parent,
{
QGridLayout
*
layout
=
new
QGridLayout
(
this
);
QList
<
QTreeWidgetItem
*>
items
;
QLabel
*
topLabel
=
new
QLabel
(
qtr
(
"Current"
" media / stream "
"statistics"
)
);
topLabel
->
setWordWrap
(
true
);
...
...
@@ -562,33 +560,27 @@ void InputStatsPanel::update( input_item_t *p_item )
#define UPDATE( widget, format, calc... ) \
{ QString str; widget->setText( 1 , str.sprintf( format, ## calc ) ); }
UPDATE
(
read_media_stat
,
"%"
PRId64
,
(
p_item
->
p_stats
->
i_read_bytes
/
1024
)
);
UPDATE
(
input_bitrate_stat
,
"%6.0f"
,
(
float
)(
p_item
->
p_stats
->
f_input_bitrate
*
8000
));
UPDATE
(
demuxed_stat
,
"%"
PRId64
,
(
p_item
->
p_stats
->
i_demux_read_bytes
/
1024
)
);
UPDATE
(
stream_bitrate_stat
,
"%6.0f"
,
(
float
)(
p_item
->
p_stats
->
f_demux_bitrate
*
8000
));
UPDATE
(
corrupted_stat
,
"%"
PRId64
,
p_item
->
p_stats
->
i_demux_corrupted
);
UPDATE
(
discontinuity_stat
,
"%"
PRId64
,
p_item
->
p_stats
->
i_demux_discontinuity
);
UPDATE
(
read_media_stat
,
"%"
PRIu64
,
(
p_item
->
p_stats
->
i_read_bytes
/
1024
)
);
UPDATE
(
input_bitrate_stat
,
"%6.0f"
,
(
float
)(
p_item
->
p_stats
->
f_input_bitrate
*
8000
));
UPDATE
(
demuxed_stat
,
"%"
PRIu64
,
(
p_item
->
p_stats
->
i_demux_read_bytes
/
1024
)
);
UPDATE
(
stream_bitrate_stat
,
"%6.0f"
,
(
float
)(
p_item
->
p_stats
->
f_demux_bitrate
*
8000
));
UPDATE
(
corrupted_stat
,
"%"
PRIu64
,
p_item
->
p_stats
->
i_demux_corrupted
);
UPDATE
(
discontinuity_stat
,
"%"
PRIu64
,
p_item
->
p_stats
->
i_demux_discontinuity
);
/* Video */
UPDATE
(
vdecoded_stat
,
"%"
PRId
64
,
p_item
->
p_stats
->
i_decoded_video
);
UPDATE
(
vdisplayed_stat
,
"%"
PRId
64
,
p_item
->
p_stats
->
i_displayed_pictures
);
UPDATE
(
vlost_frames_stat
,
"%"
PRI
d
64
,
p_item
->
p_stats
->
i_lost_pictures
);
UPDATE
(
vdecoded_stat
,
"%"
PRIu
64
,
p_item
->
p_stats
->
i_decoded_video
);
UPDATE
(
vdisplayed_stat
,
"%"
PRIu
64
,
p_item
->
p_stats
->
i_displayed_pictures
);
UPDATE
(
vlost_frames_stat
,
"%"
PRI
u
64
,
p_item
->
p_stats
->
i_lost_pictures
);
/* Sout */
UPDATE
(
send_stat
,
"%"
PRId64
,
p_item
->
p_stats
->
i_sent_packets
);
UPDATE
(
send_bytes_stat
,
"%"
PRId64
,
(
p_item
->
p_stats
->
i_sent_bytes
)
/
1024
);
UPDATE
(
send_bitrate_stat
,
"%6.0f"
,
(
float
)(
p_item
->
p_stats
->
f_send_bitrate
*
8000
)
);
UPDATE
(
send_stat
,
"%"
PRIu64
,
p_item
->
p_stats
->
i_sent_packets
);
UPDATE
(
send_bytes_stat
,
"%"
PRIu64
,
(
p_item
->
p_stats
->
i_sent_bytes
)
/
1024
);
UPDATE
(
send_bitrate_stat
,
"%6.0f"
,
(
float
)(
p_item
->
p_stats
->
f_send_bitrate
*
8000
)
);
/* Audio*/
UPDATE
(
adecoded_stat
,
"%"
PRI
d
64
,
p_item
->
p_stats
->
i_decoded_audio
);
UPDATE
(
aplayed_stat
,
"%"
PRId
64
,
p_item
->
p_stats
->
i_played_abuffers
);
UPDATE
(
alost_stat
,
"%"
PRId
64
,
p_item
->
p_stats
->
i_lost_abuffers
);
UPDATE
(
adecoded_stat
,
"%"
PRI
u
64
,
p_item
->
p_stats
->
i_decoded_audio
);
UPDATE
(
aplayed_stat
,
"%"
PRIu
64
,
p_item
->
p_stats
->
i_played_abuffers
);
UPDATE
(
alost_stat
,
"%"
PRIu
64
,
p_item
->
p_stats
->
i_lost_abuffers
);
#undef UPDATE
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment