Yauheni Akhotnikau
98d9f2f132
Fix for some warning from VC++ compiler.
...
static_cast is used in several places where size_t has to be truncated
to uint32_t or int32_t.
2022-07-08 11:54:42 +03:00
Niels Moseley
cb209ece81
API change: Cap_setAutoProperty now returns a default value. OSX: changed USB PIPE stall error to VERBOSE to avoid log pollution.
2017-10-04 14:35:37 +02:00
Niels Moseley
cb4be52124
* Fixed linux CloseStream bug that caused a delay of multiple seconds.
...
* Added FPS support on Linux.
* Increased frame polling speed of Linux oc-gtk test program.
* Added support for brightness, contrast, autogain etc. properties.
2017-09-28 13:22:42 +02:00
Niels Moseley
b5a2d1ffe7
Fixed bug in getAutoProperty that set properties.. Updated windows test program.
2017-09-21 17:05:13 +02:00
Niels Moseley
ec88cb91f0
Added get Property C lib and abstract classes
2017-09-21 15:38:05 +02:00
Niels A. Moseley
a1ca507c7c
Fixed stream ID lookup bug that caused streamIDs != 0 to be flagged as invalid
2017-08-16 23:14:25 +02:00
Niels A. Moseley
00a47984b5
Fixed a memory leak where context didn't delete the DeviceInfo* objects. Added storing of AVCaptureDevice pointer into OSX platformdeviceinfo.h
2017-08-12 21:55:56 +02:00
Niels Moseley
00630b2723
Added Cap_getDeviceUniqueID() to C API for getting a decorated device name to (hopefully) uniquely ID a camera. Still needs Linux updates.
2017-08-02 21:51:19 +02:00
Niels Moseley
c831648913
Updated doxygen project file to have relative paths. Updated documentation of C API functions. Added MIT license to platform independent code files
2017-08-01 12:54:10 +02:00
Niels Moseley
271b75d9b0
Unified the focus/exposure/zoom interface to three get/set calls.
2017-08-01 01:49:24 +02:00
Niels Moseley
8949cded94
Extended the C API to include focus controls and implemented them for windows
2017-07-25 17:07:57 +02:00
Niels Moseley
c4a9bc27c4
* Stream::submitBuffer is now virtual so platforms can implement their frame buffer conversion routines there. (note: might be useful to have deferred conversion later on).
...
* Added const to bitmap pointer in Stream::submitBuffer to make clear that it should not modify the buffer.
* Added saving of frames using 'w' key in windows test program.
2017-07-17 17:22:28 +02:00
Niels Moseley
f5b37dff1b
Fixed memory leak where destroying the context class didn't destroy the streams. As a result, only Platformstream destructor should now call close(), not Stream::~Stream.
2017-07-14 16:37:01 +02:00
Niels Moseley
13cf37160e
updated windows-specific frame format code and test program.
2017-07-12 23:24:43 +02:00
Niels Moseley
9416f72ce7
Update for windows-specific frame format enumeration. Needs refactoring.
2017-07-12 22:24:21 +02:00
Niels Moseley
f44a08d53d
* Added buffer format support in the C API.
...
* Added frame info to DeviceInfo and Context classes.
* Updated windows test program to show the frame infos.
TODO: actually fill the frame info data in device enumeration on windows/linux platforms.
2017-07-12 16:29:18 +02:00
Niels Moseley
176f8423d0
Added more platform separation between libmain.cpp, Context and PlatformContext.
2017-07-11 16:17:44 +02:00
Niels Moseley
b4c384ce45
Changed m_devices from containing DeviceInfo to DeviceInfo* to allow better separation between platform dependent code.
2017-07-11 15:45:50 +02:00
Niels Moseley
a14f3a2279
Library now has working exposure calls.
2017-07-11 01:22:16 +02:00
Niels Moseley
8839e04459
Created platform dependent and independent classes for better separation.
...
Platform independent stuff is now in 'common', while the platform dependent stuff is in the corresponding platform directory (win, linux mac).
2017-07-11 00:49:29 +02:00