Skip to content

Instantly share code, notes, and snippets.

Avatar

Edgar TIS-Edgar

  • The Imaging Source
  • Germany
View GitHub Profile
@TIS-Edgar
TIS-Edgar / test-script.py
Created Jun 23, 2020
TCAM_LOG=DEBUG ./test-script.py --gst-debug=tcambin:5
View test-script.py
#!/usr/bin/env python3
import time
import sys
import gi
gi.require_version("Tcam", "0.1")
gi.require_version("Gst", "1.0")
from gi.repository import Tcam, Gst
View aravis_port_knock.patch
diff --git a/src/arvgvstream.c b/src/arvgvstream.c
index 4dde0b2..ae032c7 100644
--- a/src/arvgvstream.c
+++ b/src/arvgvstream.c
@@ -41,12 +41,12 @@
#include <stdio.h>
#include <errno.h>
#include <arvwakeupprivate.h>
+#include <netinet/in.h>
@TIS-Edgar
TIS-Edgar / prevent_thread_lock.patch
Created Feb 24, 2020
prevent_thread_lock.patch
View prevent_thread_lock.patch
diff --git a/src/gstreamer-1.0/gsttcamsrc.cpp b/src/gstreamer-1.0/gsttcamsrc.cpp
index 5ee4f01..82235bd 100644
--- a/src/gstreamer-1.0/gsttcamsrc.cpp
+++ b/src/gstreamer-1.0/gsttcamsrc.cpp
@@ -1064,7 +1064,11 @@ static void gst_tcam_src_device_lost_callback (const struct tcam_device_info* in
#endif
- gst_tcam_src_stop(GST_BASE_SRC(self));
+
@TIS-Edgar
TIS-Edgar / config.log
Created Nov 13, 2019
aravis 0.6 autogen.sh ouput
View config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by aravis configure 0.6.5, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ../configure autogen_log.txt
## --------- ##
## Platform. ##
View aravis.src.Makefile
# Makefile.in generated by automake 1.16.1 from Makefile.am.
# src/Makefile. Generated from Makefile.in by configure.
# Copyright (C) 1994-2018 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is distributed in the hope that it will be useful,
View 23519996.xml
The Imaging Source-23519996 (192.168.100.29)
<?xml version="1.0" encoding="utf-8"?>
<RegisterDescription ModelName="P1300_M" VendorName="Imaging_Source" ToolTip="P1300_M" SchemaMajorVersion="1" SchemaMinorVersion="1" SchemaSubMinorVersion="1" MajorVersion="1" MinorVersion="0" SubMinorVersion="0" ProductGuid="d7a6bb44-d279-4449-bda9-f70f3bf6cd08" VersionGuid="a78a6a68-8da4-4461-af61-629a8524c031" StandardNameSpace="GEV" xmlns="http://www.genicam.org/GenApi/Version_1_1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.genicam.org/GenApi/Version_1_1 http://www.genicam.org/GenApi/GenApiSchema_Version_1_1.xsd">
<Category Name="Root" NameSpace="Standard">
<Description>Provides the Root of the GenICam features tree.</Description>
<Visibility>Beginner</Visibility>
<pFeature>TLParamsLocked</pFeature>
<pFeature>DigitalIO</pFeature>
<pFeature>AutoFunctionsROI</pFeature>
<pFeature>AnalogControls</pFeature>
View 42619966.xml
The Imaging Source-42619966 (192.168.0.143)
<?xml version="1.0" encoding="utf-8"?>
<RegisterDescription ModelName="IMX249L_C" VendorName="Imaging_Source" ToolTip="IMX249L_C" SchemaMajorVersion="1" SchemaMinorVersion="1" SchemaSubMinorVersion="1" MajorVersion="1" MinorVersion="0" SubMinorVersion="0" ProductGuid="ed75dd51-f29c-455f-be6e-db7790fb9f37" VersionGuid="e52f19f7-f8cd-4969-9529-3d8403add05a" StandardNameSpace="GEV" xmlns="http://www.genicam.org/GenApi/Version_1_1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.genicam.org/GenApi/Version_1_1 http://www.genicam.org/GenApi/GenApiSchema_Version_1_1.xsd">
<Category Name="Root" NameSpace="Standard">
<Description>Provides the Root of the GenICam features tree.</Description>
<Visibility>Beginner</Visibility>
<pFeature>TLParamsLocked</pFeature>
<pFeature>DigitalIO</pFeature>
<pFeature>AutoFunctionsROI</pFeature>
<pFeature>ColorTransformationControl</pFeature>
View 33gp1300e-47619971.xml
The Imaging Source-47619971
<?xml version="1.0" encoding="utf-8"?>
<RegisterDescription ModelName="P1300L_C" VendorName="Imaging_Source" ToolTip="P1300L_C" SchemaMajorVersion="1" SchemaMinorVersion="1" SchemaSubMinorVersion="1" MajorVersion="1" MinorVersion="0" SubMinorVersion="0" ProductGuid="55e2bd87-de7c-4a08-b4b8-c9012789c109" VersionGuid="f56362b7-3312-4bd7-b857-98f26511f6f3" StandardNameSpace="GEV" xmlns="http://www.genicam.org/GenApi/Version_1_1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.genicam.org/GenApi/Version_1_1 http://www.genicam.org/GenApi/GenApiSchema_Version_1_1.xsd">
<Category Name="Root" NameSpace="Standard">
<Description>Provides the Root of the GenICam features tree.</Description>
<Visibility>Beginner</Visibility>
<pFeature>TLParamsLocked</pFeature>
<pFeature>DigitalIO</pFeature>
<pFeature>AutoFunctionsROI</pFeature>
<pFeature>AnalogControls</pFeature>
@TIS-Edgar
TIS-Edgar / framerate.c
Created Sep 10, 2015
set v4l2 framerate
View framerate.c
bool set_framerate(int fd)
struct v4l2_streamparm parm;
parm.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
parm.parm.capture.timeperframe.numerator = 15;
parm.parm.capture.timeperframe.denominator = 1;
View gist:7d9cfc346a36d6062d36
void find_device()
{
struct udev* udev = udev_new();
if (!udev)
{
setError(Error("Unable to create udev reference.", EIO));
return device_list;
}