Commit Graph

55 Commits

Author SHA1 Message Date
saxon 55bee1532e stream/mts/psi/psi.go: added function comments and improved commenting and layout inside functions 2019-01-30 11:01:04 +10:30
saxon d49a8b8c6b stream/mts/psi.go: removed trimPadding function as we don't need this anymore 2019-01-29 22:09:17 +10:30
saxon a5e1763c97 stream/mts/psi: finished writing AddDescriptor test -everything working fine now 2019-01-29 16:42:02 +10:30
saxon c7d418ce81 stream/mts/psi: deleted some todos as they have been addressed now 2019-01-29 16:15:18 +10:30
saxon 1786ed2661 stream/mts/psi: finished writing AddDescriptor 2019-01-29 16:14:00 +10:30
saxon 252e6680ed stream/mts/psi: modified way in which we add padding to psi - now we leave it up to the mts package to do this on creation of an ts packet. Also in the middle of writing AddDescriptor func, and finding issues, hence the mentioned change. 2019-01-29 15:42:51 +10:30
saxon 2145db71d4 stream/mts/psi: wrote SetSectionLen func 2019-01-29 15:16:08 +10:30
saxon 287238ddd1 stream/mts/psi: removed deleteDescriptor func as we don't need it yet 2019-01-29 14:39:01 +10:30
saxon 4a3464252b stream/mts/psi: changed HasDescriptor to also return index of descriptor in psi. Wrote func called SetProgInfoLen to set the program info length in a pmt. Started writing deleteDescriptor func to get rid of a descriptor. 2019-01-29 14:38:23 +10:30
saxon af239838d0 stream/mts/psi: modified how update crc works so that we're only giving it data that's included in crc calc as well as the crc field itself. Added some consts to allow working with SyntaxSectionLen. Added trimPadding func so that we can easily get rid of any padding. Fixed createDescriptor func which was found to be broken from TestCreateDescriptor 2019-01-29 14:16:33 +10:30
saxon 3a14b64480 stream/mts/psi/psi.go: simplified HasDescriptor func 2019-01-29 11:30:37 +10:30
saxon dce113d1e4 stream/mts/psi/descriptor_test.go: wrote HasDescriptor test and fixed HasDescriptor function after bug was found 2019-01-29 11:28:40 +10:30
saxon 46b2bc4520 stream/mts: added some consts to describe indexes and masks, and fixed some syntax errors, so now it all builds 2019-01-27 17:04:46 +10:30
saxon 9171b56d31 stream/mts: created new type to represent Descriptor (typedef of []bytes) so that we can create receiver functions. Wrote AddDescriptor func to add or update a descriptor in a pmt. Wrote ProgramInfoLen func to return the program info length i.e. len of descriptors. Wrote HasDescriptor to check if descriptor exists, if so return the descriptor so that we can update. Wrote descriptors which returns []byte of all descriptors. Wrote create descriptor, which adds a descriptor to the existing if any i.e. shifts data downwards to accomodate new data. Wrote update func to update a descriptor. 2019-01-27 16:55:00 +10:30
saxon 6f421ab706 stream/mts/psi.go: added more to AddDescriptor and added signature for edistDesc 2019-01-26 23:35:31 +10:30
saxon ecf7263bc1 stream/mts/meta.go: started using mutex where I was supposed to 2019-01-26 22:42:31 +10:30
saxon d107231224 stream/mts: starting to work out meta logistics in encoder.go and added incomplete AddDescriptor function in psi package 2019-01-26 18:04:21 +10:30
saxon c4e2ca64a9 psi: modified addPadding to only do one resize 2019-01-12 17:51:39 +10:30
saxon 662d71bf54 mts+psi: fixed conflicts with master 2019-01-12 17:03:55 +10:30
saxon 9ca7288622 psi: removed conflict with master 2019-01-11 13:17:14 +10:30
saxon cda6999639 psi: not using named byte in asByte 2019-01-08 20:06:07 +10:30
saxon 872d689957 psi: PatTableID=>patID and PmtTableID=>pmtID i.e. also made unexported 2019-01-08 08:42:30 +10:30
saxon ffc1af2cd4 psi: removed declaration and initialisation of standard psi structures in std.go as this is dangerous 2019-01-07 17:13:50 +10:30
saxon 13b8c23351 psi: removed byteToBool func as can do this by other means 2019-01-07 16:30:48 +10:30
saxon ba9e5a3136 psi: renamed SD (specific data) interface to SpecificData 2019-01-07 16:27:18 +10:30
saxon a0079ef046 psi: created crc.go to put crc stuff in and renamed op.go to helpers.go 2019-01-07 12:26:58 +10:30
saxon fc72f0734a mts/psi: remove read funcs as we're not using them at this time 2019-01-07 10:30:13 +10:30
saxon fb5acb8e6f psi: fix crc update issue by not indexing from end of pmt slice, but rather getting syntax section length field and using that to index crc 2019-01-03 17:56:08 +10:30
saxon 692f5772a1 mts: removed usage of word len, and removed empty import 2019-01-02 10:26:34 +10:30
saxon c739b10f86 mts: removed repeated use of addPadding func 2018-12-27 14:11:23 +10:30
saxon 49a6acbde8 mts: some more const naming improvements 2018-12-27 13:29:08 +10:30
saxon fbdce669e7 revid: cleaned and added commenting 2018-12-14 16:46:36 +10:30
saxon d961cf172d psi: indicated that time data size const is in bytes to be consistent with storage of uint64 2018-12-14 16:20:20 +10:30
saxon 21dd2f4b70 revid: using location instead of gps in names 2018-12-14 16:02:47 +10:30
saxon 35d86b559d revid & psi: fixed playback issues... added padding to pat/pmt tables 2018-12-13 15:09:23 +10:30
saxon f320746b5d psi: wrote test for gpsUpdate - appears to be working 2018-12-13 12:52:23 +10:30
saxon 3cf6c00991 psi: restructured psi_test.go and started writing tests for gps 2018-12-13 12:52:23 +10:30
saxon 14e5676f6f psi: added file headers 2018-12-13 12:52:23 +10:30
saxon d8c46eefaa psi: restructuring to make neater 2018-12-13 12:52:23 +10:30
saxon 68eec9de98 psi: wrote func for update timstamp - as well as test (passes). Also wrote func for get timestamp - as well as test (passes) 2018-12-13 12:52:23 +10:30
saxon c6cf3e7244 psi: wrote test for timestampToBytes and also for pmt with timestamp to bytes - everything working as expected 2018-12-13 12:52:23 +10:30
saxon a5fa6bed5f psi: wrote first tests, for simple pat and pmt tables. Pat writing seems to be working 2018-12-13 12:52:23 +10:30
saxon 9e7b65ac6a psi: working on psi test file 2018-12-13 12:52:23 +10:30
saxon 8fe430f5f5 psi: start writing testing file 2018-12-13 12:52:23 +10:30
saxon 94cefe848a psi: wrote read func for pat, pmt, desc and started writing for essd 2018-12-13 12:52:23 +10:30
saxon 2ffa0f9b7b psi: starting to write read functions for psi and tss 2018-12-13 12:52:23 +10:30
saxon ba35615964 psi: completed writing Bytes() for PSI table 2018-12-13 12:52:23 +10:30
saxon 42038a8cb9 psi: wrote Bytes() for TSS and almost done writing for PSI 2018-12-13 12:52:23 +10:30
saxon fa0498bc52 psi: wrote bytes() for pat 2018-12-13 12:52:23 +10:30
saxon 1fd9bed1e4 psi: wrote bytes() for pmt 2018-12-13 12:52:23 +10:30