Commit Graph

3787 Commits

Author SHA1 Message Date
Saxon Milton 6c8b980b2f Merged in avdevice-interface (pull request #270)
revid: AVDevice and implementations

Approved-by: Alan Noble <anoble@gmail.com>
2019-11-06 12:04:21 +00:00
Saxon 9314e0d32e revid/config/config.go: fixed constant names in comments for Input and Outputs fields of Config 2019-11-06 21:26:39 +10:30
Saxon 61b1059205 device/device.go: fixed file header 2019-11-06 17:47:14 +10:30
Saxon 57d73a8d0a created av/device package and sub packages raspivid, geovision, webcam and file
av/device/device.go now contains the AVDevice interface and implementations of this
interface, namely, raspivid, geovision, webcam and file are contained in the packages
av/device/raspivid, av/device/geovision, av/device/webcam and av/device/file
respctively. config.go and testing was also moved to a new package called config.go in
order to remove would be circular dependency between AVDevice implementations and revid.
Modifications were made elsewhere expecting config.Config to be part of the revid package.
2019-11-06 17:44:50 +10:30
Saxon 9a93e92b50 revid/webcam.go: fixed error messages in Webcam.Stop 2019-11-06 11:31:12 +10:30
Saxon a02ea397d5 revid/geovision.go: fixed GeoVision constructor name, NewGeovision->NewGeoVision 2019-11-06 10:45:48 +10:30
Saxon bc7f450c5f revid: fixed AVDevice comment 2019-11-06 08:48:18 +10:30
Saxon 7dc15d8095 revid-cli: updated input and output const names 2019-11-05 20:22:05 +10:30
Saxon a6aef125fd revid: cleaned up AVDevice implementations and added documentation to them 2019-11-05 20:14:04 +10:30
Saxon 50c7fe139b revid/file.go: wrote AVDevice implementation for file containing audio or video media 2019-11-05 12:36:27 +10:30
Saxon 81d168a277 revid/webcam.go: wrote implementations of Start, Stop and Read methods 2019-11-05 11:56:34 +10:30
Saxon 8302e959d9 revid/webcam.go: started writing implementation of AVDevice for webcams 2019-11-05 10:57:12 +10:30
Saxon 5afad9c5aa revid/geovision.go: wrote Read method implementation 2019-11-04 19:43:02 +10:30
Saxon ce8dc9a4b3 revid/geovision.go: wrote Stop method implementation 2019-11-04 19:27:05 +10:30
Saxon 1497f4a575 revid/geovision.go: wrote Start method implementation 2019-11-04 19:12:13 +10:30
Saxon bea4d46c72 revid/geovision.go: added geovision.go file and started geovision implementation of AVDevice interface 2019-11-04 15:47:18 +10:30
Saxon d5aa968a27 revid/geovision.go: created file geovision.go to hold geovision implementation of AVDevice and wrote Set function 2019-11-02 10:54:50 +10:30
Saxon 82903681ee revid/raspivid.go: wrote Stop implementation for Raspivid AVDevice implementation 2019-11-02 10:42:56 +10:30
Saxon b2a9dbf17d revid/raspivid.go: wrote Read implementatino for io.Reader interface 2019-11-02 10:36:55 +10:30
Saxon b554c2820a revid: wrote implementation of Start method for Raspivid implementation 2019-11-02 10:31:40 +10:30
Saxon 924858c1c0 revid: added raspivid.go file to hold Raspivid implementation of AVDevice interface
Wrote consts for default values, wrote global errors, wrote multiError type (might move)
wrote Set method.
2019-11-01 21:49:30 +10:30
Saxon 20bf962fa3 revid: added AVDevice interface 2019-10-29 19:02:55 +10:30
Saxon Milton 6dccc5c4d5 Merged in extracter-to-extractor (pull request #269)
codec/h264/extract.go: extracter->extractor everywhere
2019-10-27 22:42:17 +00:00
Saxon 47f6dcfe51 codec/h264/extract.go: extracter->extractor everywhere 2019-10-28 08:41:49 +10:30
Saxon Milton 8edfbeb369 Merged in break-bad-sat-or-bright (pull request #268)
revid/revid.go: break if the given saturation or brightness vars are invalid
2019-10-25 21:57:47 +00:00
Saxon 7dac9799be revid/revid.go: break if the given saturation or brightness vars are invalid 2019-10-26 08:24:53 +10:30
Saxon Milton 21493cf969 Merged in gvctrl-chan-1-support (pull request #267)
input/gvctrl: add support for channel 1 on GeoVision, and subsequently 1080p resolution

Approved-by: Alan Noble <anoble@gmail.com>
2019-10-25 11:00:19 +00:00
Saxon f1c0fc1dbf revid: created CameraChan config field to allow selection of GeoVision camera channel 2019-10-25 12:12:30 +10:30
Saxon f74e3a3d7c input/gvctrl/gvctrl.go: added extra form fields in the case of channel 1 control
Also updated testing. Added a new test.
2019-10-25 12:04:25 +10:30
Saxon c01879d364 input/gvctrl/gvctrl_test.go: fixed TestHeight 2019-10-25 12:04:25 +10:30
Saxon a5064e872c input/gvctrl/gvctrl.go: adapted CBRBitrate option function to supported 1080 resolution bitrates 2019-10-25 12:04:25 +10:30
Saxon d3cb619389 input/gvctrl/gvctrl.go: adapted Height option function to support channel 1 resolution options (just 1080p so far) 2019-10-25 12:04:25 +10:30
Saxon 710a245c89 input/gvctrl: added Channel option function and started making changes
Added a field called ch to hold the channel. Ch can be set using Channel option function.
Created default channel const and setting ch field in newSettings. Started making changes
to other option functions, namely CodecOut, subsequently, wrote testing for it."
2019-10-25 12:04:25 +10:30
Saxon Milton 392ed399d9 Merged in use-gvctrl-in-revid (pull request #266)
Use gvctrl in revid

Approved-by: Alan Noble <anoble@gmail.com>
2019-10-25 01:27:05 +00:00
Saxon a30c17d5eb input/gvctrl: remove go.mod file 2019-10-23 20:24:59 +10:30
Saxon 4a68c42510 cmd/revid-cli/main.go: fixed description for CameraIP flag 2019-10-23 20:02:10 +10:30
Saxon a40aef5160 circleci: updated golang version to 1.13 2019-10-23 16:17:44 +10:30
Saxon 529ca0d547 codec/h264/extract.go: simplified switch 2019-10-23 14:38:18 +10:30
Saxon 2b52266407 revid/inputs.go: corrected ipCamPass value 2019-10-23 14:06:16 +10:30
Saxon 02a44ecea2 fixed audio testing requiring logger 2019-10-23 12:59:12 +10:30
Saxon 38cfad7b67 revid: fixing some more bugs
Fixed H264 RTP extractor. Fine tuned some timing regarding geovision setup. Added some more
logging to geovision setup.
2019-10-23 12:48:22 +10:30
Saxon f336a03d7a revid: general bug fixing
Use http instead of https in gvctrl getLogin request. Gave RTP client a close method so that the conn can
be closed after we're done with the client. Put timeout on reading from the RTP client PacketConn so that
we don't hang on the ReadFrom call if the conn is closed. Closing the RTSP and RTP clients when
startRTSPCamera is returned.
2019-10-22 23:04:33 +10:30
Saxon 504179c03b revid: added code to deal with Input var 2019-10-22 16:17:35 +10:30
Saxon 8c1c192218 revid: revid config to update geovision configuration using gvctrl
Added required new params to config structure, and therefore also added new defaults and validation checking.
Also updated revid's update func so that we can control new parameters using vars. Now using gvctrl in
startRTSPCamera function and interpreting revid config to configure camera.
2019-10-22 14:54:38 +10:30
Saxon Milton 38eed6bb2d Merged in fix-mjpeg-lex (pull request #261)
codec/mjpeg/lex.go: returning nil error from Lex if we get io.EOF on reading bytes

Approved-by: Alan Noble <anoble@gmail.com>
2019-10-20 02:24:45 +00:00
Saxon b418749be5 codec/h264/h264dec/fuzz/helpers.c: actually committed this file now: 2019-10-20 09:36:55 +10:30
Saxon d0f99b581d codec/h264/h264dec/fuzz/helpers.c: checking if malloc bit reader mem returns NULL 2019-10-20 09:29:22 +10:30
Saxon 08264f7bf5 codec/h264/h264dec/fuzz/fuzzParseLevelPrefix/fuzz.go: swapped got and want to correct orientation 2019-10-20 09:17:03 +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 Milton ce6c12cce8 Merged in geovision-api (pull request #263)
input/gvctrl: GeoVision control API

Approved-by: Alan Noble <anoble@gmail.com>
2019-10-17 22:31:16 +00:00