2018-10-23 22:59:47 -07:00
|
|
|
/*----------------------------------------------------------------------------*/
|
2020-07-05 22:09:44 -07:00
|
|
|
/* Copyright (c) 2016-2020 FIRST. All Rights Reserved. */
|
2018-10-23 22:59:47 -07:00
|
|
|
/* Open Source Software - may be modified and shared by FRC teams. The code */
|
|
|
|
|
/* must be accompanied by the FIRST BSD license file in the root directory of */
|
|
|
|
|
/* the project. */
|
|
|
|
|
/*----------------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
|
|
#include "cscore_cpp.h"
|
|
|
|
|
|
|
|
|
|
namespace cs {
|
|
|
|
|
|
|
|
|
|
CS_Source CreateUsbCameraDev(const wpi::Twine& name, int dev,
|
|
|
|
|
CS_Status* status) {
|
|
|
|
|
*status = CS_INVALID_HANDLE;
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
CS_Source CreateUsbCameraPath(const wpi::Twine& name, const wpi::Twine& path,
|
|
|
|
|
CS_Status* status) {
|
|
|
|
|
*status = CS_INVALID_HANDLE;
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
2020-07-05 22:09:44 -07:00
|
|
|
void SetUsbCameraPath(CS_Source source, const wpi::Twine& path,
|
|
|
|
|
CS_Status* status) {
|
|
|
|
|
*status = CS_INVALID_HANDLE;
|
|
|
|
|
}
|
|
|
|
|
|
2018-10-23 22:59:47 -07:00
|
|
|
std::string GetUsbCameraPath(CS_Source source, CS_Status* status) {
|
|
|
|
|
*status = CS_INVALID_HANDLE;
|
|
|
|
|
return std::string{};
|
|
|
|
|
}
|
|
|
|
|
|
2018-12-30 11:48:18 -08:00
|
|
|
UsbCameraInfo GetUsbCameraInfo(CS_Source source, CS_Status* status) {
|
|
|
|
|
*status = CS_INVALID_HANDLE;
|
|
|
|
|
return UsbCameraInfo{};
|
|
|
|
|
}
|
|
|
|
|
|
2018-10-23 22:59:47 -07:00
|
|
|
std::vector<UsbCameraInfo> EnumerateUsbCameras(CS_Status* status) {
|
|
|
|
|
*status = CS_INVALID_HANDLE;
|
|
|
|
|
return std::vector<UsbCameraInfo>{};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} // namespace cs
|