Commit Graph

3444 Commits

Author SHA1 Message Date
Saxon 4834aa8ca2 codec/mjpeg/jpeg.go: don't need to set c.blen to 0 2020-01-04 13:53:04 +10:30
Saxon ef4e9a3f69 codec/mjpeg: removed putBuffer and its usage 2020-01-04 13:10:40 +10:30
Saxon ab2f2e4c0b codec/mjpeg/testdata/expect.mjpeg: updated expected MJPEG file 2020-01-04 01:55:56 +10:30
Saxon 692325523c codec/mjpeg/jpeg.go: removed usage of putBuffer in parsePayload 2020-01-04 01:50:56 +10:30
Saxon 7ee8fa566c codec/mjpeg: removed byteStream type and its usage 2020-01-04 01:32:45 +10:30
Saxon f67fcd35e7 codec/mjpeg/jpeg.go: fixed conflicts 2020-01-03 19:41:23 +10:30
Saxon 20b52dc5f0 codec/mjpeg: added jpeg_test.go, tests.go and expected output, expect.mjpeg to test ParsePayload function in jpeg.go 2020-01-03 19:38:31 +10:30
Saxon d98da29596 codec/mjpeg/jpeg.go: removed 'mark' function 2020-01-03 19:38:30 +10:30
Saxon 210d368adb codec/mjpeg/jpeg.go: simplified if statement 2020-01-03 19:38:30 +10:30
Saxon c42d58ea85 codec/mjpeg/jpeg.go: componenting consts for SOF0 and SOS headers 2020-01-03 19:38:30 +10:30
Saxon ac23e126e3 codec/mjpeg/jpeg.go: defining consts for SOS header fields 2020-01-03 19:38:30 +10:30
Saxon 6bdfdb1f2a codec/mjpeg/jpeg.go: defining consts for SOF0 header fields 2020-01-03 19:38:30 +10:30
Saxon 1d0c10a402 codec/mjpeg/jpeg.go: defining consts for JFIF header 2020-01-03 19:38:30 +10:30
Saxon 6f8300fdfb codec/mjpeg/utils.go: added TODO in file header DESCRIPTION field to make stuff in this file exported in codecutil 2020-01-03 19:38:30 +10:30
Saxon 423a5c12c4 codec/mjpeg: renamed putBuffer.putBuf to putBytes 2020-01-03 19:38:30 +10:30
Saxon 4c04cc033a codec/mjpeg/jpeg.go: renamed fields of putBuffer struct 2020-01-03 19:38:30 +10:30
Saxon e8fd1a8661 codec/mjpeg/jpeg.go: made JFIF header label local const 2020-01-03 19:38:30 +10:30
Saxon 029a59fc78 codec/mjpeg/jpeg.go: improve Context struct field names 2020-01-03 19:38:30 +10:30
Saxon ef699451d5 codec/mjpeg: renamed Ctx type to Context and name value of this type ctx instead of c 2020-01-03 19:38:30 +10:30
Saxon 7c8ba0ae4b codec/mjpeg/utils.go: using BigEndian.Uint16 in get16 2020-01-03 17:15:06 +10:30
Saxon 657ed2f277 codec/mjpeg/jpeg.go: renamed ParseScan to ParsePayload, updated call and comment 2020-01-03 17:15:06 +10:30
Saxon d4deb5b641 codec/mjpeg/jpeg.go: Fixed comment for Ctx struct 2020-01-03 17:15:06 +10:30
Saxon db0e292507 codec/mjpeg/extract.go: simplified error message when can't get RTP payload 2020-01-03 17:15:06 +10:30
Saxon 341af70d81 codec/mjpeg/jpeg.go: fixed indentation on file header 2020-01-03 17:15:06 +10:30
Saxon 7587a15fbf codec/mjpeg/jpeg.go: fixed indentation in file header 2020-01-03 17:15:06 +10:30
Saxon e1e890d49e codec/mjpeg/extract.go: corrected comment for Extractor.dst field 2020-01-03 17:15:06 +10:30
Saxon 398543ac8e codec/mjpeg: tidying up
Separated my code from code that was ported from ffmpeg (differen copyright). Also added utils.go file to house the putBuffer and bytestream types. Reduced copying and use of bytes.Buffer.
Instead expanded putBuffer functionality so that I can use this throughout process (reduce copying from buffer to buffer).
2020-01-03 17:15:06 +10:30
Saxon 2d824707ee Fixed bugs, now working 2020-01-03 17:15:06 +10:30
Saxon f0f401ab8c codec/mjpeg/extract.go: wrote Extractor type
Wrote extractor type that provides an Extract function to extract JPEG frames from an RTP/MJPEG stream and writes them to a destination.
2020-01-03 17:15:05 +10:30
Saxon 0ae133d7fb codec/mjpeg/jpeg.go: added writeHeader function to write JPEG header
This also included the addition of some lunimance and chrominance tables, a multiError type (implements error) and a putter type, that will put uint16s, bytes and "buffers" into a byte
slice.
2020-01-03 17:15:05 +10:30
Saxon 238771459b codec/mjpeg/jpeg.go: added writeHuffman function to write JPEG huffman tables to an io.Writer. 2020-01-03 17:15:05 +10:30
Saxon db877fd934 codec/mjpeg/jpeg.go: added putMarker function to write JPEG marker codes to an io.Writer 2020-01-03 17:15:05 +10:30
Saxon c6252195af codec/mjpeg: added jpeg.go file to hold JPEG specific stuff and added some JPEG marker codes. 2020-01-03 17:15:05 +10:30
Saxon 47d145a222 codec/mjpeg: added jpeg_test.go, tests.go and expected output, expect.mjpeg to test ParsePayload function in jpeg.go 2020-01-03 17:10:18 +10:30
Ella Pietraroia b9df8e388a all mjpeg input codecs will have constant bitrate, as variable bitrate is only for h264 2020-01-03 16:47:38 +10:30
Trek Hopton 5a2a5496bb Merged in hlsjs-code-m3u (pull request #322)
mjpeg-player: added m3u hls.js code
2020-01-02 08:21:21 +00:00
Trek H 42ccdd1ef7 mjpeg-player: added m3u hls.js code
Added original hls.js code for m3u loading and parsing which will be modified to work with our mjpeg player.
2020-01-02 18:36:52 +10:30
Scott Barnard ddd7b5750d Merged in multiple-filters (pull request #315)
Multiple filters

Approved-by: Saxon Milton <saxon.milton@gmail.com>
2020-01-02 06:38:24 +00:00
Scott 523dfab86b revid/config/config.go: Added full stop. 2020-01-02 17:05:50 +10:30
Scott d853860526 Added type data for filters variable 2020-01-02 16:14:37 +10:30
Scott e5db4f0f1c Fixed shared windows between motion filters bug 2020-01-02 16:12:48 +10:30
Scott f74e08d70a Filter safely closes. 2020-01-02 16:12:48 +10:30
Scott 15efc8331d Initial implementation 2020-01-02 16:12:48 +10:30
Scott Barnard c2df8a8fc1 Merged in enums-var-type (pull request #320)
Outputs variable uses the enums var type

Approved-by: Saxon Milton <saxon.milton@gmail.com>
2020-01-02 05:41:42 +00:00
Saxon 36bcd361ed codec/mjpeg/jpeg.go: removed 'mark' function 2020-01-02 15:42:15 +10:30
Scott Barnard 24c9377017 Merged in show-windows-var (pull request #321)
Show windows var

Approved-by: Saxon Milton <saxon.milton@gmail.com>
2020-01-02 04:45:24 +00:00
Scott 1f8ef44216 revid/config/config.go: Made string a const, removed redundant == true 2020-01-02 15:13:39 +10:30
Saxon 5a09a5f12d codec/mjpeg/jpeg.go: simplified if statement 2020-01-02 15:04:16 +10:30
Scott 442ad27e98 revid/config/config.go: Validation for ShowWindows, so that windows cannot be opened on the raspberry pi. 2020-01-02 15:03:43 +10:30
Trek Hopton af6532296d Merged in mjpeg-player-new (pull request #303)
Player demuxing MTS and playing MJPEG from file (new branch).

Approved-by: Alan Noble
2020-01-02 03:41:36 +00:00