Lukas Herman
f7068296d3
Add V4L2_PIX_FMT_YUV420 support for Linux
2020-08-19 23:09:29 -07:00
Lukas Herman
fad6c3ec4b
Add darwin camera support
...
* Add avfoundation Go and C bindings
* Add darwin camera adapter
* Add darwin camera support to README
2020-06-03 10:18:06 -04:00
Atsushi Watanabe
a3dae07854
driver/camera: support UYVY camera
2020-03-30 13:49:02 -04:00
Atsushi Watanabe
5617f478af
Get Windows camera props
...
Enumerate frame formats and use YUY2 format.
2020-02-25 18:43:14 -08:00
Atsushi Watanabe
e1ac08d484
Add initial version of windows camera driver
...
Image size is fixed to 640x480.
Pixel format is fixed to RGB.
2020-02-25 18:43:14 -08:00
Shinichi Ishimura
5b5d0152bd
Add default package file for drivers
2020-02-21 15:48:10 +09:00
Atsushi Watanabe
33b2964733
Fix data race in drivers
2020-02-19 20:21:21 -08:00
Lukas Herman
504b542376
Add DeviceType to Info and a filter function for it
...
* Add DeviceType to Info
* Update adapters to also register its device type
* Add FilterDeviceType
2020-02-14 12:22:03 -08:00
Lukas Herman
46c55deeb4
Change driver registration requirement to have an Info
...
* Move label to Info
* Replace label requirement to be an info
* Replace Label driver method to be an Info method
2020-02-14 12:22:03 -08:00
Atsushi Watanabe
993c23ee90
Use Mutex instead of WaitGroup
2020-02-13 19:35:52 -08:00
Atsushi Watanabe
29d0299c5c
Add CPU usage bench
2020-02-13 19:35:52 -08:00
Lukas Herman
1635910909
Protect mmap allocated memory by copying it into Go heap
...
- Move closing synchronization to the driver level
- Create a buffer for copying the memory allocated by mmap to Go heap
2020-02-13 19:35:52 -08:00
Atsushi Watanabe
c8bba53148
Stop video track safely
...
- Treat camera read timeout as error and return detailed errors.
- Return io.EOF on Read after Close.
- Wait finishing video read loop to avoid memory violation
as the video frames might be alloced by C or on shared memory.
2020-02-13 19:35:52 -08:00
Atsushi Watanabe
5653cdf9e8
Implement EnumerateDevices and register all devices
2020-02-12 22:24:09 -08:00
Lukas Herman
d8eda2db81
Group Adapters by their categories
...
Resolves https://github.com/pion/mediadevices/issues/22
Created 2 new directories under driver, camera and microphone. Moved
camera_linux.go and microphone_linux.go appropriately. Imported
driver/camera and driver/microphone by default.
2020-02-09 09:21:00 -08:00