Commit Graph

3753 Commits

Author SHA1 Message Date
saxon 330fdc6aa8 stream/mts/psi/psi.go: cleaned up and comment consts 2019-02-07 15:48:35 +10:30
saxon b4393e5136 stream/mts/psi/psi.go: checking that we have enough space in psi before creating descriptor 2019-02-07 15:23:41 +10:30
saxon 21265303d7 stream/mts/mpegts.go: reorganised exported constants and commented 2019-02-07 15:06:54 +10:30
saxon b8fc6d7e99 stream/mts/meta/meta.go: ReadFrom to Extract 2019-02-07 14:50:31 +10:30
saxon 46b5acb48c stream/mts/mpgets.go: removing unused consts 2019-02-07 13:59:43 +10:30
saxon 7a7be5580d stream/mts/metaEncode_test.go: wrote function comments for tests 2019-02-07 10:55:58 +10:30
saxon bb032778c6 stream/mts/metaEncode_test.go: fixed metaEncode_test.go by initialising Meta global in tests 2019-02-07 10:48:25 +10:30
saxon 66a2325dcb stream/mts/meta/meta_test.go: using table of tests for TestReadFrom 2019-02-07 10:42:01 +10:30
saxon f96f761b2f stream/mts/meta/meta_test.go: fixed up error logging in meta_test.go i.e. not doing err.Error() for %v format specifiers, and not using t.Errorf when we have no arguments 2019-02-07 09:01:40 +10:30
saxon ad671b520c stream/mts/encoder.go: put todo under comment for Meta meta.Data global 2019-02-07 08:31:02 +10:30
saxon 7cb58c81eb stream/mts/encoder.go: added comment to Meta meta.Data global as it unexported. 2019-02-07 08:29:51 +10:30
saxon fb2217a1f9 stream/mts/encoder.go: wrote todo to make Meta meta.Data struct not be global 2019-02-07 08:27:37 +10:30
saxon e2bbc84c1e cmd/revid-cli: using const strings for copyright metadata preamble 2019-02-07 08:25:37 +10:30
Saxon Milton ccb8a52db1 revid/revid.go: removing shorthand initialisations for vars already declared 2019-02-06 05:28:57 +00:00
Saxon Milton 87cb303935 revid/revid.go: again checking to see we actually have destinations before putting anything into the ring buffer 2019-02-06 05:27:35 +00:00
saxon ef4aa8efd1 revid/revid.go: reverted change regarding putting things in ringbuffer when we won't use it 2019-02-06 15:52:59 +10:30
saxon cdd6703930 } 2019-02-06 15:45:14 +10:30
Trek a8d4e0db6a adpcmgo: encodeblock function added 2019-02-06 15:39:14 +10:30
saxon 57d1dba2fb stream/mts/meta/meta.go: updated meta.NewWith so that it just uses meta.New, and now ti can add an abitrary number of things to the map. It also overwrites keys that have been repeated 2019-02-06 12:16:44 +10:30
saxon 2b7ab27763 cmd/revid-cli & stream/mts/meta: added meta.NewWith function that creates a new meta.Data and adds an initial entry. Using meta.NewWith in revid-cli to initialise mts' global meta.Data with some preamble data. 2019-02-06 10:19:12 +10:30
saxon d523677627 stream/mts/meta/meta.go: renamed Metadata struct to Data 2019-02-06 09:59:55 +10:30
saxon 9b5eb558ef stream/mts/meta/meta_test.go: Updated func comment for TestReadFrom 2019-02-06 00:01:17 +10:30
saxon 35c06c97aa stream/mts/meta/meta_test.go: not using global vars for errors 2019-02-05 23:57:53 +10:30
saxon 89b05b3cb6 stream/mts/meta/meta.go: using copy instead of append to remove key from order slice in Meta.Delete() 2019-02-05 23:29:07 +10:30
saxon cf73c853b0 stream/mts/meta/meta.go: using defer for m.mu.Unlock() Meta.Add() 2019-02-05 23:25:46 +10:30
saxon 6b32064a2b stream/mts/encoder.go: changed updateMeta signature to return bytes slice rather than passing in pointer to byte slice. 2019-02-05 23:24:00 +10:30
saxon dc46d9f0b2 stream/mts/encoder.go: not doing scoped conditional in writePSI when calling updateMeta 2019-02-05 23:18:05 +10:30
Trek 98b72bca12 adpcmgo: added ported encode and decode functions 2019-02-05 16:36:03 +10:30
saxon 6425403fcb stream/mts/encoder.go: adding copyright meta first thing 2019-02-05 13:14:42 +10:30
saxon 3364b4ea6f stream/mts/meta.go: avoiding adding same key to order slice 2019-02-05 13:11:11 +10:30
saxon 834625a9f7 stream/mts/meta: using order slice so that encoded order reamins consistent with order that we added metadata. And also now using binary.BigEndian.PutUint16() to encode len into metdata rather than doing ugly byte manipulation 2019-02-05 12:55:32 +10:30
Saxon Milton f96a04ece7 Merged in revid-cleanup (pull request #134)
revid: revid cleaning and implementation of burst mode

Approved-by: Alan Noble <anoble@gmail.com>
2019-02-05 00:34:04 +00:00
saxon de4f471201 revid/revid.go: defer r.wg.Done() in revid.outputClips routine 2019-02-05 10:50:21 +10:30
saxon a4d179039b revid/revid.go: removed default case in switch with revid.Update() 2019-02-05 10:49:05 +10:30
saxon ea8572a777 cmd/revid-cli: catching error in conversion of mp 2019-02-05 10:45:15 +10:30
saxon 4dcbd90449 cmd/revid-cli: removed another closed scope condition 2019-02-05 10:40:08 +10:30
saxon 35344402b8 cmd/revid-cli/main.go: not using closed scope conditions anymore 2019-02-05 10:32:16 +10:30
saxon ad25785b77 stream/mts/meta/meta_test.go: improved ReadFrom by checking for valid header 2019-02-04 22:48:51 +10:30
saxon 953d363b3a stream/mts/meta.go: improved const and function commenting 2019-02-04 22:38:11 +10:30
saxon 0a96d18a10 stream/mts/encoder.go: finished comment for updateMeta function 2019-02-04 22:17:39 +10:30
saxon 1570974ab7 stream/mts/encoder.go: removed init func where Meta was being initialised - just doing initialisation on same line 2019-02-04 22:14:17 +10:30
Saxon Milton 3f74b76eee Merged in write-psi-by-time (pull request #128)
stream/mts/encoder.go: writing psi based on time interval

Approved-by: Alan Noble <anoble@gmail.com>
2019-02-04 11:32:14 +00:00
saxon bd2958ba4e cmd/revid-cli & revid: added TODO for the use of Run() instead of send in cmd/revid-cli/main.go. Fixed filename in revid/revid.go file header. Renamed ret to cfg in revid.Config(). Catching error from call to revid.Stop() in revid.Udate() 2019-02-04 19:14:02 +10:30
saxon 1cdbfa2c66 cmd/revid-cli: setting mode to paused if ns is in burst mode. 2019-02-04 17:14:19 +10:30
saxon 8978f9edc5 cmd/revid-cli & revid: using goto to sleep for monitor period, and using wg.Done() at the end of output routine. 2019-02-04 17:12:30 +10:30
saxon 93e3899725 cmd/revid-cli: using ns.Send() rather than ns.Run() to poll 2019-02-04 17:04:49 +10:30
scruzin f74575e05d Merge branch 'master' of https://bitbucket.org/ausocean/av 2019-02-04 15:35:44 +10:30
saxon ee7eb84d26 revid-cli: correctly using ns.Mode() and ns.SetMode() 2019-02-04 13:25:37 +10:30
saxon 6171c4e999 revid: added handling of burstPeriod to config 2019-02-03 23:43:51 +10:30
saxon 1010721dd0 cmd/revid-cli & revid: Checking revid mode differently - now using ns.Mode(), which should soon be an available feature. Also now using ns.SetMode() - which tells netreceiver that we've changed mode. 2019-02-03 23:37:38 +10:30