Ticket #6340: MPEGStreamData_replaceQMap.diff
File MPEGStreamData_replaceQMap.diff, 5.6 KB (added by , 12 years ago) |
---|
-
mythtv/libs/libmythtv/channelscan/channelscan_sm.h
57 57 class DVBSignalMonitor; 58 58 59 59 typedef vector<const ProgramMapTable*> pmt_vec_t; 60 typedef Q Map<uint, pmt_vec_t> pmt_map_t;60 typedef QHash<uint, pmt_vec_t> pmt_map_t; 61 61 class ScannedChannelInfo; 62 62 typedef QMap<transport_scan_items_it_t,ScannedChannelInfo*> ChannelMap; 63 63 -
mythtv/libs/libmythtv/mpeg/mpegstreamdata.cpp
1603 1603 // QString("Tearing down up decryption monitoring " 1604 1604 // "for program %1").arg(pnum)); 1605 1605 1606 Q Map<uint, uint_vec_t>::iterator list;1606 QHash<uint, uint_vec_t>::iterator list; 1607 1607 uint_vec_t::iterator it; 1608 1608 1609 1609 uint_vec_t pids = _encryption_pnum_to_pids[pnum]; … … 1639 1639 { 1640 1640 QMutexLocker locker(&_encryption_lock); 1641 1641 1642 Q Map<uint, CryptInfo>::const_iterator it =1642 QHash<uint, CryptInfo>::const_iterator it = 1643 1643 _encryption_pid_to_info.find(pid); 1644 1644 1645 1645 return it != _encryption_pid_to_info.end(); -
mythtv/libs/libmythtv/mpeg/mpegstreamdata.h
6 6 #include <vector> 7 7 using namespace std; 8 8 9 #include <qmap.h> 9 #include <QHash> 10 10 11 #include <stdint.h> // uint64_t 12 11 13 #include "tspacket.h" 12 14 #include "util.h" 13 15 #include "streamlisteners.h" … … 20 22 21 23 typedef vector<uint> uint_vec_t; 22 24 23 typedef Q Map<unsigned int, PESPacket*> pid_pes_map_t;24 typedef Q Map<const PSIPTable*, int> psip_refcnt_map_t;25 typedef QHash<unsigned int, PESPacket*> pid_pes_map_t; 26 typedef QHash<const PSIPTable*, int> psip_refcnt_map_t; 25 27 26 28 typedef ProgramAssociationTable* pat_ptr_t; 27 29 typedef vector<const ProgramAssociationTable*> pat_vec_t; 28 typedef Q Map<uint, pat_vec_t>pat_map_t;29 typedef Q Map<uint, ProgramAssociationTable*>pat_cache_t;30 typedef QHash<uint, pat_vec_t> pat_map_t; 31 typedef QHash<uint, ProgramAssociationTable*> pat_cache_t; 30 32 31 33 typedef ProgramMapTable* pmt_ptr_t; 32 34 typedef vector<const ProgramMapTable*> pmt_vec_t; 33 typedef Q Map<uint, pmt_vec_t>pmt_map_t;34 typedef Q Map<uint, ProgramMapTable*>pmt_cache_t;35 typedef QHash<uint, pmt_vec_t> pmt_map_t; 36 typedef QHash<uint, ProgramMapTable*> pmt_cache_t; 35 37 36 38 typedef vector<unsigned char> uchar_vec_t; 37 39 typedef uchar_vec_t sections_t; 38 typedef Q Map<uint, sections_t>sections_map_t;40 typedef QHash<uint, sections_t> sections_map_t; 39 41 40 42 typedef vector<MPEGStreamListener*> mpeg_listener_vec_t; 41 43 typedef vector<TSPacketListener*> ts_listener_vec_t; 42 44 typedef vector<TSPacketListenerAV*> ts_av_listener_vec_t; 43 45 typedef vector<MPEGSingleProgramStreamListener*> mpeg_sp_listener_vec_t; 44 46 47 typedef QHash<uint, int> table_versions_map_t; 48 45 49 typedef enum 46 50 { 47 51 kEncUnknown = 0, … … 76 80 kPIDPriorityNormal = 2, 77 81 kPIDPriorityHigh = 3, 78 82 } PIDPriority; 79 typedef Q Map<uint, PIDPriority> pid_map_t;83 typedef QHash<uint, PIDPriority> pid_map_t; 80 84 81 85 class MPEGStreamData : public EITSource 82 86 { … … 158 162 } 159 163 int VersionPAT(uint tsid) const 160 164 { 161 const QMap<uint, int>::const_iterator it = _pat_version.find(tsid);165 const table_versions_map_t::const_iterator it = _pat_version.find(tsid); 162 166 if (it == _pat_version.end()) 163 167 return -1; 164 168 return *it; … … 173 177 } 174 178 int VersionPMT(uint prog_num) const 175 179 { 176 const QMap<uint, int>::const_iterator it = _pmt_version.find(prog_num);180 const table_versions_map_t::const_iterator it = _pmt_version.find(prog_num); 177 181 if (it == _pmt_version.end()) 178 182 return -1; 179 183 return *it; … … 328 332 329 333 // Encryption monitoring 330 334 mutable QMutex _encryption_lock; 331 Q Map<uint, CryptInfo>_encryption_pid_to_info;332 Q Map<uint, uint_vec_t>_encryption_pnum_to_pids;333 Q Map<uint, uint_vec_t>_encryption_pid_to_pnums;334 Q Map<uint, CryptStatus>_encryption_pnum_to_status;335 QHash<uint, CryptInfo> _encryption_pid_to_info; 336 QHash<uint, uint_vec_t> _encryption_pnum_to_pids; 337 QHash<uint, uint_vec_t> _encryption_pid_to_pnums; 338 QHash<uint, CryptStatus> _encryption_pnum_to_status; 335 339 336 340 // Signals 337 341 mutable QMutex _listener_lock; … … 341 345 ts_av_listener_vec_t _ts_av_listeners; 342 346 343 347 // Table versions 344 QMap<uint, int>_pat_version;345 QMap<uint, int>_pmt_version;348 table_versions_map_t _pat_version; 349 table_versions_map_t _pmt_version; 346 350 347 351 sections_map_t _pat_section_seen; 348 352 sections_map_t _pmt_section_seen; -
mythtv/libs/libmythtv/siscan.h
37 37 } SCANMODE; 38 38 39 39 typedef vector<const ProgramMapTable*> pmt_vec_t; 40 typedef Q Map<uint, pmt_vec_t> pmt_map_t;40 typedef QHash<uint, pmt_vec_t> pmt_map_t; 41 41 42 42 class SIScan : public QObject, 43 43 public MPEGStreamListener,