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 / aravis_0.3.2_configure
Created September 10, 2014 06:40
aravis 0.3.2 normal configuration output
./configure --enable-viewer --enable-gst-plugin --enable-gst-0.10-plugin --enable-introspection=yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether make supports nested variables... (cached) yes
@TIS-Edgar
TIS-Edgar / aravis_gst_exampple_mono.patch
Created November 24, 2014 08:33
aravis_gst_exampple_mono.patch
diff --git a/examples/aravis/c/gstexample.c b/examples/aravis/c/gstexample.c
index 0c10eba..499fc7e 100644
--- a/examples/aravis/c/gstexample.c
+++ b/examples/aravis/c/gstexample.c
@@ -39,10 +39,10 @@
#include <arv.h>
/* our camera variables */
-#define CAMERA "The Imaging Source Europe GmbH-46210199"
-#define WIDTH 2592
@TIS-Edgar
TIS-Edgar / gist:7d9cfc346a36d6062d36
Created September 8, 2015 11:03
udev camera iteration
void find_device()
{
struct udev* udev = udev_new();
if (!udev)
{
setError(Error("Unable to create udev reference.", EIO));
return device_list;
}
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>
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-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>
@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;
# 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 / 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. ##
@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));
+