Compare commits
No commits in common. "main" and "c0b0c3e87bd8cd3a0e3b58f4deb8afa3a1e72a16" have entirely different histories.
main
...
c0b0c3e87b
2
.gitignore
vendored
2
.gitignore
vendored
@ -86,3 +86,5 @@ dkms.conf
|
||||
*.out
|
||||
*.app
|
||||
|
||||
|
||||
归档.zip
|
||||
|
9
.vscode/settings.json
vendored
Normal file
9
.vscode/settings.json
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"files.associations": {
|
||||
"*.log": "log",
|
||||
"*.db": "db",
|
||||
"*.json": "jsonl",
|
||||
"gst.h": "c",
|
||||
"rtsp-server.h": "c"
|
||||
}
|
||||
}
|
6
REDME.md
Normal file
6
REDME.md
Normal file
@ -0,0 +1,6 @@
|
||||
VisionSDK_C_GCC9.3.0_armv8 文件夹是耐辐照相机的arm64版本的驱动程序
|
||||
makefile里面的交叉编译器用的绝对路径,请自行修改
|
||||
Sample.c 文件video节点是实际生成的虚拟相机设备节点
|
||||
sudo modprobe v4l2loopback 生成虚拟相机设备节点
|
||||
|
||||
归档文件是曹勇之前的版本,都不需要了
|
2
VisionSDK_C_GCC9.3.0_armv8/Makefile
Normal file
2
VisionSDK_C_GCC9.3.0_armv8/Makefile
Normal file
@ -0,0 +1,2 @@
|
||||
SampleCopy:SampleCopy.c inc/Types.h inc/Vision.h
|
||||
/home/philzhang/rk35xx_linux5.1.0/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin/aarch64-rockchip1031-linux-gnu-gcc -o SampleCopy SampleCopy.c -Iinc -Llib -Wl,-rpath=lib -lVision -lGenApi_gcc49_v3_2 -lGCBase_gcc49_v3_2 -lMathParser_gcc49_v3_2 -lNodeMapData_gcc49_v3_2 -lLog_gcc49_v3_2 -lXmlParser_gcc49_v3_2 -lopencv_core -lopencv_imgcodecs -lopencv_imgproc
|
380
VisionSDK_C_GCC9.3.0_armv8/Sample.c
Normal file
380
VisionSDK_C_GCC9.3.0_armv8/Sample.c
Normal file
@ -0,0 +1,380 @@
|
||||
#include "Vision.h"
|
||||
#include "Types.h"
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
/*
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/ioctl.h>
|
||||
*/
|
||||
#include <fcntl.h>
|
||||
#include <linux/videodev2.h>
|
||||
|
||||
|
||||
#if defined(__GNUC__)
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
#if defined(_MSC_VER) || defined(_WIN32) || defined(_WIN64)
|
||||
#include <Windows.h>
|
||||
#endif
|
||||
#define V4L2_DEV "/dev/video0"
|
||||
#define WIDTH 1920
|
||||
#define HEIGHT 1080
|
||||
|
||||
// 初始化V4L2虚拟设备
|
||||
int init_v4l2(int fd) {
|
||||
struct v4l2_format fmt = {0};
|
||||
fmt.type = V4L2_BUF_TYPE_VIDEO_OUTPUT;
|
||||
fmt.fmt.pix.width = WIDTH;
|
||||
fmt.fmt.pix.height = HEIGHT;
|
||||
fmt.fmt.pix.pixelformat = V4L2_PIX_FMT_YUYV;
|
||||
fmt.fmt.pix.field = V4L2_FIELD_NONE;
|
||||
|
||||
if (ioctl(fd, VIDIOC_S_FMT, &fmt) < 0) {
|
||||
perror("Failed to set V4L2 format");
|
||||
return -1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
/*
|
||||
bool FrameProcCb(uint16_t* pFrameInShort, uint16_t iFrameID,
|
||||
int32_t iFrameWidth, int32_t iFrameHeight,
|
||||
uint32_t iTimeCount, void* pParam) {
|
||||
int v4l_fd = *(int*)pParam;
|
||||
|
||||
if (pFrameInShort) {
|
||||
// 直接写入V4L2设备(假设数据已经是YUYV格式)
|
||||
if (write(v4l_fd, pFrameInShort, iFrameWidth * iFrameHeight * 2) < 0) {
|
||||
perror("V4L2 write failed");
|
||||
return false;
|
||||
}
|
||||
return true; // 继续接收帧
|
||||
}
|
||||
return false; // 停止接收
|
||||
}
|
||||
*/
|
||||
bool FrameProcCb(uint16_t* pFrameInShort, uint16_t iFrameID,
|
||||
int32_t iFrameWidth, int32_t iFrameHeight,
|
||||
uint32_t iTimeCount, void* pParam) {
|
||||
int v4l_fd = *(int*)pParam;
|
||||
|
||||
if (pFrameInShort) {
|
||||
// 1. 转换12bit raw到V4L2支持的格式(以YUYV为例)
|
||||
size_t yuyv_size = iFrameWidth * iFrameHeight * 2; // YUYV每像素2字节
|
||||
unsigned char* yuyv_buffer = malloc(yuyv_size);
|
||||
|
||||
// 简易转换(实际需根据12bit raw的具体排列方式调整)
|
||||
for (int i = 0; i < iFrameWidth * iFrameHeight; i++) {
|
||||
// 取高8位作为Y分量(示例,实际转换算法需根据raw格式调整)
|
||||
yuyv_buffer[i*2] = (pFrameInShort[i] >> 4) & 0xFF; // Y
|
||||
yuyv_buffer[i*2+1] = i % 2 ? 0x80 : 0x00; // U/V交替(示例值)
|
||||
}
|
||||
|
||||
// 2. 写入V4L2设备
|
||||
if (write(v4l_fd, yuyv_buffer, yuyv_size) < 0) {
|
||||
perror("V4L2 write failed");
|
||||
free(yuyv_buffer);
|
||||
return false;
|
||||
}
|
||||
|
||||
free(yuyv_buffer);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
int main(void)
|
||||
{
|
||||
int v4l_fd = open(V4L2_DEV, O_WRONLY);
|
||||
if (v4l_fd < 0 || init_v4l2(v4l_fd)) {
|
||||
fprintf(stderr, "Failed to initialize V4L2 device\n");
|
||||
return -1;
|
||||
}
|
||||
unsigned int iDeviceNum = 0;
|
||||
const char* pDeviceID = NULL;
|
||||
SDeviceInfo sDeviceInfo;
|
||||
SNICInfo sLocalInfo;
|
||||
int64_t iValue = 0;
|
||||
double fValue = 0;
|
||||
int64_t iEntryID = 0;
|
||||
int32_t iWidth = 0;
|
||||
int32_t iHeight = 0;
|
||||
int32_t iPixelBits = 0;
|
||||
int32_t iPixelIndex = 0;
|
||||
uint16_t iFrameID = 0;
|
||||
uint32_t iTimeCount = 0;
|
||||
unsigned int i = 0;
|
||||
int j = 0;
|
||||
int k = 0;
|
||||
int iAttributeNumber = -1;
|
||||
EAttrType eAttrType;
|
||||
EAttrAccessMode eAccessMode;
|
||||
char* pValue = NULL;
|
||||
int iEntryNumber = -1;
|
||||
char* pFrame = NULL;
|
||||
uint16_t* pFrameInShort = NULL;
|
||||
char* pMappedFrame = NULL;
|
||||
FILE* pFile = NULL;
|
||||
int32_t iPixelNum = 0;
|
||||
Stream pStream = NULL;
|
||||
int iKey = 0;
|
||||
//Init
|
||||
Init();
|
||||
//GetVersion
|
||||
fprintf(stderr, "SDK Version: %s\n", GetVersionText());
|
||||
//SetCallLogEnable
|
||||
if(SetCallLogEnable(true))
|
||||
{
|
||||
fprintf(stderr, "SetCallLogEnable=Enable\n");
|
||||
}else{
|
||||
fprintf(stderr, "SetCallLogEnable=Error:%s\n", GetLastErrorText());
|
||||
return 0;
|
||||
}
|
||||
//SearchforDevice
|
||||
iDeviceNum = SearchforDevice();
|
||||
if(iDeviceNum >= 0){
|
||||
fprintf(stderr, "\nTotal number of devices: %d\n\n", iDeviceNum);
|
||||
}else{
|
||||
//Uninit
|
||||
Uninit();
|
||||
fprintf(stderr, "Press Enter key to exit\n");
|
||||
scanf("%c", &iKey);
|
||||
return 0;
|
||||
}
|
||||
|
||||
for(i = 0; i < iDeviceNum; i++){
|
||||
//Get device MAC
|
||||
pDeviceID = GetDeviceID(i);
|
||||
fprintf(stderr, "***************************************************************\n");
|
||||
fprintf(stderr, " Device Information:\n");
|
||||
|
||||
//GetDeviceInfo
|
||||
GetDeviceInfo(pDeviceID, &sDeviceInfo);
|
||||
fprintf(stderr, " MAC=%s\n", sDeviceInfo.pMac);
|
||||
fprintf(stderr, " IP=%s\n", sDeviceInfo.pIP);
|
||||
fprintf(stderr, " Control Port=%d\n", sDeviceInfo.iCtrlPort);
|
||||
fprintf(stderr, " Data Port=%d\n", sDeviceInfo.iDataPort);
|
||||
fprintf(stderr, " Mask=%s\n", sDeviceInfo.pMask);
|
||||
fprintf(stderr, " Gateway=%s\n", sDeviceInfo.pGateway);
|
||||
fprintf(stderr, " VenderName=%s\n", sDeviceInfo.pVenderName);
|
||||
fprintf(stderr, " ModelName=%s\n", sDeviceInfo.pModelName);
|
||||
fprintf(stderr, " Version=%s\n", sDeviceInfo.pVersion);
|
||||
fprintf(stderr, " SerialNumber=%s\n", sDeviceInfo.pSerialNumber);
|
||||
if(sDeviceInfo.bReachable){
|
||||
fprintf(stderr, " Reachable\n");
|
||||
}else{
|
||||
fprintf(stderr, " Unreachable\n");
|
||||
}
|
||||
|
||||
//LocalInfo
|
||||
GetLocalNICInfo(pDeviceID,&sLocalInfo);
|
||||
fprintf(stderr, " Localf Network Adapter Information:\n");
|
||||
fprintf(stderr, " MAC=%s\n", sLocalInfo.pMac);
|
||||
fprintf(stderr, " IP=%s\n", sLocalInfo.pIP);
|
||||
fprintf(stderr, " Mask=%s\n", sLocalInfo.pMask);
|
||||
fprintf(stderr, " InterfaceName=%s\n", sLocalInfo.pInterfaceName);
|
||||
fprintf(stderr, " Broadcast=%s\n", sLocalInfo.pBroadcast);
|
||||
|
||||
//Force IP
|
||||
if(ForceIP(pDeviceID, sDeviceInfo.pIP, sLocalInfo.pMask, sDeviceInfo.pGateway)){
|
||||
fprintf(stderr, " ForceIP=OK\n");
|
||||
}else{
|
||||
fprintf(stderr, " ForceIP=Error:%s\n", GetLastErrorText());
|
||||
}
|
||||
//OpenDevice
|
||||
if(OpenDevice(pDeviceID)){
|
||||
fprintf(stderr, " OpenDevice=OK\n");
|
||||
}else{
|
||||
fprintf(stderr, " OpenDevice=Error:%s\n", GetLastErrorText());
|
||||
continue;
|
||||
}
|
||||
//The following code is to demonstrate how to set or get related parameters of each attribute
|
||||
//Get the number of attributes
|
||||
iAttributeNumber = GetNumberOfAttribute(pDeviceID);
|
||||
if(iAttributeNumber >= 0){
|
||||
fprintf(stderr, " Attribute information, %d in total:\n", iAttributeNumber);
|
||||
}else{
|
||||
fprintf(stderr, " GetNumberOfAttribute=Error:%s\n", GetLastErrorText());
|
||||
continue;
|
||||
}
|
||||
for(j = 0; j < iAttributeNumber; j++){
|
||||
//GetAttributeName, GetAttributeType, GetAttribute, SetAttribute
|
||||
const char* pAttrName = GetAttributeName(pDeviceID, j);
|
||||
if(pAttrName == NULL){
|
||||
fprintf(stderr, " GetAttributeName=Error:%s\n", GetLastErrorText());
|
||||
continue;
|
||||
}
|
||||
fprintf(stderr, "++++Name=%s\n", pAttrName);
|
||||
if(!GetAttributeType(pDeviceID, pAttrName, &eAttrType)){
|
||||
fprintf(stderr, " GetAttributeType=Error:%s\n", GetLastErrorText());
|
||||
continue;
|
||||
}
|
||||
if(eAttrType == INT_T){
|
||||
fprintf(stderr, " Value Type=int\n");
|
||||
iValue = 0;
|
||||
if(GetAttrMaxInt(pDeviceID, pAttrName, &iValue)){
|
||||
fprintf(stderr, " Maximum=%d\n", iValue);
|
||||
}else{
|
||||
fprintf(stderr, " Maximum=Error:%s\n", GetLastErrorText());
|
||||
}
|
||||
if(GetAttrMinInt(pDeviceID, pAttrName, &iValue)){
|
||||
fprintf(stderr, " Minimum=%d\n", iValue);
|
||||
}else{
|
||||
fprintf(stderr, " Minimum=Error:%s\n", GetLastErrorText());
|
||||
}
|
||||
if(GetAttrIncInt(pDeviceID, pAttrName, &iValue)){
|
||||
fprintf(stderr, " Increment=%d\n", iValue);
|
||||
}else{
|
||||
fprintf(stderr, " Increment=Error:%s\n", GetLastErrorText());
|
||||
}
|
||||
if(GetAttrInt(pDeviceID, pAttrName, &iValue, DDR_T)){
|
||||
fprintf(stderr, " Current Value=%d\n", iValue);
|
||||
}else{
|
||||
fprintf(stderr, " Current Value=Error:%s\n", GetLastErrorText());
|
||||
}
|
||||
if(SetAttrInt(pDeviceID, pAttrName, iValue, DDR_T)){
|
||||
fprintf(stderr, " New Value=%d\n", iValue);
|
||||
}else{
|
||||
fprintf(stderr, " New Value=Error:%s\n", GetLastErrorText());
|
||||
}
|
||||
}else if(eAttrType == DOUBLE_T){
|
||||
fprintf(stderr, " Value Type=double\n");
|
||||
fValue = 0;
|
||||
if(GetAttrMaxFloat(pDeviceID, pAttrName, &fValue)){
|
||||
fprintf(stderr, " Maximum=%f\n", fValue);
|
||||
}else{
|
||||
fprintf(stderr, " Maximum=Error:%s\n", GetLastErrorText());
|
||||
}
|
||||
if(GetAttrMinFloat(pDeviceID, pAttrName, &fValue)){
|
||||
fprintf(stderr, " Minimum=%f\n", fValue);
|
||||
}else{
|
||||
fprintf(stderr, " Minimum=Error:%s\n", GetLastErrorText());
|
||||
}
|
||||
if(GetAttrIncFloat(pDeviceID, pAttrName, &fValue)){
|
||||
fprintf(stderr, " Increment=%f\n", fValue);
|
||||
}else{
|
||||
fprintf(stderr, " Increment=Error:%s\n", GetLastErrorText());
|
||||
}
|
||||
if(GetAttrFloat(pDeviceID, pAttrName, &fValue, DDR_T)){
|
||||
fprintf(stderr, " Current Value=%f\n", fValue);
|
||||
}else{
|
||||
fprintf(stderr, " Current Value=Error:%s\n", GetLastErrorText());
|
||||
}
|
||||
if(SetAttrFloat(pDeviceID, pAttrName, fValue, DDR_T)){
|
||||
fprintf(stderr, " New Value=%f\n", fValue);
|
||||
}else{
|
||||
fprintf(stderr, " New Value=Error:%s\n", GetLastErrorText());
|
||||
}
|
||||
}else if(eAttrType == STRING_T){
|
||||
fprintf(stderr, " Value Type=string\n");
|
||||
pValue = (char*)malloc(ATTR_TXT_SIZE_IN_BYTES);
|
||||
if(GetAttrString(pDeviceID, pAttrName, pValue, DDR_T)){
|
||||
fprintf(stderr, " Current Value=%s\n", pValue);
|
||||
}else{
|
||||
fprintf(stderr, " Current Value=Error:%s\n", GetLastErrorText());
|
||||
}
|
||||
free(pValue);
|
||||
}else if(eAttrType == ENUMERATION_T){
|
||||
fprintf(stderr, " Value Type=enumeration\n");
|
||||
fprintf(stderr, " Enumeration Entries:\n");
|
||||
//Get number of entries
|
||||
iEntryNumber = GetNumberOfEntry(pDeviceID, pAttrName);
|
||||
//Display entries
|
||||
for(k = 0; k < iEntryNumber; k++){
|
||||
int iEntryID = GetEntryID(pDeviceID, pAttrName, k);
|
||||
const char* pEntryName = GetEntryName(pDeviceID, pAttrName, k);
|
||||
if(iEntryID != -1 && pEntryName != NULL){
|
||||
fprintf(stderr, " %d=%s\n", iEntryID, pEntryName);
|
||||
}else{
|
||||
fprintf(stderr, " Fail to get the entry with index=%d\n", k);
|
||||
}
|
||||
}
|
||||
|
||||
iEntryID = 0;
|
||||
if(GetAttrInt(pDeviceID, pAttrName, &iEntryID, DDR_T)){
|
||||
fprintf(stderr, " Current Value=%lld text=%s\n", iEntryID, GetEntryNameByID(pDeviceID, pAttrName, (unsigned int)iEntryID));
|
||||
}else{
|
||||
fprintf(stderr, " Current Value=Error:%s\n", GetLastErrorText());
|
||||
}
|
||||
if(SetAttrInt(pDeviceID, pAttrName, iEntryID, DDR_T)){
|
||||
fprintf(stderr, " New Value=%d\n", iEntryID);
|
||||
}else{
|
||||
fprintf(stderr, " New Value=Error:%s\n", GetLastErrorText());
|
||||
}
|
||||
}else{
|
||||
fprintf(stderr, " Value Type=Unsupported\n");
|
||||
}
|
||||
//GetAttributeAccessMode
|
||||
if(GetAttributeAccessMode(pDeviceID, pAttrName, &eAccessMode)){
|
||||
if(eAccessMode == RO_T){
|
||||
fprintf(stderr, " Access Mode=RO\n");
|
||||
}else{
|
||||
fprintf(stderr, " Access Mode=RW\n");
|
||||
}
|
||||
}else{
|
||||
fprintf(stderr, " GetAttributeAccessMode=Error:%s\n", GetLastErrorText());
|
||||
}
|
||||
}
|
||||
//The following code is to demonstrate how to set some most commonly used attributes. Before setting, one getting is called to get the default value.
|
||||
//Set OffsetX
|
||||
if(GetAttrInt(pDeviceID, "OffsetX", &iValue, DDR_T)){
|
||||
if(SetAttrInt(pDeviceID, "OffsetX", iValue, DDR_T)){
|
||||
fprintf(stderr, "Set OffsetX to %d\n", iValue);
|
||||
}else{
|
||||
fprintf(stderr, "Warnning: Fail to Set OffsetX, %s\n", GetLastErrorText());
|
||||
}
|
||||
}else{
|
||||
fprintf(stderr, "Warnning: Fail to get OffsetX, %s\n", GetLastErrorText());
|
||||
}
|
||||
|
||||
//Set ImageWidth
|
||||
if(GetAttrInt(pDeviceID, "ImageWidth", &iValue, DDR_T)){
|
||||
if(SetAttrInt(pDeviceID, "ImageWidth", iValue, DDR_T)){
|
||||
fprintf(stderr, "Set ImageWidth to %d\n", iValue);
|
||||
}else{
|
||||
fprintf(stderr, "Warnning: Fail to Set ImageWidth, %s\n", GetLastErrorText());
|
||||
}
|
||||
}else{
|
||||
fprintf(stderr, "Warnning: Fail to get ImageWidth, %s\n", GetLastErrorText());
|
||||
}
|
||||
//Create Stream
|
||||
pStream = CreateStream(pDeviceID);
|
||||
if(pStream != NULL){
|
||||
fprintf(stderr, "++++CreateStream=OK\n");
|
||||
}else{
|
||||
fprintf(stderr, "++++CreateStream=ERROR:%s\n", GetLastErrorText());
|
||||
continue;
|
||||
}
|
||||
SetStreamLogEnable(pStream, "StreamLog.txt");
|
||||
//There are two ways to process frames:
|
||||
//1:Use a callback function to process frame
|
||||
//Start Stream
|
||||
if(StartStream(pStream, true, FrameProcCb, &v4l_fd)){
|
||||
fprintf(stderr, "++++StartStream=OK\n");
|
||||
}else{
|
||||
fprintf(stderr, "++++StartStream=ERROR:%s\n", GetLastErrorText());
|
||||
continue;
|
||||
}
|
||||
#if defined(_MSC_VER) || defined(_WIN32) || defined(_WIN64)
|
||||
Sleep(100);
|
||||
#else
|
||||
usleep(100000);
|
||||
#endif
|
||||
while(1);
|
||||
//StopStream
|
||||
StopStream(pStream);
|
||||
|
||||
fprintf(stderr, "FAIL to get one frame\n");
|
||||
}
|
||||
//Set frame processing
|
||||
if(SetFrameProc(pStream, ROTATE, 90)){
|
||||
fprintf(stderr, "++++SetFrameProc=OK\n");
|
||||
}else{
|
||||
fprintf(stderr, "++++SetFrameProc=ERROR:%s\n", GetLastErrorText());
|
||||
}
|
||||
//GetFrameInShort
|
||||
|
||||
//Set frame processing
|
||||
//Uninit
|
||||
Uninit();
|
||||
return 0;
|
||||
}
|
BIN
VisionSDK_C_GCC9.3.0_armv8/SampleCopy
Executable file
BIN
VisionSDK_C_GCC9.3.0_armv8/SampleCopy
Executable file
Binary file not shown.
155
VisionSDK_C_GCC9.3.0_armv8/SampleCopy.c
Normal file
155
VisionSDK_C_GCC9.3.0_armv8/SampleCopy.c
Normal file
@ -0,0 +1,155 @@
|
||||
#include "Vision.h" // 必须放在最前面以避免类型冲突
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <fcntl.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <linux/videodev2.h>
|
||||
|
||||
// 全局变量定义
|
||||
static int v4l2_fd = -1;
|
||||
|
||||
/**
|
||||
* 初始化V4L2虚拟设备
|
||||
*/
|
||||
bool init_v4l2_device(int width, int height) {
|
||||
v4l2_fd = open("/dev/video0", O_RDWR);
|
||||
if (v4l2_fd < 0) {
|
||||
fprintf(stderr, "Failed to open V4L2 device\n");
|
||||
return false;
|
||||
}
|
||||
|
||||
struct v4l2_format v4l2_fmt;
|
||||
memset(&v4l2_fmt, 0, sizeof(v4l2_fmt));
|
||||
v4l2_fmt.type = V4L2_BUF_TYPE_VIDEO_OUTPUT;
|
||||
v4l2_fmt.fmt.pix.width = width;
|
||||
v4l2_fmt.fmt.pix.height = height;
|
||||
v4l2_fmt.fmt.pix.pixelformat = V4L2_PIX_FMT_YUYV;
|
||||
v4l2_fmt.fmt.pix.field = V4L2_FIELD_NONE;
|
||||
|
||||
if (ioctl(v4l2_fd, VIDIOC_S_FMT, &v4l2_fmt) < 0) {
|
||||
fprintf(stderr, "Failed to set V4L2 format\n");
|
||||
close(v4l2_fd);
|
||||
v4l2_fd = -1;
|
||||
return false;
|
||||
}
|
||||
|
||||
fprintf(stderr, "V4L2 device initialized: %dx%d\n", width, height);
|
||||
return true;
|
||||
}
|
||||
|
||||
void close_v4l2_device() {
|
||||
if (v4l2_fd >= 0) {
|
||||
close(v4l2_fd);
|
||||
v4l2_fd = -1;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 使用VisionSDK定义的类型替代stdint.h中的类型
|
||||
*/
|
||||
typedef unsigned char uchar;
|
||||
typedef unsigned short ushort;
|
||||
|
||||
bool FrameProcCb(ushort* pFrameInShort, ushort iFrameID,
|
||||
int iFrameWidth, int iFrameHeight,
|
||||
unsigned int iTimeCount, void* pParam)
|
||||
{
|
||||
if (pFrameInShort) {
|
||||
if (v4l2_fd < 0 && !init_v4l2_device(iFrameWidth, iFrameHeight)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
size_t yuyv_size = iFrameWidth * iFrameHeight * 2;
|
||||
uchar* yuyv_buffer = (uchar*)malloc(yuyv_size);
|
||||
if (!yuyv_buffer) {
|
||||
fprintf(stderr, "Failed to allocate YUYV buffer\n");
|
||||
return false;
|
||||
}
|
||||
|
||||
for (int i = 0, j = 0; i < iFrameWidth * iFrameHeight; i++) {
|
||||
uchar y = (pFrameInShort[i] >> 4) & 0xFF;
|
||||
yuyv_buffer[j++] = y;
|
||||
yuyv_buffer[j++] = (i % 2) ? 0x80 : 0x80; // U/V值
|
||||
}
|
||||
|
||||
if (write(v4l2_fd, yuyv_buffer, yuyv_size) < 0) {
|
||||
perror("V4L2 write failed");
|
||||
free(yuyv_buffer);
|
||||
return false;
|
||||
}
|
||||
|
||||
free(yuyv_buffer);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
void FirmwareDownloadCb(char* pPartName, unsigned int iProgress, void* pParam)
|
||||
{
|
||||
fprintf(stderr, "Part:%s Progress: %u\n", pPartName, iProgress);
|
||||
}
|
||||
|
||||
int main(void)
|
||||
{
|
||||
unsigned int iDeviceNum = 0;
|
||||
const char* pDeviceID = NULL;
|
||||
SDeviceInfo sDeviceInfo;
|
||||
int iKey = 0;
|
||||
|
||||
Init();
|
||||
fprintf(stderr, "SDK Version: %s\n", GetVersionText());
|
||||
|
||||
if (!SetCallLogEnable(true)) {
|
||||
fprintf(stderr, "SetCallLogEnable=Error:%s\n", GetLastErrorText());
|
||||
return 0;
|
||||
}
|
||||
|
||||
iDeviceNum = SearchforDevice();
|
||||
if (iDeviceNum < 0) {
|
||||
Uninit();
|
||||
fprintf(stderr, "Press Enter key to exit\n");
|
||||
scanf("%c", &iKey);
|
||||
return 0;
|
||||
}
|
||||
|
||||
for (unsigned int i = 0; i < iDeviceNum; i++) {
|
||||
pDeviceID = GetDeviceID(i);
|
||||
fprintf(stderr, "***************************************************************\n");
|
||||
GetDeviceInfo(pDeviceID, &sDeviceInfo);
|
||||
fprintf(stderr, " MAC=%s\n", sDeviceInfo.pMac);
|
||||
fprintf(stderr, " IP=%s\n", sDeviceInfo.pIP);
|
||||
|
||||
if (!OpenDevice(pDeviceID)) {
|
||||
fprintf(stderr, " OpenDevice=Error:%s\n", GetLastErrorText());
|
||||
continue;
|
||||
}
|
||||
|
||||
Stream pStream = CreateStream(pDeviceID);
|
||||
if (!pStream) {
|
||||
fprintf(stderr, "++++CreateStream=ERROR:%s\n", GetLastErrorText());
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!SetStreamLogEnable(pStream, "StreamLog.txt")) {
|
||||
fprintf(stderr, "++++SetStreamLogEnable=ERROR:%s\n", GetLastErrorText());
|
||||
}
|
||||
|
||||
if (StartStream(pStream, true, FrameProcCb, NULL)) {
|
||||
fprintf(stderr, "Press Enter key to stop streaming\n");
|
||||
getchar();
|
||||
StopStream(pStream);
|
||||
} else {
|
||||
fprintf(stderr, "++++StartStream=ERROR:%s\n", GetLastErrorText());
|
||||
}
|
||||
|
||||
DestroyStream(pStream);
|
||||
CloseDevice(pDeviceID);
|
||||
}
|
||||
|
||||
close_v4l2_device();
|
||||
Uninit();
|
||||
fprintf(stderr, "Press Enter key to exit\n");
|
||||
scanf("%c", &iKey);
|
||||
return 0;
|
||||
}
|
167
VisionSDK_C_GCC9.3.0_armv8/inc/Types.h
Normal file
167
VisionSDK_C_GCC9.3.0_armv8/inc/Types.h
Normal file
@ -0,0 +1,167 @@
|
||||
#ifndef TYPES_H
|
||||
#define TYPES_H
|
||||
|
||||
#ifndef __cplusplus
|
||||
#if _MSC_VER > 1700
|
||||
#include <stdbool.h>
|
||||
#else
|
||||
#ifndef bool
|
||||
#define bool int
|
||||
#define false 0
|
||||
#define true 1
|
||||
#endif
|
||||
#endif
|
||||
typedef unsigned short uint16_t;
|
||||
typedef int int32_t;
|
||||
typedef unsigned int uint32_t;
|
||||
typedef long long int64_t;
|
||||
typedef unsigned long long uint64_t;
|
||||
#else
|
||||
#if _MSC_VER > 1700 || __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 6)
|
||||
#include <cstdint>
|
||||
#else
|
||||
#ifndef ANDROID
|
||||
typedef unsigned short uint16_t;
|
||||
typedef int int32_t;
|
||||
typedef unsigned int uint32_t;
|
||||
typedef long long int64_t;
|
||||
typedef unsigned long long uint64_t;
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
#define ATTR_TXT_SIZE_IN_BYTES 128
|
||||
/*!
|
||||
\file Types.h
|
||||
\brief A header file that contains variable declarations
|
||||
*/
|
||||
typedef bool (*FrameProcCbFunc) (unsigned short* pFrameBuf, uint16_t iFrameID, int32_t iFrameWidth, int32_t iFrameHeight, uint32_t iFrameTimeCount, void* pParam);
|
||||
typedef void (*FirmwareDownloadCbFunc) (char* pPartName, uint32_t iProgress, void* pUserParam);
|
||||
/*!
|
||||
\brief Errors
|
||||
*/
|
||||
enum BG_ERR_LIST
|
||||
{
|
||||
BG_ERR_SUCCESS = 0,
|
||||
BG_ERR_PROBE = -1,
|
||||
};
|
||||
typedef int32_t BG_ERR;
|
||||
/*!
|
||||
\brief Device type
|
||||
*/
|
||||
typedef enum
|
||||
{
|
||||
ANY=0,
|
||||
CUSTOM,
|
||||
CXP,
|
||||
} EDeviceType;
|
||||
/*!
|
||||
\brief A struct to describle a device
|
||||
*/
|
||||
#pragma pack(1)
|
||||
typedef struct
|
||||
{
|
||||
const char* pMac;
|
||||
const char* pIP;
|
||||
int32_t iCtrlPort;
|
||||
int32_t iDataPort;
|
||||
const char* pMask;
|
||||
const char* pGateway;
|
||||
const char* pVenderName;
|
||||
const char* pModelName;
|
||||
const char* pVersion;
|
||||
const char* pSerialNumber;
|
||||
EDeviceType eType;
|
||||
bool bReachable;
|
||||
} SDeviceInfo;
|
||||
/*!
|
||||
\brief A struct to define the content to be sent when calling "ForceIP"
|
||||
*/
|
||||
typedef struct
|
||||
{
|
||||
const char* pMac;
|
||||
const char* pIp;
|
||||
const char* pMask;
|
||||
const char* pGateway;
|
||||
} SForceInfo;
|
||||
|
||||
/*!
|
||||
\brief A struct to describle a network interface card
|
||||
*/
|
||||
typedef struct
|
||||
{
|
||||
const char* pMac;
|
||||
const char* pIP;
|
||||
const char* pMask;
|
||||
const char* pInterfaceName;
|
||||
const char* pBroadcast;
|
||||
} SNICInfo;
|
||||
#pragma pack()
|
||||
/*!
|
||||
\brief An enumeration to define attribute types of a device
|
||||
*/
|
||||
typedef enum
|
||||
{
|
||||
INT_T=0,
|
||||
DOUBLE_T,
|
||||
STRING_T,
|
||||
ENUMERATION_T,
|
||||
UNKNOWN,
|
||||
} EAttrType;
|
||||
/*!
|
||||
\brief An enumeration to define the access mode of an attribute
|
||||
*/
|
||||
typedef enum
|
||||
{
|
||||
RO_T=0,
|
||||
RW_T,
|
||||
} EAttrAccessMode;
|
||||
/*!
|
||||
\brief An enumeration to define the location of the attribute
|
||||
*/
|
||||
typedef enum
|
||||
{
|
||||
DDR_T=0,
|
||||
USER_ROM_T
|
||||
} EAttrLocation;
|
||||
/*!
|
||||
\brief An enumeration to define the retransfer mode
|
||||
*/
|
||||
typedef enum
|
||||
{
|
||||
RT_OFF_T=0,
|
||||
RT_PACKET_T,
|
||||
RT_FRAME_T
|
||||
} ERetransferMode;
|
||||
/*!
|
||||
\brief An enumeration to define the status of the stream
|
||||
*/
|
||||
typedef enum
|
||||
{
|
||||
/*!Not available*/
|
||||
NA=0,
|
||||
/*!Running*/
|
||||
RUNNING,
|
||||
/*!Normal stop*/
|
||||
STOP_WELL,
|
||||
/*!Abnormal stop*/
|
||||
STOP_BAD
|
||||
} EStreamStatus;
|
||||
/*!
|
||||
\brief An enumeration to define the types of the frame processing
|
||||
*/
|
||||
typedef enum
|
||||
{
|
||||
/*!Clockwise rotate*/
|
||||
ROTATE=0,
|
||||
/*!Average the frames with ID from (I- N + 1) to I as the frame I, N is the averge number*/
|
||||
AVERAGE,
|
||||
/*!Merge into one frame every N frames by average, N is the merge number*/
|
||||
MERGE,
|
||||
/*!Enable or disable the linear map. 0:disable, others:Enable and the default is disabled*/
|
||||
LINEAR_MAP_ENABLE,
|
||||
/*!The start point of the linear map that is mapped to 0, and the default is 0*/
|
||||
LINEAR_MAP_START,
|
||||
/*!The end point of the linear map that is mapped to 255, and the default is the pow(2.f, PixelBits) - 1 */
|
||||
LINEAR_MAP_END
|
||||
} EFrameProcType;
|
||||
#endif // TYPES_H
|
535
VisionSDK_C_GCC9.3.0_armv8/inc/Vision.h
Normal file
535
VisionSDK_C_GCC9.3.0_armv8/inc/Vision.h
Normal file
@ -0,0 +1,535 @@
|
||||
#ifndef VISION_H
|
||||
#define VISION_H
|
||||
#ifdef __cplusplus
|
||||
extern "C"{
|
||||
#endif
|
||||
|
||||
#include "Types.h"
|
||||
|
||||
#if defined(_MSC_VER) || defined(_WIN32) || defined(_WIN64)
|
||||
#if defined(SDK_LIBRARY)
|
||||
#define SDKSHARED_EXPORT __declspec(dllexport)
|
||||
#else
|
||||
#define SDKSHARED_EXPORT __declspec(dllimport)
|
||||
#endif
|
||||
#else
|
||||
#define SDKSHARED_EXPORT
|
||||
#endif
|
||||
/*!
|
||||
\file Vision.h
|
||||
\brief A C-Style header file that contains all APIs
|
||||
*/
|
||||
/*!
|
||||
\mainpage
|
||||
<table>
|
||||
<tr><th>Version <td>V15.4
|
||||
</table>
|
||||
\section Description
|
||||
This document covers the interface of this SDK
|
||||
*/
|
||||
typedef void* Stream;
|
||||
/*!
|
||||
\brief Initial the SDK. This API need to be called only once before calling other APIs except GetVersionInfo
|
||||
*/
|
||||
SDKSHARED_EXPORT void Init();
|
||||
|
||||
/*!
|
||||
\brief Search for devices
|
||||
\return Number of devices, when < 0, it means a failure
|
||||
*/
|
||||
SDKSHARED_EXPORT int32_t SearchforDevice();
|
||||
|
||||
/*!
|
||||
\brief Get the device ID
|
||||
\param iIndex specify which device, its valid range is [0, NumberOfDevice)
|
||||
\return Device ID; If 'iIndex' has an invalid value, return NULL
|
||||
*/
|
||||
SDKSHARED_EXPORT const char* GetDeviceID(unsigned int iIndex);
|
||||
|
||||
/*!
|
||||
\brief Get the device information
|
||||
\param pDeviceID The device ID, should be gotten by the above API: 'GetDeviceID'
|
||||
\param[out] pDeviceInfo The device information
|
||||
*/
|
||||
SDKSHARED_EXPORT void GetDeviceInfo(const char* pDeviceID, SDeviceInfo* pDeviceInfo);
|
||||
|
||||
/*!
|
||||
\brief Get the information of the local NIC(network interface card) communicating with the specified device and only available when SDeviceInfo.eType == NIC
|
||||
\param pDeviceID The device ID, should be gotten by the above API: 'GetDeviceID'
|
||||
\param[out] pNICInfo Information of the local NIC
|
||||
*/
|
||||
SDKSHARED_EXPORT void GetLocalNICInfo(const char* pDeviceID, SNICInfo* pNICInfo);
|
||||
|
||||
/*!
|
||||
\brief Set a new IP to the specified device and only available when SDeviceInfo.eType == NIC. Call it before calling "OpenDevice", or after calling it, call "OpenDevice" again.
|
||||
\n Note: If necessary, do the following steps to know the related change:
|
||||
\n 1:Call "GetDeviceInfo" to know whether the device is reachable
|
||||
\n 2:Call "GetLocalNICInfo" to know whether the local NIC is changed
|
||||
\param pDeviceID The device ID, should be gotten by the above API: 'GetDeviceID'
|
||||
\param pNewIP IP to be set
|
||||
\param pNewMask Mask to be set
|
||||
\param pNewGateway Gateway to be set
|
||||
\return Success or Failure
|
||||
*/
|
||||
SDKSHARED_EXPORT bool ForceIP(const char* pDeviceID, const char* pNewIP, const char* pNewMask, const char* pNewGateway);
|
||||
|
||||
/*!
|
||||
\brief Open a device
|
||||
\param pDeviceID The device ID, should be gotten by the above API: 'GetDeviceID'
|
||||
\return Success or Failure
|
||||
*/
|
||||
SDKSHARED_EXPORT bool OpenDevice(const char* pDeviceID);
|
||||
|
||||
/*!
|
||||
\brief Get the number of attributes of the specified device
|
||||
\param pDeviceID The device ID, should be gotten by the above API: 'GetDeviceID'
|
||||
\return Number of attributes, and -1 means a failure
|
||||
*/
|
||||
SDKSHARED_EXPORT int GetNumberOfAttribute(const char* pDeviceID);
|
||||
|
||||
/*!
|
||||
\brief Get the attribute name
|
||||
\param pDeviceID The device ID, should be gotten by the above API: 'GetDeviceID'
|
||||
\param i specify which attribute, its valid range is [0, NumberOfAttribute)
|
||||
\return Attribute name, and NULL means a failure
|
||||
*/
|
||||
SDKSHARED_EXPORT const char* GetAttributeName(const char* pDeviceID, unsigned int i);
|
||||
|
||||
/*!
|
||||
\brief Get the type of an attribute
|
||||
\param pDeviceID The device ID, should be gotten by the above API: 'GetDeviceID'
|
||||
\param pAttrName Name of the specified attribute
|
||||
\param[out] pAttrType Attribute type
|
||||
\return Success or Failure
|
||||
*/
|
||||
SDKSHARED_EXPORT bool GetAttributeType(const char* pDeviceID, const char* pAttrName, EAttrType* pAttrType);
|
||||
|
||||
/*!
|
||||
\brief Get the access mode of an attribute
|
||||
\param pDeviceID The device ID, should be gotten by the above API: 'GetDeviceID'
|
||||
\param pAttrName Name of the specified attribute
|
||||
\param[out] pAttrAccessMode Access mode
|
||||
\return Success or Failure
|
||||
*/
|
||||
SDKSHARED_EXPORT bool GetAttributeAccessMode(const char* pDeviceID, const char* pAttrName, EAttrAccessMode* pAttrAccessMode);
|
||||
|
||||
/*!
|
||||
\brief Get the number of entries of an enumeration attribute
|
||||
\param pDeviceID The device ID, should be gotten by the above API: 'GetDeviceID'
|
||||
\param pAttrName Name of the specified attribute
|
||||
\return Number of entries, and -1 means the attribute is not an enumeraion
|
||||
*/
|
||||
SDKSHARED_EXPORT int GetNumberOfEntry(const char* pDeviceID, const char* pAttrName);
|
||||
|
||||
/*!
|
||||
\brief Get the entry ID
|
||||
\param pDeviceID The device ID, should be gotten by the above API: 'GetDeviceID'
|
||||
\param pAttrName Name of the specified attribute
|
||||
\param i specify which entry, its valid range is [0, NumberOfEntry)
|
||||
\return Index of the given entry, and -1 means a failure
|
||||
*/
|
||||
SDKSHARED_EXPORT int GetEntryID(const char* pDeviceID, const char* pAttrName, unsigned int i);
|
||||
|
||||
/*!
|
||||
\brief Get the entry name
|
||||
\param pDeviceID The device ID, should be gotten by the above API: 'GetDeviceID'
|
||||
\param pAttrName Name of the specified attribute
|
||||
\param i specify which entry, its valid range is [0, NumberOfEntry)
|
||||
\return Attribute name, and NULL means a failure
|
||||
*/
|
||||
SDKSHARED_EXPORT const char* GetEntryName(const char* pDeviceID, const char* pAttrName, unsigned int i);
|
||||
|
||||
/*!
|
||||
\brief Get the entry name by the entry ID
|
||||
\param pDeviceID The device ID, should be gotten by the above API: 'GetDeviceID'
|
||||
\param pAttrName Name of the specified attribute
|
||||
\param iEntryID ID of an entry, should be get by the above API: GetEntryID
|
||||
\return Attribute name, and NULL means a failure
|
||||
*/
|
||||
SDKSHARED_EXPORT const char* GetEntryNameByID(const char* pDeviceID, const char* pAttrName, unsigned int iEntryID);
|
||||
|
||||
/*!
|
||||
\brief Send a command to the specified device
|
||||
\param pDeviceID The device ID, should be gotten by the above API: 'GetDeviceID'
|
||||
\param pCmdName Name of the specified command
|
||||
\return Success or Failure
|
||||
*/
|
||||
SDKSHARED_EXPORT bool SendCommand(const char* pDeviceID, const char* pCmdName);
|
||||
|
||||
/*!
|
||||
\brief Set a value to the specified attribute on the specified device
|
||||
\param pDeviceID The device ID, should be gotten by the above API: 'GetDeviceID'
|
||||
\param pAttrName Name of the specified attribute
|
||||
\param iAttrValue Value with type int64_t
|
||||
\param eLocation Specify where to set, DDR_T or USER_ROM_T
|
||||
\return Success or Failure
|
||||
*/
|
||||
SDKSHARED_EXPORT bool SetAttrInt(const char* pDeviceID, const char* pAttrName, int64_t iAttrValue, EAttrLocation eLocation);
|
||||
|
||||
/*!
|
||||
\brief Set a value to the specified attribute on the specified device
|
||||
\param pDeviceID The device ID, should be gotten by the above API: 'GetDeviceID'
|
||||
\param pAttrName Name of the specified attribute
|
||||
\param fAttrValue Value with type double
|
||||
\param eLocation Specify where to set, DDR_T or USER_ROM_T
|
||||
\return Success or Failure
|
||||
*/
|
||||
SDKSHARED_EXPORT bool SetAttrFloat(const char* pDeviceID, const char* pAttrName, double fAttrValue, EAttrLocation eLocation);
|
||||
|
||||
/*!
|
||||
\brief Set a value to the specified attribute on the specified device
|
||||
\param pDeviceID The device ID, should be gotten by the above API: 'GetDeviceID'
|
||||
\param pAttrName Name of the specified attribute
|
||||
\param pAttrValue Value with type const char*
|
||||
\param eLocation Specify where to set, DDR_T or USER_ROM_T
|
||||
\return Success or Failure
|
||||
*/
|
||||
SDKSHARED_EXPORT bool SetAttrString(const char* pDeviceID, const char* pAttrName, const char* pAttrValue, EAttrLocation eLocation);
|
||||
|
||||
/*!
|
||||
\brief Get the value of the specified attribute on the specified device
|
||||
\param pDeviceID The device ID, should be gotten by the above API: 'GetDeviceID'
|
||||
\param pAttrName Name of the specified attribute
|
||||
\param[out] pValue Value with type int64_t
|
||||
\param eLocation Specify where to get, DDR_T or USER_ROM_T
|
||||
\return Success or Failure
|
||||
*/
|
||||
SDKSHARED_EXPORT bool GetAttrInt(const char* pDeviceID, const char* pAttrName, int64_t* pValue, EAttrLocation eLocation);
|
||||
|
||||
/*!
|
||||
\brief Get the value of the specified attribute on the specified device
|
||||
\param pDeviceID The device ID, should be gotten by the above API: 'GetDeviceID'
|
||||
\param pAttrName Name of the specified attribute
|
||||
\param[out] pValue Value with type double
|
||||
\param eLocation Specify where to get, DDR_T or USER_ROM_T
|
||||
\return Success or Failure
|
||||
*/
|
||||
SDKSHARED_EXPORT bool GetAttrFloat(const char* pDeviceID, const char* pAttrName, double* pValue, EAttrLocation eLocation);
|
||||
|
||||
/*!
|
||||
\brief Get the value of the specified attribute on the specified device
|
||||
\param pDeviceID The device ID, should be gotten by the above API: 'GetDeviceID'
|
||||
\param pAttrName Name of the specified attribute
|
||||
\param[out] pValue Value with type char*
|
||||
\param eLocation Specify where to get, DDR_T or USER_ROM_T
|
||||
\return Success or Failure
|
||||
*/
|
||||
SDKSHARED_EXPORT bool GetAttrString(const char* pDeviceID, const char* pAttrName, char* pValue, EAttrLocation eLocation);
|
||||
|
||||
/*!
|
||||
\brief Get maximum of the specified attribute on the specified device
|
||||
\param pDeviceID The device ID, should be gotten by the above API: 'GetDeviceID'
|
||||
\param pAttrName Name of the specified attribute
|
||||
\param[out] pMaximum Attribute maximum with type int64_t
|
||||
\return Success or Failure
|
||||
*/
|
||||
SDKSHARED_EXPORT bool GetAttrMaxInt(const char* pDeviceID, const char* pAttrName, int64_t* pMaximum);
|
||||
|
||||
/*!
|
||||
\brief Get maximum of the specified attribute on the specified device
|
||||
\param pDeviceID The device ID, should be gotten by the above API: 'GetDeviceID'
|
||||
\param pAttrName Name of the specified attributee
|
||||
\param[out] pMaximum Attribute maximum with type double
|
||||
\return Success or Failure
|
||||
*/
|
||||
SDKSHARED_EXPORT bool GetAttrMaxFloat(const char* pDeviceID, const char* pAttrName, double* pMaximum);
|
||||
|
||||
/*!
|
||||
\brief Get minimum of the specified attribute on the specified device
|
||||
\param pDeviceID The device ID, should be gotten by the above API: 'GetDeviceID'
|
||||
\param pAttrName Name of the specified attribute
|
||||
\param[out] pMinimum Attribute minimum with type int64_t
|
||||
\return Success or Failure
|
||||
*/
|
||||
SDKSHARED_EXPORT bool GetAttrMinInt(const char* pDeviceID, const char* pAttrName, int64_t* pMinimum);
|
||||
|
||||
/*!
|
||||
\brief Get minimum of the specified attribute on the specified device
|
||||
\param pDeviceID The device ID, should be gotten by the above API: 'GetDeviceID'
|
||||
\param pAttrName Name of the specified attribute
|
||||
\param[out] pMinimum Attribute minimum with type double
|
||||
\return Success or Failure
|
||||
*/
|
||||
SDKSHARED_EXPORT bool GetAttrMinFloat(const char* pDeviceID, const char* pAttrName, double* pMinimum);
|
||||
|
||||
/*!
|
||||
\brief Get increment of the specified attribute on the specified device
|
||||
\param pDeviceID The device ID, should be gotten by the above API: 'GetDeviceID'
|
||||
\param pAttrName Name of the specified attribute
|
||||
\param[out] pIncrement Attribute increment with type int64_t
|
||||
\return Success or Failure
|
||||
*/
|
||||
SDKSHARED_EXPORT bool GetAttrIncInt(const char* pDeviceID, const char* pAttrName, int64_t* pIncrement);
|
||||
|
||||
/*!
|
||||
\brief Get increment of the specified attribute on the specified device
|
||||
\param pDeviceID The device ID, should be gotten by the above API: 'GetDeviceID'
|
||||
\param pAttrName Name of the specified attribute
|
||||
\param[out] pIncrement Attribute increment with type double
|
||||
\return Success or Failure
|
||||
*/
|
||||
SDKSHARED_EXPORT bool GetAttrIncFloat(const char* pDeviceID, const char* pAttrName, double* pIncrement);
|
||||
|
||||
/*!
|
||||
\brief Set the target for the next CalibrateCapture().
|
||||
\param pDeviceID The device ID, should be gotten by the above API: 'GetDeviceID'
|
||||
\param fTarget The target, 0: the frame of the next CalibrateCapture() will be calibrated to average value of its pixels;
|
||||
\n (0,1]: the frame of the next CalibrateCapture() will be calibrated to (maximum of the pixel * fTarget)
|
||||
\return Success or Failure
|
||||
*/
|
||||
SDKSHARED_EXPORT bool CalibrateSetTarget(const char* pDeviceID, float fTarget);
|
||||
|
||||
/*!
|
||||
\brief Get the target.
|
||||
\param pDeviceID The device ID, should be gotten by the above API: 'GetDeviceID'
|
||||
\return The target
|
||||
*/
|
||||
SDKSHARED_EXPORT float CalibrateGetTarget(const char* pDeviceID);
|
||||
|
||||
/*!
|
||||
\brief Capture frames.
|
||||
\n Note:The captured frames can be cleared by 'CalibrateReset' or successful 'CalibrateDark' or 'CalibrateBright'
|
||||
\param pDeviceID The device ID, should be gotten by the above API: 'GetDeviceID'
|
||||
\param iFrameNum How many frames used, passing 0 to use the default
|
||||
\return Success or Failure
|
||||
*/
|
||||
SDKSHARED_EXPORT bool CalibrateCapture(const char* pDeviceID, unsigned int iFrameNum);
|
||||
|
||||
/*!
|
||||
\brief Clear the frames captured by 'CalibrateCapture'
|
||||
\param pDeviceID The device ID, should be gotten by the above API: 'GetDeviceID'
|
||||
\return Success or Failure
|
||||
*/
|
||||
SDKSHARED_EXPORT bool CalibrateReset(const char* pDeviceID);
|
||||
|
||||
/*!
|
||||
\brief Do offset calibration
|
||||
\param pDeviceID The device ID, should be gotten by the above API: 'GetDeviceID'
|
||||
\param iModeIndex Specify a index for this calibration
|
||||
\param pWorkDir Specify a directory to store calibration data, passing NULL to use the current working directory
|
||||
\return Success or Failure
|
||||
*/
|
||||
SDKSHARED_EXPORT bool CalibrateDark(const char* pDeviceID, unsigned int iModeIndex, const char* pWorkDir);
|
||||
|
||||
/*!
|
||||
\brief Do gain calibration
|
||||
\param pDeviceID The device ID, should be gotten by the above API: 'GetDeviceID'
|
||||
\param iModeIndex Specify a index for this calibration
|
||||
\param pWorkDir Specify a directory to store calibration data, passing NULL to use the current working directory
|
||||
\return Success or Failure
|
||||
*/
|
||||
SDKSHARED_EXPORT bool CalibrateBright(const char* pDeviceID, unsigned int iModeIndex, const char* pWorkDir);
|
||||
|
||||
/*!
|
||||
\brief Download calibration data to the specified device
|
||||
\param pDeviceID The device ID, should be gotten by the above API: 'GetDeviceID'
|
||||
\param iModeIndex Specify a index for this calibration
|
||||
\param iCalType Specify offset or gain data, 0:Offset; 1:Gain and offset
|
||||
\param bFlashEnable Specify whether to download to flash memory on the specified device
|
||||
\param pWorkDir Specify a directory storing calibration data to be downloaded, passing NULL to use the current working directory
|
||||
\param bVerify Specify whether to verify the downloaded data
|
||||
\return Success or Failure
|
||||
*/
|
||||
SDKSHARED_EXPORT bool DownloadCalDataToDevice(const char* pDeviceID, unsigned int iModeIndex, int iCalType, bool bFlashEnable, const char* pWorkDir, bool bVerify);
|
||||
|
||||
/*!
|
||||
\brief Enable the calibration with the index 'iModeIndex' on the specified device
|
||||
\param iModeIndex The index of a calibration
|
||||
\param pDeviceID The device ID, should be gotten by the above API: 'GetDeviceID'
|
||||
\return Success or Failure
|
||||
*/
|
||||
SDKSHARED_EXPORT bool OpenCalibrate(const char* pDeviceID, unsigned int iModeIndex);
|
||||
|
||||
/*!
|
||||
\brief Disable the calibration on the specified device
|
||||
\param pDeviceID The device ID, should be gotten by the above API: 'GetDeviceID'
|
||||
\return Success or Failure
|
||||
*/
|
||||
SDKSHARED_EXPORT bool CloseCalibrate(const char* pDeviceID);
|
||||
|
||||
/*!
|
||||
\brief Do defect calibration[Obsolete]
|
||||
\param pDeviceID The device ID, should be gotten by the above API: 'GetDeviceID'
|
||||
\param iStepType Specify step A or step B, 0:Step A; 1:Step B
|
||||
\param pWorkDir Specify a directory to store the defect data, passing NULL to use the current working directory
|
||||
\return Success or Failure
|
||||
*/
|
||||
SDKSHARED_EXPORT bool CalibrateDefect(const char* pDeviceID, int iStepType, const char* pWorkDir);
|
||||
|
||||
/*!
|
||||
\brief Download defect data to the specified device[Obsolete]
|
||||
\param pDeviceID The device ID, should be gotten by the above API: 'GetDeviceID'
|
||||
\param bFlashEnable Specify whether to download to flash memory on the specified device
|
||||
\param pWorkDir Specify a directory storing defect data to be downloaded, by default using the current working directory
|
||||
\param bVerify Specify whether to verify the downloaded data
|
||||
\return Success or Failure
|
||||
*/
|
||||
SDKSHARED_EXPORT bool DownloadDefectDataToDevice(const char* pDeviceID, bool bFlashEnable, const char* pWorkDir, bool bVerify);
|
||||
|
||||
/*!
|
||||
\brief Interrupt a ongoning download
|
||||
\param pDeviceID The device ID, should be gotten by the above API: 'GetDeviceID'
|
||||
\return Success or Failure
|
||||
*/
|
||||
SDKSHARED_EXPORT bool InterruptDownload(const char* pDeviceID);
|
||||
|
||||
/*!
|
||||
\brief Download firmware to the specified device
|
||||
\param pDeviceID The device ID, should be gotten by the above API: 'GetDeviceID'
|
||||
\param fFirmwareFile file path of the firmware
|
||||
\param pCBFunc Specify a callback function to get the downloading progress
|
||||
\param pCBParam A pointer to a parameter passed into the callback function
|
||||
\return Success or Failure
|
||||
*/
|
||||
SDKSHARED_EXPORT bool DownloadFirmware(const char* pDeviceID, const char* fFirmwareFile, FirmwareDownloadCbFunc pCBFunc, void* pCBParam);
|
||||
|
||||
/*!
|
||||
\brief Download flash data to the specified device
|
||||
\param pDeviceID The device ID, should be gotten by the above API: 'GetDeviceID'
|
||||
\param pIndex The data index. If *pIndex == 65535, pIndex will contain the actual index generated by the SDK
|
||||
\param pDataBuf Pointer to a user allocated buffer to store the data
|
||||
\param iDataSize The size in bytes of the provided pDataBuf
|
||||
\return Success or Failure
|
||||
*/
|
||||
SDKSHARED_EXPORT bool DownloadFlashExtendData(const char* pDeviceID, uint16_t* pIndex, char* pDataBuf, int iDataSize);
|
||||
|
||||
/*!
|
||||
\brief Upload flash data from the specified device
|
||||
\param pDeviceID The device ID, should be gotten by the above API: 'GetDeviceID'
|
||||
\param iIndex The data index
|
||||
\param pDataBuf Pointer to a user allocated buffer to receive the data. If NULL, pDataSize will contain the minimal size of pDataBuf in bytes
|
||||
\param pDataSize Return the mimimal size in bytes of pDataBuf when pDataBuf equals NULL; the size in bytes of the provided pDataBuf when pDataBuf unequals NULL
|
||||
\return Success or Failure
|
||||
*/
|
||||
SDKSHARED_EXPORT bool UploadFlashExtendData(const char* pDeviceID, uint16_t iIndex, char* pDataBuf, int* pDataSize);
|
||||
|
||||
/*!
|
||||
\brief Create a stream on the specified device
|
||||
\param pDeviceID The device ID, should be gotten by the above API: 'GetDeviceID'
|
||||
\return A stream pointer, and NULL means a failure
|
||||
*/
|
||||
SDKSHARED_EXPORT Stream CreateStream(const char* pDeviceID);
|
||||
|
||||
/*!
|
||||
\brief Get the status of the stream
|
||||
\param pStream Pointer to the instance of a stream class, which is returned by "CreateStream"
|
||||
\return The status of the stream
|
||||
*/
|
||||
SDKSHARED_EXPORT EStreamStatus GetStreamStatus(Stream pStream);
|
||||
|
||||
/*!
|
||||
\brief Start the stream.
|
||||
\n Note: After calling this API, SDK will keep receiving frames from the specified device and saving them into the internal buffer until "StopStream" is called.
|
||||
\n When GetFrameInShort is not called in time, or pFrameProcCb is time consuming, the internal buffer may become full.
|
||||
\n At this time, if bOverwrite == true, the last frame in the buffer will be overwritten, otherwise SDK will drop incoming frames until the buffer become not full.
|
||||
\param pStream Pointer to the instance of a stream class, which is returned by "CreateStream"
|
||||
\param bOverwrite Specify whether to overwrite the last frame
|
||||
\param pFrameProcCb Specify a callback function to process each frame in order
|
||||
\param pCbParam A pointer to a parameter passed into the callback function
|
||||
\return Success or Failure
|
||||
*/
|
||||
SDKSHARED_EXPORT bool StartStream(Stream pStream, bool bOverwrite, FrameProcCbFunc pFrameProcCb, void* pCbParam);
|
||||
|
||||
/*!
|
||||
\brief Set a parameter to a frame processing
|
||||
\param pStream Pointer to the instance of a stream class, which is returned by "CreateStream"
|
||||
\param eProcType Frame processing type
|
||||
\param iProcParam Parameter to be set
|
||||
\return Success or Failure
|
||||
*/
|
||||
SDKSHARED_EXPORT bool SetFrameProc(Stream pStream, EFrameProcType eProcType, int iProcParam);
|
||||
|
||||
/*!
|
||||
\brief Get the parameter of a frame processing
|
||||
\param pStream Pointer to the instance of a stream class, which is returned by "CreateStream"
|
||||
\param eProcType Frame processing type
|
||||
\return iProcValue Parameter, -1 means failure
|
||||
*/
|
||||
SDKSHARED_EXPORT int GetFrameProc(Stream pStream, EFrameProcType eProcType);
|
||||
|
||||
/*!
|
||||
\brief Get the frame with 16 pixel bits in the format of little edian and processed by operations specified by "SetFrameProc".
|
||||
\n Note:This API tries to get the frame from the internal buffer, and when the buffer is empty, this API will block until one new frame reaches or "StopStream" is called.
|
||||
\param pStream Pointer to the instance of a stream class, which is returned by "CreateStream"
|
||||
\param[out] pFrameID ID of the frame
|
||||
\param[out] pWidth Width of the frame
|
||||
\param[out] pHeight Height of the frame
|
||||
\param[out] pTimeCount Time count of the frame
|
||||
\return Pointer of the frame, and valid until the next GetFrameInShort is called; When NULL, it means that the stream is stopped or that an error occurs
|
||||
*/
|
||||
SDKSHARED_EXPORT unsigned short* GetFrameInShort(Stream pStream, uint16_t* pFrameID, int32_t* pWidth, int32_t* pHeight, uint32_t* pTimeCount);
|
||||
|
||||
/*!
|
||||
\brief Get the frame with the pixel value mapped to byte and processed by operations specified by "SetFrameProc".
|
||||
\n Note:This API tries to get the frame from the internal buffer, and when the buffer is empty, this API will block until one new frame reaches or "StopStream" is called.
|
||||
\param pStream Pointer to the instance of a stream class, which is returned by "CreateStream"
|
||||
\param[out] pFrameID ID of the frame
|
||||
\param[out] pWidth Width of the frame
|
||||
\param[out] pHeight Height of the frame
|
||||
\param[out] pTimeCount Time count of the frame
|
||||
\return Pointer of the frame, and valid until the next GetFrameInShort is called; When NULL, it means that the stream is stopped or that an error occurs
|
||||
*/
|
||||
SDKSHARED_EXPORT char* GetMappedFrame(Stream pStream, uint16_t* pFrameID, int32_t* pWidth, int32_t* pHeight, uint32_t* pTimeCount);
|
||||
|
||||
/*!
|
||||
\brief Soft trigger
|
||||
\n Note: Call this API after setting the acquisition mode to a not continuous mode and calling StartStream(*) to trigger the device to send one single frame.
|
||||
\param pDeviceID The device ID, should be gotten by the above API: 'GetDeviceID'
|
||||
\return Success or Failure
|
||||
*/
|
||||
SDKSHARED_EXPORT bool SoftTrigger(const char* pDeviceID);
|
||||
|
||||
/*!
|
||||
\brief Stop the stream
|
||||
\param pStream Pointer to the instance of a stream class, which is returned by "CreateStream"
|
||||
*/
|
||||
SDKSHARED_EXPORT void StopStream(Stream pStream);
|
||||
|
||||
/*!
|
||||
\brief Destroy the stream
|
||||
\param pStream Pointer to the instance of a stream class, which is returned by "CreateStream"
|
||||
*/
|
||||
SDKSHARED_EXPORT void DestroyStream(Stream pStream);
|
||||
|
||||
/*!
|
||||
\brief Close the device
|
||||
\param pDeviceID The device ID, should be gotten by the above API: 'GetDeviceID'
|
||||
*/
|
||||
SDKSHARED_EXPORT void CloseDevice(const char* pDeviceID);
|
||||
|
||||
/*!
|
||||
\brief Get the last error
|
||||
\return Pointer of the text of the last error
|
||||
*/
|
||||
SDKSHARED_EXPORT const char* GetLastErrorText();
|
||||
|
||||
/*!
|
||||
\brief Get version information
|
||||
\return Pointer of the version text
|
||||
*/
|
||||
SDKSHARED_EXPORT const char* GetVersionText();
|
||||
|
||||
/*!
|
||||
\brief Enable or disable logging of API calls. It is disabled by default and should keep disabled except that the vendor demand to enable it.
|
||||
\param bEnable Flag to enable or disable
|
||||
\return Success or Failure
|
||||
*/
|
||||
SDKSHARED_EXPORT bool SetCallLogEnable(bool bEnable);
|
||||
|
||||
/*!
|
||||
\brief Enable or disable logging of stream. It is disabled by default and should keep disabled except that the vendor demand to enable it.
|
||||
\param pStream Pointer to the instance of a stream class, which is returned by "CreateStream"
|
||||
\param pLogFile Specify a log file to enable, and NULL means to disable
|
||||
\return Success or Failure
|
||||
*/
|
||||
SDKSHARED_EXPORT bool SetStreamLogEnable(Stream pStream, const char* pLogFile);
|
||||
|
||||
/*!
|
||||
\brief Uninitialize the SDK
|
||||
*/
|
||||
SDKSHARED_EXPORT void Uninit();
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif // VISION_H
|
BIN
VisionSDK_C_GCC9.3.0_armv8/lib/libCLAllSerial_gcc49_v3_2.so
Executable file
BIN
VisionSDK_C_GCC9.3.0_armv8/lib/libCLAllSerial_gcc49_v3_2.so
Executable file
Binary file not shown.
BIN
VisionSDK_C_GCC9.3.0_armv8/lib/libCLProtocol_gcc49_v3_2.so
Executable file
BIN
VisionSDK_C_GCC9.3.0_armv8/lib/libCLProtocol_gcc49_v3_2.so
Executable file
Binary file not shown.
BIN
VisionSDK_C_GCC9.3.0_armv8/lib/libFirmwareUpdate_gcc49_v3_2.so
Executable file
BIN
VisionSDK_C_GCC9.3.0_armv8/lib/libFirmwareUpdate_gcc49_v3_2.so
Executable file
Binary file not shown.
BIN
VisionSDK_C_GCC9.3.0_armv8/lib/libGCBase_gcc49_v3_2.so
Executable file
BIN
VisionSDK_C_GCC9.3.0_armv8/lib/libGCBase_gcc49_v3_2.so
Executable file
Binary file not shown.
BIN
VisionSDK_C_GCC9.3.0_armv8/lib/libGenApi_gcc49_v3_2.so
Executable file
BIN
VisionSDK_C_GCC9.3.0_armv8/lib/libGenApi_gcc49_v3_2.so
Executable file
Binary file not shown.
BIN
VisionSDK_C_GCC9.3.0_armv8/lib/libLog_gcc49_v3_2.so
Executable file
BIN
VisionSDK_C_GCC9.3.0_armv8/lib/libLog_gcc49_v3_2.so
Executable file
Binary file not shown.
BIN
VisionSDK_C_GCC9.3.0_armv8/lib/libMathParser_gcc49_v3_2.so
Executable file
BIN
VisionSDK_C_GCC9.3.0_armv8/lib/libMathParser_gcc49_v3_2.so
Executable file
Binary file not shown.
BIN
VisionSDK_C_GCC9.3.0_armv8/lib/libNodeMapData_gcc49_v3_2.so
Executable file
BIN
VisionSDK_C_GCC9.3.0_armv8/lib/libNodeMapData_gcc49_v3_2.so
Executable file
Binary file not shown.
BIN
VisionSDK_C_GCC9.3.0_armv8/lib/libVision.so
Executable file
BIN
VisionSDK_C_GCC9.3.0_armv8/lib/libVision.so
Executable file
Binary file not shown.
BIN
VisionSDK_C_GCC9.3.0_armv8/lib/libXmlParser_gcc49_v3_2.so
Executable file
BIN
VisionSDK_C_GCC9.3.0_armv8/lib/libXmlParser_gcc49_v3_2.so
Executable file
Binary file not shown.
BIN
VisionSDK_C_GCC9.3.0_armv8/lib/liblog4cpp_gcc49_v3_2.so
Executable file
BIN
VisionSDK_C_GCC9.3.0_armv8/lib/liblog4cpp_gcc49_v3_2.so
Executable file
Binary file not shown.
BIN
VisionSDK_C_GCC9.3.0_armv8/lib/libopencv_core.so
Normal file
BIN
VisionSDK_C_GCC9.3.0_armv8/lib/libopencv_core.so
Normal file
Binary file not shown.
1
VisionSDK_C_GCC9.3.0_armv8/lib/libopencv_core.so.405
Symbolic link
1
VisionSDK_C_GCC9.3.0_armv8/lib/libopencv_core.so.405
Symbolic link
@ -0,0 +1 @@
|
||||
libopencv_core.so
|
BIN
VisionSDK_C_GCC9.3.0_armv8/lib/libopencv_imgcodecs.so
Normal file
BIN
VisionSDK_C_GCC9.3.0_armv8/lib/libopencv_imgcodecs.so
Normal file
Binary file not shown.
1
VisionSDK_C_GCC9.3.0_armv8/lib/libopencv_imgcodecs.so.405
Symbolic link
1
VisionSDK_C_GCC9.3.0_armv8/lib/libopencv_imgcodecs.so.405
Symbolic link
@ -0,0 +1 @@
|
||||
libopencv_imgcodecs.so
|
BIN
VisionSDK_C_GCC9.3.0_armv8/lib/libopencv_imgproc.so
Normal file
BIN
VisionSDK_C_GCC9.3.0_armv8/lib/libopencv_imgproc.so
Normal file
Binary file not shown.
1
VisionSDK_C_GCC9.3.0_armv8/lib/libopencv_imgproc.so.405
Symbolic link
1
VisionSDK_C_GCC9.3.0_armv8/lib/libopencv_imgproc.so.405
Symbolic link
@ -0,0 +1 @@
|
||||
libopencv_imgproc.so
|
12
VisionSDK_C_GCC9.3.0_armv8/licenses/CLSerAll_LICENSE.txt
Normal file
12
VisionSDK_C_GCC9.3.0_armv8/licenses/CLSerAll_LICENSE.txt
Normal file
@ -0,0 +1,12 @@
|
||||
Copyright (c) 2004. National Instruments Corporation
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted, provided that each of the following conditions are met. By using the software in any manner, you agree to each of the following:
|
||||
|
||||
- All redistributions of the software must be accompanied with the above copyright notice (provided however that for redistributions in binary form, the copyright notice may be omitted), the above preamble, this list of conditions, and the disclaimer set forth below.
|
||||
|
||||
- Except for the copyright notice required above, neither the name or trademarks of National Instruments Corporation (NI) nor the names of its contributors may be used in any manner (including, but not limited to, using the same to endorse or promote products derived from this software) without the specific prior written permission of NI.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" WITHOUT WARRANTY OF ANY KIND. NO WARRANTIES, EITHER EXPRESS OR IMPLIED, ARE MADE WITH RESPECT TO THE SOFTWARE, INCLUDING, BUT NOT LIMITED TO, ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE OR NON-INFRINGEMENT, OR ANY OTHER WARRANTIES THAT MAY ARISE FROM USAGE OF TRADE OR COURSE OF DEALING. THE COPYRIGHT HOLDERS AND CONTRIBUTORS DO NOT WARRANT, GUARANTEE, OR MAKE ANY REPRESENTATIONS REGARDING THE USE OF OR THE RESULTS OF THE USE OF THE SOFTWARE IN TERMS OF CORRECTNESS, ACCURACY, RELIABILITY, OR OTHERWISE AND DO NOT WARRANT THAT THE OPERATION OF THE SOFTWARE WILL BE UNINTERRUPTED OR ERROR FREE. THE ENTIRE RISK AS TO THE PERFORMANCE OF THE SOFTWARE IS WITH YOU. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
BIN
VisionSDK_C_GCC9.3.0_armv8/licenses/GenICam_License_20180629.pdf
Normal file
BIN
VisionSDK_C_GCC9.3.0_armv8/licenses/GenICam_License_20180629.pdf
Normal file
Binary file not shown.
503
VisionSDK_C_GCC9.3.0_armv8/licenses/LGPL.txt
Normal file
503
VisionSDK_C_GCC9.3.0_armv8/licenses/LGPL.txt
Normal file
@ -0,0 +1,503 @@
|
||||
GNU LESSER GENERAL PUBLIC LICENSE
|
||||
Version 2.1, February 1999
|
||||
|
||||
Copyright (C) 1991, 1999 Free Software Foundation, Inc.
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
[This is the first released version of the Lesser GPL. It also counts
|
||||
as the successor of the GNU Library Public License, version 2, hence
|
||||
the version number 2.1.]
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your
|
||||
freedom to share and change it. By contrast, the GNU General Public
|
||||
Licenses are intended to guarantee your freedom to share and change
|
||||
free software--to make sure the software is free for all its users.
|
||||
|
||||
This license, the Lesser General Public License, applies to some
|
||||
specially designated software packages--typically libraries--of the
|
||||
Free Software Foundation and other authors who decide to use it. You
|
||||
can use it too, but we suggest you first think carefully about whether
|
||||
this license or the ordinary General Public License is the better
|
||||
strategy to use in any particular case, based on the explanations below.
|
||||
|
||||
When we speak of free software, we are referring to freedom of use,
|
||||
not price. Our General Public Licenses are designed to make sure that
|
||||
you have the freedom to distribute copies of free software (and charge
|
||||
for this service if you wish); that you receive source code or can get
|
||||
it if you want it; that you can change the software and use pieces of
|
||||
it in new free programs; and that you are informed that you can do
|
||||
these things.
|
||||
|
||||
To protect your rights, we need to make restrictions that forbid
|
||||
distributors to deny you these rights or to ask you to surrender these
|
||||
rights. These restrictions translate to certain responsibilities for
|
||||
you if you distribute copies of the library or if you modify it.
|
||||
|
||||
For example, if you distribute copies of the library, whether gratis
|
||||
or for a fee, you must give the recipients all the rights that we gave
|
||||
you. You must make sure that they, too, receive or can get the source
|
||||
code. If you link other code with the library, you must provide
|
||||
complete object files to the recipients, so that they can relink them
|
||||
with the library after making changes to the library and recompiling
|
||||
it. And you must show them these terms so they know their rights.
|
||||
|
||||
We protect your rights with a two-step method: (1) we copyright the
|
||||
library, and (2) we offer you this license, which gives you legal
|
||||
permission to copy, distribute and/or modify the library.
|
||||
|
||||
To protect each distributor, we want to make it very clear that
|
||||
there is no warranty for the free library. Also, if the library is
|
||||
modified by someone else and passed on, the recipients should know
|
||||
that what they have is not the original version, so that the original
|
||||
author's reputation will not be affected by problems that might be
|
||||
introduced by others.
|
||||
|
||||
Finally, software patents pose a constant threat to the existence of
|
||||
any free program. We wish to make sure that a company cannot
|
||||
effectively restrict the users of a free program by obtaining a
|
||||
restrictive license from a patent holder. Therefore, we insist that
|
||||
any patent license obtained for a version of the library must be
|
||||
consistent with the full freedom of use specified in this license.
|
||||
|
||||
Most GNU software, including some libraries, is covered by the
|
||||
ordinary GNU General Public License. This license, the GNU Lesser
|
||||
General Public License, applies to certain designated libraries, and
|
||||
is quite different from the ordinary General Public License. We use
|
||||
this license for certain libraries in order to permit linking those
|
||||
libraries into non-free programs.
|
||||
|
||||
When a program is linked with a library, whether statically or using
|
||||
a shared library, the combination of the two is legally speaking a
|
||||
combined work, a derivative of the original library. The ordinary
|
||||
General Public License therefore permits such linking only if the
|
||||
entire combination fits its criteria of freedom. The Lesser General
|
||||
Public License permits more lax criteria for linking other code with
|
||||
the library.
|
||||
|
||||
We call this license the "Lesser" General Public License because it
|
||||
does Less to protect the user's freedom than the ordinary General
|
||||
Public License. It also provides other free software developers Less
|
||||
of an advantage over competing non-free programs. These disadvantages
|
||||
are the reason we use the ordinary General Public License for many
|
||||
libraries. However, the Lesser license provides advantages in certain
|
||||
special circumstances.
|
||||
|
||||
For example, on rare occasions, there may be a special need to
|
||||
encourage the widest possible use of a certain library, so that it becomes
|
||||
a de-facto standard. To achieve this, non-free programs must be
|
||||
allowed to use the library. A more frequent case is that a free
|
||||
library does the same job as widely used non-free libraries. In this
|
||||
case, there is little to gain by limiting the free library to free
|
||||
software only, so we use the Lesser General Public License.
|
||||
|
||||
In other cases, permission to use a particular library in non-free
|
||||
programs enables a greater number of people to use a large body of
|
||||
free software. For example, permission to use the GNU C Library in
|
||||
non-free programs enables many more people to use the whole GNU
|
||||
operating system, as well as its variant, the GNU/Linux operating
|
||||
system.
|
||||
|
||||
Although the Lesser General Public License is Less protective of the
|
||||
users' freedom, it does ensure that the user of a program that is
|
||||
linked with the Library has the freedom and the wherewithal to run
|
||||
that program using a modified version of the Library.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow. Pay close attention to the difference between a
|
||||
"work based on the library" and a "work that uses the library". The
|
||||
former contains code derived from the library, whereas the latter must
|
||||
be combined with the library in order to run.
|
||||
|
||||
GNU LESSER GENERAL PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License Agreement applies to any software library or other
|
||||
program which contains a notice placed by the copyright holder or
|
||||
other authorized party saying it may be distributed under the terms of
|
||||
this Lesser General Public License (also called "this License").
|
||||
Each licensee is addressed as "you".
|
||||
|
||||
A "library" means a collection of software functions and/or data
|
||||
prepared so as to be conveniently linked with application programs
|
||||
(which use some of those functions and data) to form executables.
|
||||
|
||||
The "Library", below, refers to any such software library or work
|
||||
which has been distributed under these terms. A "work based on the
|
||||
Library" means either the Library or any derivative work under
|
||||
copyright law: that is to say, a work containing the Library or a
|
||||
portion of it, either verbatim or with modifications and/or translated
|
||||
straightforwardly into another language. (Hereinafter, translation is
|
||||
included without limitation in the term "modification".)
|
||||
|
||||
"Source code" for a work means the preferred form of the work for
|
||||
making modifications to it. For a library, complete source code means
|
||||
all the source code for all modules it contains, plus any associated
|
||||
interface definition files, plus the scripts used to control compilation
|
||||
and installation of the library.
|
||||
|
||||
Activities other than copying, distribution and modification are not
|
||||
covered by this License; they are outside its scope. The act of
|
||||
running a program using the Library is not restricted, and output from
|
||||
such a program is covered only if its contents constitute a work based
|
||||
on the Library (independent of the use of the Library in a tool for
|
||||
writing it). Whether that is true depends on what the Library does
|
||||
and what the program that uses the Library does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Library's
|
||||
complete source code as you receive it, in any medium, provided that
|
||||
you conspicuously and appropriately publish on each copy an
|
||||
appropriate copyright notice and disclaimer of warranty; keep intact
|
||||
all the notices that refer to this License and to the absence of any
|
||||
warranty; and distribute a copy of this License along with the
|
||||
Library.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy,
|
||||
and you may at your option offer warranty protection in exchange for a
|
||||
fee.
|
||||
|
||||
2. You may modify your copy or copies of the Library or any portion
|
||||
of it, thus forming a work based on the Library, and copy and
|
||||
distribute such modifications or work under the terms of Section 1
|
||||
above, provided that you also meet all of these conditions:
|
||||
|
||||
a) The modified work must itself be a software library.
|
||||
b) You must cause the files modified to carry prominent notices
|
||||
stating that you changed the files and the date of any change.
|
||||
|
||||
c) You must cause the whole of the work to be licensed at no
|
||||
charge to all third parties under the terms of this License.
|
||||
|
||||
d) If a facility in the modified Library refers to a function or a
|
||||
table of data to be supplied by an application program that uses
|
||||
the facility, other than as an argument passed when the facility
|
||||
is invoked, then you must make a good faith effort to ensure that,
|
||||
in the event an application does not supply such function or
|
||||
table, the facility still operates, and performs whatever part of
|
||||
its purpose remains meaningful.
|
||||
|
||||
(For example, a function in a library to compute square roots has
|
||||
a purpose that is entirely well-defined independent of the
|
||||
application. Therefore, Subsection 2d requires that any
|
||||
application-supplied function or table used by this function must
|
||||
be optional: if the application does not supply it, the square
|
||||
root function must still compute square roots.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If
|
||||
identifiable sections of that work are not derived from the Library,
|
||||
and can be reasonably considered independent and separate works in
|
||||
themselves, then this License, and its terms, do not apply to those
|
||||
sections when you distribute them as separate works. But when you
|
||||
distribute the same sections as part of a whole which is a work based
|
||||
on the Library, the distribution of the whole must be on the terms of
|
||||
this License, whose permissions for other licensees extend to the
|
||||
entire whole, and thus to each and every part regardless of who wrote
|
||||
it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest
|
||||
your rights to work written entirely by you; rather, the intent is to
|
||||
exercise the right to control the distribution of derivative or
|
||||
collective works based on the Library.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Library
|
||||
with the Library (or with a work based on the Library) on a volume of
|
||||
a storage or distribution medium does not bring the other work under
|
||||
the scope of this License.
|
||||
|
||||
3. You may opt to apply the terms of the ordinary GNU General Public
|
||||
License instead of this License to a given copy of the Library. To do
|
||||
this, you must alter all the notices that refer to this License, so
|
||||
that they refer to the ordinary GNU General Public License, version 2,
|
||||
instead of to this License. (If a newer version than version 2 of the
|
||||
ordinary GNU General Public License has appeared, then you can specify
|
||||
that version instead if you wish.) Do not make any other change in
|
||||
these notices.
|
||||
|
||||
Once this change is made in a given copy, it is irreversible for
|
||||
that copy, so the ordinary GNU General Public License applies to all
|
||||
subsequent copies and derivative works made from that copy.
|
||||
|
||||
This option is useful when you wish to copy part of the code of
|
||||
the Library into a program that is not a library.
|
||||
|
||||
4. You may copy and distribute the Library (or a portion or
|
||||
derivative of it, under Section 2) in object code or executable form
|
||||
under the terms of Sections 1 and 2 above provided that you accompany
|
||||
it with the complete corresponding machine-readable source code, which
|
||||
must be distributed under the terms of Sections 1 and 2 above on a
|
||||
medium customarily used for software interchange.
|
||||
|
||||
If distribution of object code is made by offering access to copy
|
||||
from a designated place, then offering equivalent access to copy the
|
||||
source code from the same place satisfies the requirement to
|
||||
distribute the source code, even though third parties are not
|
||||
compelled to copy the source along with the object code.
|
||||
|
||||
5. A program that contains no derivative of any portion of the
|
||||
Library, but is designed to work with the Library by being compiled or
|
||||
linked with it, is called a "work that uses the Library". Such a
|
||||
work, in isolation, is not a derivative work of the Library, and
|
||||
therefore falls outside the scope of this License.
|
||||
|
||||
However, linking a "work that uses the Library" with the Library
|
||||
creates an executable that is a derivative of the Library (because it
|
||||
contains portions of the Library), rather than a "work that uses the
|
||||
library". The executable is therefore covered by this License.
|
||||
Section 6 states terms for distribution of such executables.
|
||||
|
||||
When a "work that uses the Library" uses material from a header file
|
||||
that is part of the Library, the object code for the work may be a
|
||||
derivative work of the Library even though the source code is not.
|
||||
Whether this is true is especially significant if the work can be
|
||||
linked without the Library, or if the work is itself a library. The
|
||||
threshold for this to be true is not precisely defined by law.
|
||||
|
||||
If such an object file uses only numerical parameters, data
|
||||
structure layouts and accessors, and small macros and small inline
|
||||
functions (ten lines or less in length), then the use of the object
|
||||
file is unrestricted, regardless of whether it is legally a derivative
|
||||
work. (Executables containing this object code plus portions of the
|
||||
Library will still fall under Section 6.)
|
||||
|
||||
Otherwise, if the work is a derivative of the Library, you may
|
||||
distribute the object code for the work under the terms of Section 6.
|
||||
Any executables containing that work also fall under Section 6,
|
||||
whether or not they are linked directly with the Library itself.
|
||||
|
||||
6. As an exception to the Sections above, you may also combine or
|
||||
link a "work that uses the Library" with the Library to produce a
|
||||
work containing portions of the Library, and distribute that work
|
||||
under terms of your choice, provided that the terms permit
|
||||
modification of the work for the customer's own use and reverse
|
||||
engineering for debugging such modifications.
|
||||
|
||||
You must give prominent notice with each copy of the work that the
|
||||
Library is used in it and that the Library and its use are covered by
|
||||
this License. You must supply a copy of this License. If the work
|
||||
during execution displays copyright notices, you must include the
|
||||
copyright notice for the Library among them, as well as a reference
|
||||
directing the user to the copy of this License. Also, you must do one
|
||||
of these things:
|
||||
|
||||
a) Accompany the work with the complete corresponding
|
||||
machine-readable source code for the Library including whatever
|
||||
changes were used in the work (which must be distributed under
|
||||
Sections 1 and 2 above); and, if the work is an executable linked
|
||||
with the Library, with the complete machine-readable "work that
|
||||
uses the Library", as object code and/or source code, so that the
|
||||
user can modify the Library and then relink to produce a modified
|
||||
executable containing the modified Library. (It is understood
|
||||
that the user who changes the contents of definitions files in the
|
||||
Library will not necessarily be able to recompile the application
|
||||
to use the modified definitions.)
|
||||
|
||||
b) Use a suitable shared library mechanism for linking with the
|
||||
Library. A suitable mechanism is one that (1) uses at run time a
|
||||
copy of the library already present on the user's computer system,
|
||||
rather than copying library functions into the executable, and (2)
|
||||
will operate properly with a modified version of the library, if
|
||||
the user installs one, as long as the modified version is
|
||||
interface-compatible with the version that the work was made with.
|
||||
|
||||
c) Accompany the work with a written offer, valid for at
|
||||
least three years, to give the same user the materials
|
||||
specified in Subsection 6a, above, for a charge no more
|
||||
than the cost of performing this distribution.
|
||||
|
||||
d) If distribution of the work is made by offering access to copy
|
||||
from a designated place, offer equivalent access to copy the above
|
||||
specified materials from the same place.
|
||||
|
||||
e) Verify that the user has already received a copy of these
|
||||
materials or that you have already sent this user a copy.
|
||||
|
||||
For an executable, the required form of the "work that uses the
|
||||
Library" must include any data and utility programs needed for
|
||||
reproducing the executable from it. However, as a special exception,
|
||||
the materials to be distributed need not include anything that is
|
||||
normally distributed (in either source or binary form) with the major
|
||||
components (compiler, kernel, and so on) of the operating system on
|
||||
which the executable runs, unless that component itself accompanies
|
||||
the executable.
|
||||
|
||||
It may happen that this requirement contradicts the license
|
||||
restrictions of other proprietary libraries that do not normally
|
||||
accompany the operating system. Such a contradiction means you cannot
|
||||
use both them and the Library together in an executable that you
|
||||
distribute.
|
||||
|
||||
7. You may place library facilities that are a work based on the
|
||||
Library side-by-side in a single library together with other library
|
||||
facilities not covered by this License, and distribute such a combined
|
||||
library, provided that the separate distribution of the work based on
|
||||
the Library and of the other library facilities is otherwise
|
||||
permitted, and provided that you do these two things:
|
||||
|
||||
a) Accompany the combined library with a copy of the same work
|
||||
based on the Library, uncombined with any other library
|
||||
facilities. This must be distributed under the terms of the
|
||||
Sections above.
|
||||
|
||||
b) Give prominent notice with the combined library of the fact
|
||||
that part of it is a work based on the Library, and explaining
|
||||
where to find the accompanying uncombined form of the same work.
|
||||
|
||||
8. You may not copy, modify, sublicense, link with, or distribute
|
||||
the Library except as expressly provided under this License. Any
|
||||
attempt otherwise to copy, modify, sublicense, link with, or
|
||||
distribute the Library is void, and will automatically terminate your
|
||||
rights under this License. However, parties who have received copies,
|
||||
or rights, from you under this License will not have their licenses
|
||||
terminated so long as such parties remain in full compliance.
|
||||
|
||||
9. You are not required to accept this License, since you have not
|
||||
signed it. However, nothing else grants you permission to modify or
|
||||
distribute the Library or its derivative works. These actions are
|
||||
prohibited by law if you do not accept this License. Therefore, by
|
||||
modifying or distributing the Library (or any work based on the
|
||||
Library), you indicate your acceptance of this License to do so, and
|
||||
all its terms and conditions for copying, distributing or modifying
|
||||
the Library or works based on it.
|
||||
|
||||
10. Each time you redistribute the Library (or any work based on the
|
||||
Library), the recipient automatically receives a license from the
|
||||
original licensor to copy, distribute, link with or modify the Library
|
||||
subject to these terms and conditions. You may not impose any further
|
||||
restrictions on the recipients' exercise of the rights granted herein.
|
||||
You are not responsible for enforcing compliance by third parties with
|
||||
this License.
|
||||
|
||||
11. If, as a consequence of a court judgment or allegation of patent
|
||||
infringement or for any other reason (not limited to patent issues),
|
||||
conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot
|
||||
distribute so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you
|
||||
may not distribute the Library at all. For example, if a patent
|
||||
license would not permit royalty-free redistribution of the Library by
|
||||
all those who receive copies directly or indirectly through you, then
|
||||
the only way you could satisfy both it and this License would be to
|
||||
refrain entirely from distribution of the Library.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under any
|
||||
particular circumstance, the balance of the section is intended to apply,
|
||||
and the section as a whole is intended to apply in other circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any
|
||||
patents or other property right claims or to contest validity of any
|
||||
such claims; this section has the sole purpose of protecting the
|
||||
integrity of the free software distribution system which is
|
||||
implemented by public license practices. Many people have made
|
||||
generous contributions to the wide range of software distributed
|
||||
through that system in reliance on consistent application of that
|
||||
system; it is up to the author/donor to decide if he or she is willing
|
||||
to distribute software through any other system and a licensee cannot
|
||||
impose that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to
|
||||
be a consequence of the rest of this License.
|
||||
|
||||
12. If the distribution and/or use of the Library is restricted in
|
||||
certain countries either by patents or by copyrighted interfaces, the
|
||||
original copyright holder who places the Library under this License may add
|
||||
an explicit geographical distribution limitation excluding those countries,
|
||||
so that distribution is permitted only in or among countries not thus
|
||||
|
||||
excluded. In such case, this License incorporates the limitation as if
|
||||
written in the body of this License.
|
||||
|
||||
13. The Free Software Foundation may publish revised and/or new
|
||||
versions of the Lesser General Public License from time to time.
|
||||
Such new versions will be similar in spirit to the present version,
|
||||
but may differ in detail to address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Library
|
||||
specifies a version number of this License which applies to it and
|
||||
"any later version", you have the option of following the terms and
|
||||
conditions either of that version or of any later version published by
|
||||
the Free Software Foundation. If the Library does not specify a
|
||||
license version number, you may choose any version ever published by
|
||||
the Free Software Foundation.
|
||||
|
||||
14. If you wish to incorporate parts of the Library into other free
|
||||
programs whose distribution conditions are incompatible with these,
|
||||
write to the author to ask for permission. For software which is
|
||||
copyrighted by the Free Software Foundation, write to the Free
|
||||
Software Foundation; we sometimes make exceptions for this. Our
|
||||
decision will be guided by the two goals of preserving the free status
|
||||
of all derivatives of our free software and of promoting the sharing
|
||||
and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
|
||||
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
|
||||
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
|
||||
OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
|
||||
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
|
||||
LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
|
||||
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
|
||||
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
|
||||
AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
|
||||
FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
|
||||
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
|
||||
LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
|
||||
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
|
||||
FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
|
||||
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
|
||||
DAMAGES.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Libraries
|
||||
|
||||
If you develop a new library, and you want it to be of the greatest
|
||||
possible use to the public, we recommend making it free software that
|
||||
everyone can redistribute and change. You can do so by permitting
|
||||
redistribution under these terms (or, alternatively, under the terms of the
|
||||
ordinary General Public License).
|
||||
|
||||
To apply these terms, attach the following notices to the library. It is
|
||||
safest to attach them to the start of each source file to most effectively
|
||||
convey the exclusion of warranty; and each file should have at least the
|
||||
"copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the library's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or your
|
||||
school, if any, to sign a "copyright disclaimer" for the library, if
|
||||
necessary. Here is a sample; alter the names:
|
||||
|
||||
Yoyodyne, Inc., hereby disclaims all copyright interest in the
|
||||
library `Frob' (a library for tweaking knobs) written by James Random Hacker.
|
||||
|
||||
<signature of Ty Coon>, 1 April 1990
|
||||
Ty Coon, President of Vice
|
||||
|
||||
That's all there is to it!
|
||||
|
25
VisionSDK_C_GCC9.3.0_armv8/licenses/MIT_License.txt
Normal file
25
VisionSDK_C_GCC9.3.0_armv8/licenses/MIT_License.txt
Normal file
@ -0,0 +1,25 @@
|
||||
|
||||
The MIT License (MIT)
|
||||
[OSI Approved License]
|
||||
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) <year> <copyright holders>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
85
VisionSDK_C_GCC9.3.0_armv8/licenses/pcre2_License.txt
Normal file
85
VisionSDK_C_GCC9.3.0_armv8/licenses/pcre2_License.txt
Normal file
@ -0,0 +1,85 @@
|
||||
PCRE2 LICENCE
|
||||
-------------
|
||||
|
||||
PCRE2 is a library of functions to support regular expressions whose syntax
|
||||
and semantics are as close as possible to those of the Perl 5 language.
|
||||
|
||||
Release 10 of PCRE2 is distributed under the terms of the "BSD" licence, as
|
||||
specified below. The documentation for PCRE2, supplied in the "doc"
|
||||
directory, is distributed under the same terms as the software itself. The data
|
||||
in the testdata directory is not copyrighted and is in the public domain.
|
||||
|
||||
The basic library functions are written in C and are freestanding. Also
|
||||
included in the distribution is a just-in-time compiler that can be used to
|
||||
optimize pattern matching. This is an optional feature that can be omitted when
|
||||
the library is built.
|
||||
|
||||
|
||||
THE BASIC LIBRARY FUNCTIONS
|
||||
---------------------------
|
||||
|
||||
Written by: Philip Hazel
|
||||
Email local part: ph10
|
||||
Email domain: cam.ac.uk
|
||||
|
||||
University of Cambridge Computing Service,
|
||||
Cambridge, England.
|
||||
|
||||
Copyright (c) 1997-2016 University of Cambridge
|
||||
All rights reserved.
|
||||
|
||||
|
||||
PCRE2 JUST-IN-TIME COMPILATION SUPPORT
|
||||
--------------------------------------
|
||||
|
||||
Written by: Zoltan Herczeg
|
||||
Email local part: hzmester
|
||||
Emain domain: freemail.hu
|
||||
|
||||
Copyright(c) 2010-2016 Zoltan Herczeg
|
||||
All rights reserved.
|
||||
|
||||
|
||||
STACK-LESS JUST-IN-TIME COMPILER
|
||||
--------------------------------
|
||||
|
||||
Written by: Zoltan Herczeg
|
||||
Email local part: hzmester
|
||||
Emain domain: freemail.hu
|
||||
|
||||
Copyright(c) 2009-2016 Zoltan Herczeg
|
||||
All rights reserved.
|
||||
|
||||
|
||||
THE "BSD" LICENCE
|
||||
-----------------
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice,
|
||||
this list of conditions and the following disclaimer.
|
||||
|
||||
* Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
|
||||
* Neither the name of the University of Cambridge nor the names of any
|
||||
contributors may be used to endorse or promote products derived from this
|
||||
software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
|
||||
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
End
|
||||
|
||||
0
|
630
VisionSDK_C_GCC9.3.0_armv8/licenses/xs3p_License.mht
Normal file
630
VisionSDK_C_GCC9.3.0_armv8/licenses/xs3p_License.mht
Normal file
@ -0,0 +1,630 @@
|
||||
From: <Mit Microsoft Internet Explorer 7 gespeichert>
|
||||
Subject: DSTC Public License
|
||||
Date: Thu, 25 Sep 2008 18:08:08 +0200
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/html;
|
||||
charset="utf-8"
|
||||
Content-Transfer-Encoding: quoted-printable
|
||||
Content-Location: file://C:\Projects\genicam_v1_2\xml\GenApi\xs3p-1.1.3\LICENSE.html
|
||||
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
|
||||
|
||||
=EF=BB=BF<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<HTML><HEAD><TITLE>DSTC Public License</TITLE>
|
||||
<META http-equiv=3DContent-Type content=3D"text/html; charset=3DUTF-8">
|
||||
<META content=3D"MSHTML 6.00.6000.16705" name=3DGENERATOR></HEAD>
|
||||
<BODY>
|
||||
<H1>DSTC Public License (DPL)</H1>
|
||||
<P>Version 1.1</P>
|
||||
<H2>1. Definitions.</H2>
|
||||
<P><B>1.0.1. "Commercial Use" </B>means distribution or otherwise making =
|
||||
the=20
|
||||
Covered Code available to a third party.</P>
|
||||
<P><B>1.1. "Contributor"</B> means each entity that creates or =
|
||||
contributes to=20
|
||||
the creation of Modifications.</P>
|
||||
<P><B>1.2. "Contributor Version"</B> means the combination of the =
|
||||
Original Code,=20
|
||||
prior Modifications used by a Contributor, and the Modifications made by =
|
||||
that=20
|
||||
particular Contributor.</P>
|
||||
<P><B>1.3. "Covered Code"</B> means the Original Code or Modifications =
|
||||
or the=20
|
||||
combination of the Original Code and Modifications, in each case =
|
||||
including=20
|
||||
portions thereof<B>.</B></P>
|
||||
<P><B>1.4. "Electronic Distribution Mechanism"</B> means a mechanism =
|
||||
generally=20
|
||||
accepted in the software development community for the electronic =
|
||||
transfer of=20
|
||||
data.</P>
|
||||
<P><B>1.5. "Executable"</B> means Covered Code in any form other than =
|
||||
Source=20
|
||||
Code.</P>
|
||||
<P><B>1.6. "Initial Developer"</B> means the individual or entity =
|
||||
identified as=20
|
||||
the Initial Developer in the Source Code notice required by <B>Exhibit=20
|
||||
A</B>.</P>
|
||||
<P><B>1.7. "Larger Work"</B> means a work which combines Covered Code or =
|
||||
|
||||
portions thereof with code not governed by the terms of this =
|
||||
License.</P>
|
||||
<P><B>1.8. "License"</B> means this document.</P>
|
||||
<P><B>1.8.1. "Licensable"</B> means having the right to grant, to the =
|
||||
maximum=20
|
||||
extent possible, whether at the time of the initial grant or =
|
||||
subsequently=20
|
||||
acquired, any and all of the rights conveyed herein.</P>
|
||||
<P><B>1.9. "Modifications"</B> means any addition to or deletion from =
|
||||
the=20
|
||||
substance or structure of either the Original Code or any previous=20
|
||||
Modifications. When Covered Code is released as a series of files, a=20
|
||||
Modification is:</P>
|
||||
<UL>
|
||||
<LI><B>A.</B> Any addition to or deletion from the contents of a file=20
|
||||
containing Original Code or previous Modifications.=20
|
||||
<LI><B>B.</B> Any new file that contains any part of the Original Code =
|
||||
or=20
|
||||
previous Modifications. </LI></UL>
|
||||
<P><B>1.10. "Original Code"</B> means Source Code of computer software =
|
||||
code=20
|
||||
which is described in the Source Code notice required by <B>Exhibit =
|
||||
A</B> as=20
|
||||
Original Code, and which, at the time of its release under this License =
|
||||
is not=20
|
||||
already Covered Code governed by this License.</P>
|
||||
<P><B>1.10.1. "Patent Claims"</B> means any patent claim(s), now owned =
|
||||
or=20
|
||||
hereafter acquired, including without limitation, method, process, and =
|
||||
apparatus=20
|
||||
claims, in any patent Licensable by grantor.</P>
|
||||
<P><B>1.11. "Source Code"</B> means the preferred form of the Covered =
|
||||
Code for=20
|
||||
making modifications to it, including all modules it contains, plus any=20
|
||||
associated interface definition files, scripts used to control =
|
||||
compilation and=20
|
||||
installation of an Executable, or source code differential comparisons =
|
||||
against=20
|
||||
either the Original Code or another well known, available Covered Code =
|
||||
of the=20
|
||||
Contributor's choice. The Source Code can be in a compressed or archival =
|
||||
form,=20
|
||||
provided the appropriate decompression or de-archiving software is =
|
||||
widely=20
|
||||
available for no charge.</P>
|
||||
<P><B>1.12. "You" (or "Your")</B> means an individual or a legal entity=20
|
||||
exercising rights under, and complying with all of the terms of, this =
|
||||
License or=20
|
||||
a future version of this License issued under Section 6.1. For legal =
|
||||
entities,=20
|
||||
"You" includes any entity which controls, is controlled by, or is under =
|
||||
common=20
|
||||
control with You. For purposes of this definition, "control" means (a) =
|
||||
the=20
|
||||
power, direct or indirect, to cause the direction or management of such =
|
||||
entity,=20
|
||||
whether by contract or otherwise, or (b) ownership of more than fifty =
|
||||
percent=20
|
||||
(50%) of the outstanding shares or beneficial ownership of such =
|
||||
entity.</P>
|
||||
<H2>2. Source Code License.</H2>
|
||||
<H3>2.1. The Initial Developer Grant.</H3>
|
||||
<P>The Initial Developer hereby grants You a world-wide, royalty-free,=20
|
||||
non-exclusive license, subject to third party intellectual property =
|
||||
claims:</P>
|
||||
<P><B>(a)</B> under intellectual property rights (other than patent or=20
|
||||
trademark) Licensable by Initial Developer to use, reproduce, modify, =
|
||||
display,=20
|
||||
perform, sublicense and distribute the Original Code (or portions =
|
||||
thereof) with=20
|
||||
or without Modifications, and/or as part of a Larger Work; and</P>
|
||||
<P><B>(b)</B> under Patents Claims infringed by the making, using or =
|
||||
selling of=20
|
||||
Original Code, to make, have made, use, practice, sell, and offer for =
|
||||
sale,=20
|
||||
and/or otherwise dispose of the Original Code (or portions thereof).</P>
|
||||
<P><B>(c) </B>the licenses granted in this Section 2.1(a) and (b) are =
|
||||
effective=20
|
||||
on the date Initial Developer first distributes Original Code under the =
|
||||
terms of=20
|
||||
this License.</P>
|
||||
<P><B>(d) </B>Notwithstanding Section 2.1(b) above, no patent license is =
|
||||
|
||||
granted: 1) for code that You delete from the Original Code; 2) separate =
|
||||
from=20
|
||||
the Original Code; or 3) for infringements caused by: i) the =
|
||||
modification of the=20
|
||||
Original Code or ii) the combination of the Original Code with other =
|
||||
software or=20
|
||||
devices.</P>
|
||||
<H3>2.2. Contributor Grant.</H3>
|
||||
<P>Subject to third party intellectual property claims, each Contributor =
|
||||
hereby=20
|
||||
grants You a world-wide, royalty-free, non-exclusive license</P>
|
||||
<P><B>(a)</B> under intellectual property rights (other than patent or=20
|
||||
trademark) Licensable by Contributor, to use, reproduce, modify, =
|
||||
display,=20
|
||||
perform, sublicense and distribute the Modifications created by such =
|
||||
Contributor=20
|
||||
(or portions thereof) either on an unmodified basis, with other =
|
||||
Modifications,=20
|
||||
as Covered Code and/or as part of a Larger Work; and</P>
|
||||
<P><B>(b)</B> under Patent Claims infringed by the making, using, or =
|
||||
selling of=20
|
||||
Modifications made by that Contributor either alone and/or in =
|
||||
combination with=20
|
||||
its Contributor Version (or portions of such combination), to make, use, =
|
||||
sell,=20
|
||||
offer for sale, have made, and/or otherwise dispose of: 1) Modifications =
|
||||
made by=20
|
||||
that Contributor (or portions thereof); and 2) the combination of =
|
||||
Modifications=20
|
||||
made by that Contributor with its Contributor Version (or portions of =
|
||||
such=20
|
||||
combination).</P>
|
||||
<P><B>(c) </B>the licenses granted in Sections 2.2(a) and 2.2(b) are =
|
||||
effective=20
|
||||
on the date Contributor first makes Commercial Use of the Covered =
|
||||
Code.</P>
|
||||
<P><B>(d)</B> Notwithstanding Section 2.2(b) above, no patent license is =
|
||||
|
||||
granted: 1) for any code that Contributor has deleted from the =
|
||||
Contributor=20
|
||||
Version; 2) separate from the Contributor Version; 3) for infringements =
|
||||
caused=20
|
||||
by: i) third party modifications of Contributor Version or ii) the =
|
||||
combination=20
|
||||
of Modifications made by that Contributor with other software (except as =
|
||||
part of=20
|
||||
the Contributor Version) or other devices; or 4) under Patent Claims =
|
||||
infringed=20
|
||||
by Covered Code in the absence of Modifications made by that =
|
||||
Contributor.</P>
|
||||
<H2>3. Distribution Obligations</H2>
|
||||
<H3>3.1. Application of License.</H3>
|
||||
<P>The Modifications which You create or to which You contribute are =
|
||||
governed by=20
|
||||
the terms of this License, including without limitation Section =
|
||||
<B>2.2</B>. The=20
|
||||
Source Code version of Covered Code may be distributed only under the =
|
||||
terms of=20
|
||||
this License or a future version of this License released under Section=20
|
||||
<B>6.1</B>, and You must include a copy of this License with every copy =
|
||||
of the=20
|
||||
Source Code You distribute. You may not offer or impose any terms on any =
|
||||
Source=20
|
||||
Code version that alters or restricts the applicable version of this =
|
||||
License or=20
|
||||
the recipients' rights hereunder. However, You may include an additional =
|
||||
|
||||
document offering the additional rights described in Section =
|
||||
<B>3.5</B>.</P>
|
||||
<H3>3.2. Availability of Source Code.</H3>
|
||||
<P>Any Modification which You create or to which You contribute must be =
|
||||
made=20
|
||||
available in Source Code form under the terms of this License either on =
|
||||
the same=20
|
||||
media as an Executable version or via an accepted Electronic =
|
||||
Distribution=20
|
||||
Mechanism to anyone to whom you made an Executable version available; =
|
||||
and if=20
|
||||
made available via Electronic Distribution Mechanism, must remain =
|
||||
available for=20
|
||||
at least twelve (12) months after the date it initially became =
|
||||
available, or at=20
|
||||
least six (6) months after a subsequent version of that particular =
|
||||
Modification=20
|
||||
has been made available to such recipients. You are responsible for =
|
||||
ensuring=20
|
||||
that the Source Code version remains available even if the Electronic=20
|
||||
Distribution Mechanism is maintained by a third party.</P>
|
||||
<H3>3.3. Description of Modifications.</H3>
|
||||
<P>You must cause all Covered Code to which You contribute to contain a =
|
||||
file=20
|
||||
documenting the changes You made to create that Covered Code and the =
|
||||
date of any=20
|
||||
change. You must include a prominent statement that the Modification is =
|
||||
derived,=20
|
||||
directly or indirectly, from Original Code provided by the Initial =
|
||||
Developer and=20
|
||||
including the name of the Initial Developer in (a) the Source Code, and =
|
||||
(b) in=20
|
||||
any notice in an Executable version or related documentation in which =
|
||||
You=20
|
||||
describe the origin or ownership of the Covered Code.</P>
|
||||
<H3>3.4. Intellectual Property Matters</H3>
|
||||
<H4>(a) Third Party Claims.</H4>
|
||||
<P>If Contributor has knowledge that a license under a third party's=20
|
||||
intellectual property rights is required to exercise the rights granted =
|
||||
by such=20
|
||||
Contributor under Sections 2.1 or 2.2, Contributor must include a text =
|
||||
file with=20
|
||||
the Source Code distribution titled "LEGAL" which describes the claim =
|
||||
and the=20
|
||||
party making the claim in sufficient detail that a recipient will know =
|
||||
whom to=20
|
||||
contact. If Contributor obtains such knowledge after the Modification is =
|
||||
made=20
|
||||
available as described in Section 3.2, Contributor shall promptly modify =
|
||||
the=20
|
||||
LEGAL file in all copies Contributor makes available thereafter and =
|
||||
shall take=20
|
||||
other steps (such as notifying appropriate mailing lists or newsgroups)=20
|
||||
reasonably calculated to inform those who received the Covered Code that =
|
||||
new=20
|
||||
knowledge has been obtained.</P>
|
||||
<H4>(b) Contributor APIs.</H4>
|
||||
<P>If Contributor's Modifications include an application programming =
|
||||
interface=20
|
||||
and Contributor has knowledge of patent licenses which are reasonably =
|
||||
necessary=20
|
||||
to implement that API, Contributor must also include this information in =
|
||||
the=20
|
||||
LEGAL file.</P>
|
||||
<H4>(c) Representations.</H4>
|
||||
<P>Contributor represents that, except as disclosed pursuant to Section =
|
||||
3.4(a)=20
|
||||
above, Contributor believes that Contributor's Modifications are =
|
||||
Contributor's=20
|
||||
original creation(s) and/or Contributor has sufficient rights to grant =
|
||||
the=20
|
||||
rights conveyed by this License.</P>
|
||||
<H3>3.5. Required Notices.</H3>
|
||||
<P>You must duplicate the notice in <B>Exhibit A</B> in each file of the =
|
||||
Source=20
|
||||
Code. If it is not possible to put such notice in a particular Source =
|
||||
Code file=20
|
||||
due to its structure, then You must include such notice in a location =
|
||||
(such as a=20
|
||||
relevant directory) where a user would be likely to look for such a =
|
||||
notice. If=20
|
||||
You created one or more Modification(s) You may add your name as a =
|
||||
Contributor=20
|
||||
to the notice described in <B>Exhibit A</B>. You must also duplicate =
|
||||
this=20
|
||||
License in any documentation for the Source Code where You describe =
|
||||
recipients'=20
|
||||
rights or ownership rights relating to Covered Code. You may choose to =
|
||||
offer,=20
|
||||
and to charge a fee for, warranty, support, indemnity or liability =
|
||||
obligations=20
|
||||
to one or more recipients of Covered Code. However, You may do so only =
|
||||
on Your=20
|
||||
own behalf, and not on behalf of the Initial Developer or any =
|
||||
Contributor. You=20
|
||||
must make it absolutely clear than any such warranty, support, indemnity =
|
||||
or=20
|
||||
liability obligation is offered by You alone, and You hereby agree to =
|
||||
indemnify=20
|
||||
the Initial Developer and every Contributor for any liability incurred =
|
||||
by the=20
|
||||
Initial Developer or such Contributor as a result of warranty, support,=20
|
||||
indemnity or liability terms You offer.</P>
|
||||
<H3>3.6. Distribution of Executable Versions.</H3>
|
||||
<P>You may distribute Covered Code in Executable form only if the =
|
||||
requirements=20
|
||||
of Section <B>3.1-3.5</B> have been met for that Covered Code, and if =
|
||||
You=20
|
||||
include a notice stating that the Source Code version of the Covered =
|
||||
Code is=20
|
||||
available under the terms of this License, including a description of =
|
||||
how and=20
|
||||
where You have fulfilled the obligations of Section <B>3.2</B>. The =
|
||||
notice must=20
|
||||
be conspicuously included in any notice in an Executable version, =
|
||||
related=20
|
||||
documentation or collateral in which You describe recipients' rights =
|
||||
relating to=20
|
||||
the Covered Code. You may distribute the Executable version of Covered =
|
||||
Code or=20
|
||||
ownership rights under a license of Your choice, which may contain terms =
|
||||
|
||||
different from this License, provided that You are in compliance with =
|
||||
the terms=20
|
||||
of this License and that the license for the Executable version does not =
|
||||
attempt=20
|
||||
to limit or alter the recipient's rights in the Source Code version from =
|
||||
the=20
|
||||
rights set forth in this License. If You distribute the Executable =
|
||||
version under=20
|
||||
a different license You must make it absolutely clear that any terms =
|
||||
which=20
|
||||
differ from this License are offered by You alone, not by the Initial =
|
||||
Developer=20
|
||||
or any Contributor. You hereby agree to indemnify the Initial Developer =
|
||||
and=20
|
||||
every Contributor for any liability incurred by the Initial Developer or =
|
||||
such=20
|
||||
Contributor as a result of any such terms You offer.</P>
|
||||
<H3>3.7. Larger Works.</H3>
|
||||
<P>You may create a Larger Work by combining Covered Code with other =
|
||||
code not=20
|
||||
governed by the terms of this License and distribute the Larger Work as =
|
||||
a single=20
|
||||
product. In such a case, You must make sure the requirements of this =
|
||||
License are=20
|
||||
fulfilled for the Covered Code.</P>
|
||||
<H2>4. Inability to Comply Due to Statute or Regulation.</H2>
|
||||
<P>If it is impossible for You to comply with any of the terms of this =
|
||||
License=20
|
||||
with respect to some or all of the Covered Code due to statute, judicial =
|
||||
order,=20
|
||||
or regulation then You must: (a) comply with the terms of this License =
|
||||
to the=20
|
||||
maximum extent possible; and (b) describe the limitations and the code =
|
||||
they=20
|
||||
affect. Such description must be included in the LEGAL file described in =
|
||||
Section=20
|
||||
<B>3.4</B> and must be included with all distributions of the Source =
|
||||
Code.=20
|
||||
Except to the extent prohibited by statute or regulation, such =
|
||||
description must=20
|
||||
be sufficiently detailed for a recipient of ordinary skill to be able to =
|
||||
|
||||
understand it.</P>
|
||||
<H2>5. Application of this License.</H2>
|
||||
<P>This License applies to code to which the Initial Developer has =
|
||||
attached the=20
|
||||
notice in <B>Exhibit A</B> and to related Covered Code.</P>
|
||||
<H2>6. Versions of the License.</H2>
|
||||
<H3>6.1. New Versions</H3>
|
||||
<P>The Distributed Systems Technology Centre ("DSTC") may publish =
|
||||
revised and/or=20
|
||||
new versions of the License from time to time. Each version will be =
|
||||
given a=20
|
||||
distinguishing version number.</P>
|
||||
<H3>6.2. Effect of New Versions</H3>
|
||||
<P>Once Covered Code has been published under a particular version of =
|
||||
the=20
|
||||
License, You may always continue to use it under the terms of that =
|
||||
version. You=20
|
||||
may also choose to use such Covered Code under the terms of any =
|
||||
subsequent=20
|
||||
version of the License published by DSTC. No one other than DSTC has the =
|
||||
right=20
|
||||
to modify the terms applicable to Covered Code created under this =
|
||||
License.</P>
|
||||
<H3>6.3. Derivative Works</H3>
|
||||
<P>If You create or use a modified version of this License (which you =
|
||||
may only=20
|
||||
do in order to apply it to code which is not already Covered Code =
|
||||
governed by=20
|
||||
this License), You must (a) rename Your license so that the phrases =
|
||||
"DSTC",=20
|
||||
"DPL" or any confusingly similar phrase do not appear in your license =
|
||||
(except to=20
|
||||
note that your license differs from this License) and (b) otherwise make =
|
||||
it=20
|
||||
clear that Your version of the license contains terms which differ from =
|
||||
the DSTC=20
|
||||
Public License. (Filling in the name of the Initial Developer, Original =
|
||||
Code or=20
|
||||
Contributor in the notice described in <B>Exhibit A</B> shall not of =
|
||||
themselves=20
|
||||
be deemed to be modifications of this License.)</P>
|
||||
<H2>7. Disclaimer of Warranty.</H2>
|
||||
<P>COVERED CODE IS PROVIDED UNDER THIS LICENSE ON AN "AS IS" BASIS, =
|
||||
WITHOUT=20
|
||||
WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, WITHOUT=20
|
||||
LIMITATION, WARRANTIES THAT THE COVERED CODE IS FREE OF DEFECTS, =
|
||||
MERCHANTABLE,=20
|
||||
FIT FOR A PARTICULAR PURPOSE OR NON-INFRINGING. THE ENTIRE RISK AS TO =
|
||||
THE=20
|
||||
QUALITY AND PERFORMANCE OF THE COVERED CODE IS WITH YOU. SHOULD ANY =
|
||||
COVERED CODE=20
|
||||
PROVE DEFECTIVE IN ANY RESPECT, YOU (NOT THE INITIAL DEVELOPER OR ANY =
|
||||
OTHER=20
|
||||
CONTRIBUTOR) ASSUME THE COST OF ANY NECESSARY SERVICING, REPAIR OR =
|
||||
CORRECTION.=20
|
||||
THIS DISCLAIMER OF WARRANTY CONSTITUTES AN ESSENTIAL PART OF THIS =
|
||||
LICENSE. NO=20
|
||||
USE OF ANY COVERED CODE IS AUTHORIZED HEREUNDER EXCEPT UNDER THIS=20
|
||||
DISCLAIMER.</P>
|
||||
<H2>8. Termination.</H2>
|
||||
<P><B>8.1. </B>This License and the rights granted hereunder will =
|
||||
terminate=20
|
||||
automatically if You fail to comply with terms herein and fail to cure =
|
||||
such=20
|
||||
breach within 30 days of becoming aware of the breach. All sublicenses =
|
||||
to the=20
|
||||
Covered Code which are properly granted shall survive any termination of =
|
||||
this=20
|
||||
License. Provisions which, by their nature, must remain in effect beyond =
|
||||
the=20
|
||||
termination of this License shall survive.</P>
|
||||
<P><B>8.2. </B>If You initiate litigation by asserting a patent =
|
||||
infringement=20
|
||||
claim (excluding declatory judgment actions) against Initial Developer =
|
||||
or a=20
|
||||
Contributor (the Initial Developer or Contributor against whom You file =
|
||||
such=20
|
||||
action is referred to as 'Participant') alleging that:</P>
|
||||
<P><B>(a) </B>such Participant's Contributor Version directly or =
|
||||
indirectly=20
|
||||
infringes any patent, then any and all rights granted by such =
|
||||
Participant to You=20
|
||||
under Sections 2.1 and/or 2.2 of this License shall, upon 60 days notice =
|
||||
from=20
|
||||
Participant terminate prospectively, unless if within 60 days after =
|
||||
receipt of=20
|
||||
notice You either: (i) agree in writing to pay Participant a mutually =
|
||||
agreeable=20
|
||||
reasonable royalty for Your past and future use of Modifications made by =
|
||||
such=20
|
||||
Participant, or (ii) withdraw Your litigation claim with respect to the=20
|
||||
Contributor Version against such Participant. If within 60 days of =
|
||||
notice, a=20
|
||||
reasonable royalty and payment arrangement are not mutually agreed upon =
|
||||
in=20
|
||||
writing by the parties or the litigation claim is not withdrawn, the =
|
||||
rights=20
|
||||
granted by Participant to You under Sections 2.1 and/or 2.2 =
|
||||
automatically=20
|
||||
terminate at the expiration of the 60 day notice period specified =
|
||||
above.</P>
|
||||
<P><B>(b)</B> any software, hardware, or device, other than such =
|
||||
Participant's=20
|
||||
Contributor Version, directly or indirectly infringes any patent, then =
|
||||
any=20
|
||||
rights granted to You by such Participant under Sections 2.1(b) and =
|
||||
2.2(b) are=20
|
||||
revoked effective as of the date You first made, used, sold, =
|
||||
distributed, or had=20
|
||||
made, Modifications made by that Participant.</P>
|
||||
<P><B>8.3. </B>If You assert a patent infringement claim against =
|
||||
Participant=20
|
||||
alleging that such Participant's Contributor Version directly or =
|
||||
indirectly=20
|
||||
infringes any patent where such claim is resolved (such as by license or =
|
||||
|
||||
settlement) prior to the initiation of patent infringement litigation, =
|
||||
then the=20
|
||||
reasonable value of the licenses granted by such Participant under =
|
||||
Sections 2.1=20
|
||||
or 2.2 shall be taken into account in determining the amount or value of =
|
||||
any=20
|
||||
payment or license.</P>
|
||||
<P><B>8.4.</B> In the event of termination under Sections 8.1 or 8.2 =
|
||||
above, all=20
|
||||
end user license agreements (excluding distributors and resellers) which =
|
||||
have=20
|
||||
been validly granted by You or any distributor hereunder prior to =
|
||||
termination=20
|
||||
shall survive termination.</P>
|
||||
<H2>9. Limitation of Liability.</H2>
|
||||
<P>UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER TORT =
|
||||
(INCLUDING=20
|
||||
NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL YOU, THE INITIAL DEVELOPER, =
|
||||
ANY OTHER=20
|
||||
CONTRIBUTOR, OR ANY DISTRIBUTOR OF COVERED CODE, OR ANY SUPPLIER OF ANY =
|
||||
OF SUCH=20
|
||||
PARTIES, BE LIABLE TO ANY PERSON FOR ANY INDIRECT, SPECIAL, INCIDENTAL, =
|
||||
OR=20
|
||||
CONSEQUENTIAL DAMAGES OF ANY CHARACTER INCLUDING, WITHOUT LIMITATION, =
|
||||
DAMAGES=20
|
||||
FOR LOSS OF GOODWILL, WORK STOPPAGE, COMPUTER FAILURE OR MALFUNCTION, OR =
|
||||
ANY AND=20
|
||||
ALL OTHER COMMERCIAL DAMAGES OR LOSSES, EVEN IF SUCH PARTY SHALL HAVE =
|
||||
BEEN=20
|
||||
INFORMED OF THE POSSIBILITY OF SUCH DAMAGES. THIS LIMITATION OF =
|
||||
LIABILITY SHALL=20
|
||||
NOT APPLY TO LIABILITY FOR DEATH OR PERSONAL INJURY RESULTING FROM SUCH =
|
||||
PARTY'S=20
|
||||
NEGLIGENCE TO THE EXTENT APPLICABLE LAW PROHIBITS SUCH LIMITATION. SOME=20
|
||||
JURISDICTIONS DO NOT ALLOW THE EXCLUSION OR LIMITATION OF INCIDENTAL OR=20
|
||||
CONSEQUENTIAL DAMAGES, SO THIS EXCLUSION AND LIMITATION MAY NOT APPLY TO =
|
||||
|
||||
YOU.</P>
|
||||
<H2>10. U.S. Government End Users.</H2>
|
||||
<P>The Covered Code is a "commercial item," as that term is defined in =
|
||||
48 C.F.R.=20
|
||||
2.101 (Oct. 1995), consisting of "commercial computer software" and =
|
||||
"commercial=20
|
||||
computer software documentation," as such terms are used in 48 C.F.R. =
|
||||
12.212=20
|
||||
(Sept. 1995). Consistent with 48 C.F.R. 12.212 and 48 C.F.R. 227.7202-1 =
|
||||
through=20
|
||||
227.7202-4 (June 1995), all U.S. Government End Users acquire Covered =
|
||||
Code with=20
|
||||
only those rights set forth herein.</P>
|
||||
<H2>11. Miscellaneous.</H2>
|
||||
<P>This License represents the complete agreement concerning subject =
|
||||
matter=20
|
||||
hereof. If any provision of this License is held to be unenforceable, =
|
||||
such=20
|
||||
provision shall be reformed only to the extent necessary to make it =
|
||||
enforceable.=20
|
||||
This License shall be governed by Queensland, Australia law provisions =
|
||||
(except=20
|
||||
to the extent applicable law, if any, provides otherwise), excluding its =
|
||||
|
||||
conflict-of-law provisions. With respect to disputes in which at least =
|
||||
one party=20
|
||||
is a citizen of, or an entity chartered or registered to do business in=20
|
||||
Australia, any litigation relating to this License shall be subject to =
|
||||
the=20
|
||||
jurisdiction of Australian Courts, with the losing party responsible for =
|
||||
costs,=20
|
||||
including without limitation, court costs and reasonable attorneys' fees =
|
||||
and=20
|
||||
expenses. The application of the United Nations Convention on Contracts =
|
||||
for the=20
|
||||
International Sale of Goods is expressly excluded. Any law or regulation =
|
||||
which=20
|
||||
provides that the language of a contract shall be construed against the =
|
||||
drafter=20
|
||||
shall not apply to this License.</P>
|
||||
<H2>12. Responsibility for Claims.</H2>
|
||||
<P>As between Initial Developer and the Contributors, each party is =
|
||||
responsible=20
|
||||
for claims and damages arising, directly or indirectly, out of its =
|
||||
utilization=20
|
||||
of rights under this License and You agree to work with Initial =
|
||||
Developer and=20
|
||||
Contributors to distribute such responsibility on an equitable basis. =
|
||||
Nothing=20
|
||||
herein is intended or shall be deemed to constitute any admission of=20
|
||||
liability.</P>
|
||||
<H2>13. Multiple-licensed Code.</H2>
|
||||
<P>Initial Developer may designate portions of the Covered Code as=20
|
||||
"Multiple-Licensed". "Multiple-Licensed" means that the Initial =
|
||||
Developer=20
|
||||
permits you to utilize portions of the Covered Code under Your choice of =
|
||||
the DPL=20
|
||||
or the alternative licenses, if any, specified by the Initial Developer =
|
||||
in the=20
|
||||
file described in Exhibit A.</P>
|
||||
<H2>14. High Risk Activities.</H2>
|
||||
<P>The Software is not fault-tolerant and is not designed, manufactured =
|
||||
or=20
|
||||
intended for use or resale as on-line control equipment in hazardous=20
|
||||
environments requiring fail-safe performance, such as in the operation =
|
||||
of=20
|
||||
nuclear facilities, aircraft navigation or communication systems, air =
|
||||
traffic=20
|
||||
control, direct life support machines, or weapons systems, in which the =
|
||||
failure=20
|
||||
of the Software could lead directly to death, personal injury, or severe =
|
||||
|
||||
physical or environmental damage ("High Risk Activities").</P>
|
||||
<H2>EXHIBIT A - DSTC Public License.</H2>
|
||||
<P>The contents of this file are subject to the DSTC Public License =
|
||||
Version 1.1=20
|
||||
(the 'License'); you may not use this file except in compliance with the =
|
||||
|
||||
License.</P>
|
||||
<P>Software distributed under the License is distributed on an 'AS IS' =
|
||||
basis,=20
|
||||
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License =
|
||||
for the=20
|
||||
specific language governing rights and limitations under the =
|
||||
License.</P>
|
||||
<P>The Original Code is ______________________________________.</P>
|
||||
<P>The Initial Developer of the Original Code is =
|
||||
________________________.=20
|
||||
Portions created by ______________________ are Copyright =C2=A9=20
|
||||
_____________________________. All Rights Reserved.</P>
|
||||
<P>Contributor(s): ______________________________________.</P>
|
||||
<P>Alternatively, the contents of this file may be used under the terms =
|
||||
of the=20
|
||||
_____ license (the "[___] License"), in which case the provisions of =
|
||||
[______]=20
|
||||
License are applicable instead of those above. If you wish to allow use =
|
||||
of your=20
|
||||
version of this file only under the terms of the [____] License and not =
|
||||
to allow=20
|
||||
others to use your version of this file under the DPL, indicate your =
|
||||
decision by=20
|
||||
deleting the provisions above and replace them with the notice and other =
|
||||
|
||||
provisions required by the [___] License. If you do not delete the =
|
||||
provisions=20
|
||||
above, a recipient may use your version of this file under either the =
|
||||
DPL or the=20
|
||||
[___] License.'</P>
|
||||
<P>[NOTE: The text of this Exhibit A may differ slightly from the text =
|
||||
of the=20
|
||||
notices in the Source Code files of the Original Code. You should use =
|
||||
the text=20
|
||||
of this Exhibit A rather than the text found in the Original Code Source =
|
||||
Code=20
|
||||
for Your Modifications.]</P></BODY></HTML>
|
24
VisionSDK_C_GCC9.3.0_armv8/licenses/xxhash_License.txt
Normal file
24
VisionSDK_C_GCC9.3.0_armv8/licenses/xxhash_License.txt
Normal file
@ -0,0 +1,24 @@
|
||||
xxHash Library
|
||||
Copyright (c) 2012-2014, Yann Collet
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this
|
||||
list of conditions and the following disclaimer in the documentation and/or
|
||||
other materials provided with the distribution.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
||||
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
Loading…
Reference in New Issue
Block a user