Skip to content

Instantly share code, notes, and snippets.

View TIS-Edgar's full-sized avatar

Edgar TIS-Edgar

  • The Imaging Source
  • Germany
View GitHub Profile
@TIS-Edgar
TIS-Edgar / test-script.py
Created June 23, 2020 05:39
TCAM_LOG=DEBUG ./test-script.py --gst-debug=tcambin:5
#!/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
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 / Makefile
Created July 2, 2014 12:41
v4l2_openvc
all: opencv-test
opencv-test: main.cpp v4ldevice.cpp
$(CXX) -Wall -g -O0 -o opencv-test main.cpp v4ldevice.cpp $(shell pkg-config --libs-only-l opencv libv4l2)
clean:
$(RM) *.o
@TIS-Edgar
TIS-Edgar / prevent_thread_lock.patch
Created February 24, 2020 11:57
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 November 13, 2019 05:12
aravis 0.6 autogen.sh ouput
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. ##
# 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,
@TIS-Edgar
TIS-Edgar / framerate.c
Created September 10, 2015 10:06
set v4l2 framerate
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;
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>
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>
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>