From 644ef7aea8e9f007e56f1a62fc0c511e303f8abf Mon Sep 17 00:00:00 2001 From: Saxon Milton Date: Wed, 10 Jan 2018 10:33:28 +1030 Subject: [PATCH] Updating Remote: Working on PSI stuff and also an efficient buffer implementation to make appends faster --- efficientbuffer/EfficientBuffer.go | 15 +++++++++++++ mpegts/psi/pat.go | 36 ++++++++++++++++++++++++++++++ mpegts/psi/pmt.go | 36 ++++++++++++++++++++++++++++++ 3 files changed, 87 insertions(+) create mode 100644 efficientbuffer/EfficientBuffer.go create mode 100644 mpegts/psi/pat.go create mode 100644 mpegts/psi/pmt.go diff --git a/efficientbuffer/EfficientBuffer.go b/efficientbuffer/EfficientBuffer.go new file mode 100644 index 00000000..1989f270 --- /dev/null +++ b/efficientbuffer/EfficientBuffer.go @@ -0,0 +1,15 @@ +package efficientbuffer + +type EfficientBuffer struct { + +} + +// TODO: work out how I can combine the following two functions into one +// using interfaces - we check what type it is and deal with accordingly +func Append(b1 *EfficientBuffer, b2 *EfficientBuffer)(out *EfficientBuffer){ + +} + +func Append(b1 *EfficientBuffer, b2 []byte)(out *EfficientBuffer){ + +} diff --git a/mpegts/psi/pat.go b/mpegts/psi/pat.go new file mode 100644 index 00000000..0cb6d00d --- /dev/null +++ b/mpegts/psi/pat.go @@ -0,0 +1,36 @@ +/* +NAME + revid - a testbed for re-muxing and re-directing video streams as MPEG-TS over various protocols. + +DESCRIPTION + See Readme.md + +AUTHOR + Alan Noble + +LICENSE + revid is Copyright (C) 2017 Alan Noble. + + It is free software: you can redistribute it and/or modify them + under the terms of the GNU General Public License as published by the + Free Software Foundation, either version 3 of the License, or (at your + option) any later version. + + It is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + for more details. + + You should have received a copy of the GNU General Public License + along with revid in gpl.txt. If not, see [GNU licenses](http://www.gnu.org/licenses). +*/ + +package psi + +type PAT struct { + +} + +type (p *PAT)ToByteSlice()(output []byte){ + +} diff --git a/mpegts/psi/pmt.go b/mpegts/psi/pmt.go new file mode 100644 index 00000000..4805331b --- /dev/null +++ b/mpegts/psi/pmt.go @@ -0,0 +1,36 @@ +/* +NAME + revid - a testbed for re-muxing and re-directing video streams as MPEG-TS over various protocols. + +DESCRIPTION + See Readme.md + +AUTHOR + Alan Noble + +LICENSE + revid is Copyright (C) 2017 Alan Noble. + + It is free software: you can redistribute it and/or modify them + under the terms of the GNU General Public License as published by the + Free Software Foundation, either version 3 of the License, or (at your + option) any later version. + + It is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + for more details. + + You should have received a copy of the GNU General Public License + along with revid in gpl.txt. If not, see [GNU licenses](http://www.gnu.org/licenses). +*/ + +package psi + +type PMT struct { + +} + +func (p* PMT)ToByteSlice()(output []byte){ + +}