2
0
forked from Ivasoft/DSView

Add multibytes search feature for protocol list viewer;Add absolute time to session file;fix other minor issues

This commit is contained in:
DreamSourceLab
2016-06-14 22:52:27 +08:00
parent b1446b780d
commit aa9d7c400b
31 changed files with 605 additions and 334 deletions

View File

@@ -60,7 +60,7 @@ const int64_t DecoderStack::DecodeChunkLength = 4 * 1024;
//const int64_t DecoderStack::DecodeChunkLength = 1024 * 1024;
const unsigned int DecoderStack::DecodeNotifyPeriod = 1024;
//mutex DecoderStack::_global_decode_mutex;
mutex DecoderStack::_global_decode_mutex;
DecoderStack::DecoderStack(pv::SigSession &session,
const srd_decoder *const dec) :
@@ -145,12 +145,11 @@ void DecoderStack::build_row()
_rows[row] = decode::RowData();
std::map<const decode::Row, bool>::const_iterator iter = _rows_gshow.find(row);
if (iter == _rows_gshow.end()) {
_rows_gshow[row] = true;
if (row.title().contains("bit", Qt::CaseInsensitive) ||
row.title().contains("warning", Qt::CaseInsensitive)) {
_rows_gshow[row] = false;
_rows_lshow[row] = false;
} else {
_rows_gshow[row] = true;
_rows_lshow[row] = true;
}
}
@@ -169,12 +168,11 @@ void DecoderStack::build_row()
_rows[row] = decode::RowData();
std::map<const decode::Row, bool>::const_iterator iter = _rows_gshow.find(row);
if (iter == _rows_gshow.end()) {
_rows_gshow[row] = true;
if (row.title().contains("bit", Qt::CaseInsensitive) ||
row.title().contains("warning", Qt::CaseInsensitive)) {
_rows_gshow[row] = false;
_rows_lshow[row] = false;
} else {
_rows_gshow[row] = true;
_rows_lshow[row] = true;
}
}
@@ -553,7 +551,7 @@ void DecoderStack::decode_data(
void DecoderStack::decode_proc()
{
//lock_guard<mutex> decode_lock(_global_decode_mutex);
lock_guard<mutex> decode_lock(_global_decode_mutex);
optional<uint64_t> sample_count;
srd_session *session;