[argyllcms] Re: Calibrating a digital photo frame

  • From: Graeme Gill <graeme@xxxxxxxxxxxxx>
  • To: argyllcms@xxxxxxxxxxxxx
  • Date: Thu, 13 Dec 2007 16:31:40 +1100

Frédéric Mantegazza wrote:

On mardi 11 décembre 2007, Martin Ling wrote:


Probably the quickest and dirtiest way would be to patch dispread so
that between displaying the patch and reading the colorimeter, it calls
an external script. Then use a script which just screen grabs the patch
and sends the resulting image to the display frame.


Graeme, could you help me to start this way? Where to look in the source? Or you may have a better idea?

That's certainly the simplest idea to hack something in.
Add a callout using system() to a script at the end of 
spectro/dispwin.c/dispwin_set_color()
that passes the color value as arguments. Create a script that uses (say)
Image Magick to create a raster file, copy it to the photo frame,
sleep long enough to ensure that the image is displayed, and then return
to allow the instrument to do its reading.

Graeme Gill.

Other related posts: