Commit Graph

16 Commits

Author SHA1 Message Date
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 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