Updating Remote: Working on PSI stuff and also an efficient buffer implementation to make appends faster

This commit is contained in:
Saxon Milton 2018-01-10 10:33:28 +10:30
parent fd5a6a1ec7
commit 644ef7aea8
3 changed files with 87 additions and 0 deletions

View File

@ -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){
}

36
mpegts/psi/pat.go Normal file
View File

@ -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 <anoble@gmail.com>
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){
}

36
mpegts/psi/pmt.go Normal file
View File

@ -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 <anoble@gmail.com>
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){
}