提交 f4047352 编写于 作者: Z Zhang Rui

android/sample: vdps/vfps share same line

上级 eaadf5f5
......@@ -21,9 +21,6 @@ public class InfoHudViewHolder {
public InfoHudViewHolder(Context context, TableLayout tableLayout) {
mTableLayoutBinder = new TableLayoutBinder(context, tableLayout);
appendRow(R.string.fps_decode);
appendRow(R.string.fps_output);
}
private void appendSection(int nameId) {
......@@ -77,8 +74,7 @@ public class InfoHudViewHolder {
float fpsOutput = mp.getVideoOutputFramesPerSecond();
float fpsDecode = mp.getVideoDecodeFramesPerSecond();
setRowValue(R.string.fps_decode, String.format(Locale.US, "%.2f", fpsDecode));
setRowValue(R.string.fps_output, String.format(Locale.US, "%.2f", fpsOutput));
setRowValue(R.string.fps, String.format(Locale.US, "%.2f / %.2f", fpsDecode, fpsOutput));
long videoCachedDuration = mp.getVideoCachedDuration();
long audioCachedDuration = mp.getAudioCachedDuration();
......
......@@ -14,8 +14,7 @@
<string name="toggle_render">Render</string>
<string name="toggle_ratio">Scale</string>
<string name="show_info">Info</string>
<string name="fps_output">fps (output)</string>
<string name="fps_decode">fps (decode)</string>
<string name="fps">fps</string>
<string name="v_cache">v-cache</string>
<string name="a_cache">a-cache</string>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册