2020-12-26 14:12:05 -08:00
|
|
|
// Copyright (c) FIRST and other WPILib contributors.
|
|
|
|
|
// Open Source Software; you can modify and/or share it under the terms of
|
|
|
|
|
// the WPILib BSD license file in the root directory of this project.
|
2018-10-23 22:59:47 -07:00
|
|
|
|
|
|
|
|
#include "cscore_cpp.h"
|
|
|
|
|
|
|
|
|
|
namespace cs {
|
|
|
|
|
|
2021-06-06 16:13:58 -07:00
|
|
|
CS_Source CreateUsbCameraDev(std::string_view name, int dev,
|
2018-10-23 22:59:47 -07:00
|
|
|
CS_Status* status) {
|
|
|
|
|
*status = CS_INVALID_HANDLE;
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
2021-06-06 16:13:58 -07:00
|
|
|
CS_Source CreateUsbCameraPath(std::string_view name, std::string_view path,
|
2018-10-23 22:59:47 -07:00
|
|
|
CS_Status* status) {
|
|
|
|
|
*status = CS_INVALID_HANDLE;
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
2021-06-06 16:13:58 -07:00
|
|
|
void SetUsbCameraPath(CS_Source source, std::string_view path,
|
2020-07-05 22:09:44 -07:00
|
|
|
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
|