libdc1394_video_set_mode doesn’t change the mode – A solution!

Posted by Benjamin Close on May 6, 2011 under OpenSource, Programming | Be the First to Comment

This article details a reason libdc1394_video_set_mode/libdc1394_video_set_framerate  may not work. Whilst working on an application that makes use of a 1394a/firewire camera I found a strange bug/feature with libdc1394. The problem was dc1394 was being used to the mode of the camera to 800×600 resolution. However, when querying the frame size after dequeuing the frame, the [..more..]

OpenGL glTexSubImage2D very slow – a solution!

Posted by Benjamin Close on under Programming | Read the First Comment

This article describes a possible reason glTexSubImage2D may be slow. Recently I was working on a piece of code that updated a texture with a camera frame. The application was using the fixed function (non shaders) pipeline of OpenGL. Whilst I didn’t notice it at first, I soon found that the camera image was very [..more..]

Xinput 1 -> XInput 2 conversion guide

Posted by Benjamin Close on July 30, 2009 under Computers, FreeDesktop, OpenSource, Programming | 2 Comments to Read

Details about the API changes between Xinput 1(XI1) and XInput 2 (XI2)

jhbuild just won’t build! (aka Include path madness)

Posted by Benjamin Close on November 18, 2008 under FreeDesktop, OpenSource, Programming, UniSA | Read the First Comment

I’ve been recently trying to work out why jhbuild fails to build xorg on my FreeBSD box. Traditionally I compile to /usr/local/ however after wanting to experiment with MPX I’ve set things up so that I compile to /usr/local/MPX Sadly this kept breaking in xorg/lib/libX11 with the error:

stl::set

Posted by Benjamin Close on November 13, 2008 under Programming | 3 Comments to Read

Working with Mark’s dnl code, we came across an interesting issue. Mark had used the stl::set class for some of his code and whilst it compiled fine under Visual Studio, it failed to compile under gcc/g++. With the error: dnlCommon/Logger.cpp: In member function ‘void dnlCommon::Logger::setMask(std::ostream&, std::bitset<5ul>)’: dnlCommon/Logger.cpp:64: error: invalid initialization of reference of type ‘dnlCommon::Logger::LoggerPair&’ [..more..]

Stl::reverse iterator

Posted by Benjamin Close on under Programming | Be the First to Comment

I was coding a little program a while back when I found a Quirk about the stl reverse_iterator. Use of the iterator is quite easy until you have to delete from one. I tried the normal way of: vector<sometype>::reverse_iterator myiterator… .. .. myvector.erase(myiterator). only to find the code didn’t compile. A little baffled I started [..more..]

gdb

Posted by admin on November 7, 2008 under Computers, Programming | Read the First Comment

Helpful hints for when using GDB

CVS

Posted by Benjamin Close on under Programming | Be the First to Comment

This page contains various helpful hints for using CVS.

Autotools Tips (configure.ac, Makefile.am, autoconf, automake, etc)

Posted by Benjamin Close on under OpenSource, Programming | Read the First Comment

The Autotools build system is a great system. It consists of a number of tools. These are aclocal[1], autoconf[2], automake[3], autoheader[4], and to some extent libtool[5] These tools all work together to aid in building applications, libraries and providing a consistent framework for doing so. The problem however, is the tools are hard to use, poorly documented and the [..more..]