Monthly Archives: July 2008

Gumstix / OpenEmbedded Webcam Support

Getting v4l2 webcam support is fairly straight forward once you have the toolchain in place.

First, you need to install the v4l2 modules. You can either follow the build instructions located here or download the binary version below.

The modules should be installed at /lib/modules/2.6.21/kernel/drivers/media/video.

Here is a set of video modules compiled for the 2.6.21 kernel.

    Included Kernel Modules

  • uvcvideo.ko
  • compat_ioctl32.ko
  • v4l1-compat.ko
  • videodev.ko
  • v4l2-common.ko

Once you have the modules installed issue a “depmod -a” command so the system can find them.

To test your work, download a copy of uvccapture for OpenEmbeeded.

Before you can install the uvccapture package you will need to install a copy of libjpeg.

    ipkg install libjpeg62

Once you have libjpeg installed you can install uvccapture.

    ipkg install uvccapture_0.4-r5_armv5te.ipk

Here is a quick time lapse photography script

You can create a movie from the images using jpeg2yuv. Under Ubuntu, jpeg2yuv is part of the mjpegtools package.

Flex Brainfuck Interpreter

Flex Brainfuck Interpreter
[Full Source Code]

Brainfuck is a minimalist programming language having of only 8 commands.
Operations are performed using a single pointer and an array of bytes to store data.

    Command     Description
> Move the pointer to the right
< Move the pointer to the left
+ Increment the memory cell under the pointer
- Decrement the memory cell under the pointer
. Output the character signified by the cell at the pointer
, Input a character and store it in the cell at the pointer
[ Jump past the matching ] if the cell under the pointer is 0
] Jump back to the matching [

SVG Viewer – Code Rewrite and Documentation

Over the last week I’ve completely rewritten the SVG Viewer.
I got rid of a lot of hacks such as the XML preprocessor which was creating multiple copies of the SVG XML.

[Subversion Repo]
svn co https://iciifs.com/svn/SvgViewer SvgViewer

http://code.google.com/p/svg-viewer/

    Changes

  • Use nodes now pull XML from symbol and def nodes. The preprocessor no longer copies XML into the use nodes.
  • Symbols, Defs, and Clip-Paths now have revision support. When a change is made to any of these nodes other nodes will update their display to reflect the changes.
  • The text and tspan nodes are included in this update.
  • All nodes with ids now register with the root node.

Also, there is now documentation for the SVG Viewer library.

Flex SVG Viewer – Text and TSpan Support

This movie requires Flash Player 9

[SVG File] text along a path

I’ve added basic support for Text and TSpan SVG elements to a branch of the SVG Viewer. In the next few days I will add text support to the main library.

In order to support text rotation I am creating a bitmap of the text.