Commit Graph

45 Commits

Author SHA1 Message Date
Saxon 323cc185dc codec/mjpeg/jpeg.go: defining consts for SOS header fields 2020-01-02 11:20:21 +10:30
Saxon 49138ce021 codec/mjpeg/jpeg.go: defining consts for SOF0 header fields 2020-01-01 19:15:32 +10:30
Saxon 3f4561da5b codec/mjpeg/jpeg.go: defining consts for JFIF header 2020-01-01 18:34:51 +10:30
Saxon d146b65c57 codec/mjpeg/utils.go: added TODO in file header DESCRIPTION field to make stuff in this file exported in codecutil 2019-12-29 22:59:29 +10:30
Saxon 5b8f71b7d8 codec/mjpeg: renamed putBuffer.putBuf to putBytes 2019-12-29 22:57:35 +10:30
Saxon 13e2571230 codec/mjpeg/jpeg.go: renamed fields of putBuffer struct 2019-12-29 22:55:27 +10:30
Saxon bf865e48c5 codec/mjpeg/jpeg.go: made JFIF header label local const 2019-12-29 22:50:20 +10:30
Saxon e0397e1769 codec/mjpeg/jpeg.go: improve Context struct field names 2019-12-29 22:47:38 +10:30
Saxon c691d4c1ff codec/mjpeg: renamed Ctx type to Context and name value of this type ctx instead of c 2019-12-29 22:40:54 +10:30
Saxon b5f87481ba codec/mjpeg/jpeg.go: comment global slices used for huffman table creation 2019-12-29 22:16:09 +10:30
Saxon 9a02d295fe codec/mjpeg/utils.go: using BigEndian.Uint16 in get16 2019-12-23 14:24:08 +10:30
Saxon 2d7a400b3e codec/mjpeg/jpeg.go: renamed ParseScan to ParsePayload, updated call and comment 2019-12-23 14:24:08 +10:30
Saxon 545e7b858f codec/mjpeg/jpeg.go: Fixed comment for Ctx struct 2019-12-23 14:24:08 +10:30
Saxon 23d58e1b12 codec/mjpeg/extract.go: simplified error message when can't get RTP payload 2019-12-23 14:24:08 +10:30
Saxon 5cd4a0a23c codec/mjpeg/jpeg.go: fixed indentation on file header 2019-12-23 14:24:08 +10:30
Saxon 495e5c615a codec/mjpeg/jpeg.go: fixed indentation in file header 2019-12-23 14:24:08 +10:30
Saxon fa4d7b8141 codec/mjpeg/extract.go: corrected comment for Extractor.dst field 2019-12-23 14:24:08 +10:30
Saxon 90ab359599 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).
2019-12-23 14:24:08 +10:30
Saxon e3b6d2101a Fixed bugs, now working 2019-12-23 14:24:08 +10:30
Saxon ba25cdfd12 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.
2019-12-23 14:24:07 +10:30
Saxon c2ce700cbd 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.
2019-12-23 14:24:07 +10:30
Saxon 63f694a0a5 codec/mjpeg/jpeg.go: added writeHuffman function to write JPEG huffman tables to an io.Writer. 2019-12-23 14:24:07 +10:30
Saxon 4781a02ec5 codec/mjpeg/jpeg.go: added putMarker function to write JPEG marker codes to an io.Writer 2019-12-23 14:24:07 +10:30
Saxon 6c78ff49cd codec/mjpeg: added jpeg.go file to hold JPEG specific stuff and added some JPEG marker codes. 2019-12-23 14:24:07 +10:30
Saxon 39c66bdfd6 codec/mjpeg/utils.go: using BigEndian.Uint16 in get16 2019-12-23 13:59:27 +10:30
Saxon 7ee35f650f codec/mjpeg/jpeg.go: renamed ParseScan to ParsePayload, updated call and comment 2019-12-23 12:59:25 +10:30
Saxon 4df5f11364 codec/mjpeg/jpeg.go: Fixed comment for Ctx struct 2019-12-23 12:54:31 +10:30
Saxon 6c379458d7 codec/mjpeg/extract.go: simplified error message when can't get RTP payload 2019-12-23 12:51:21 +10:30
Saxon 6407f24d90 codec/mjpeg/jpeg.go: fixed indentation on file header 2019-12-23 12:48:08 +10:30
Saxon 870c0bc3fa codec/mjpeg/jpeg.go: fixed indentation in file header 2019-11-23 15:34:59 +10:30
Saxon 5b3988a5e0 codec/mjpeg/extract.go: corrected comment for Extractor.dst field 2019-11-23 15:33:41 +10:30
Saxon 82d9e5e8bd 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).
2019-11-23 15:25:18 +10:30
Saxon e467c7792d Fixed bugs, now working 2019-11-22 13:05:11 +10:30
Saxon bee8cd270c 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.
2019-11-20 13:40:07 +10:30
Saxon eaac50f339 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.
2019-11-16 23:12:08 +10:30
Saxon a63cf5a1b7 codec/mjpeg/jpeg.go: added writeHuffman function to write JPEG huffman tables to an io.Writer. 2019-11-15 16:25:35 +10:30
Saxon 7577cfa0c4 codec/mjpeg/jpeg.go: added putMarker function to write JPEG marker codes to an io.Writer 2019-11-15 15:41:02 +10:30
Saxon f5b6af559f codec/mjpeg: added jpeg.go file to hold JPEG specific stuff and added some JPEG marker codes. 2019-11-15 15:11:53 +10:30
Saxon 7181532ccb codec/mjpeg/lex.go changed error checks for io.EOF to positive checks 2019-10-20 09:08:19 +10:30
Saxon 1c9146eec0 codec/mjpeg/lex.go: returning nil error from Lex if we get io.EOF on reading bytes 2019-10-03 00:32:34 +09:30
Saxon 980cf8da21 codec: H264 and MJPEG lexers now using codecutil package for byte scanner functionality 2019-05-22 11:07:39 +09:30
Saxon 478db11ecc codec: file descriptions under file header so that they are put in godoc 2019-05-06 15:47:51 +09:30
Saxon 314a8dab9a codec: updated commenting and file header descriptions for files in h265 and mjpeg packages 2019-05-03 19:52:23 +09:30
Saxon 32621f0cfe av: fixed build errors 2019-04-26 20:46:43 +09:30
Saxon b42e7f9b13 codec: created h264 and mjpeg packages to house lexers 2019-04-26 20:31:12 +09:30