[mythtv-users] Mythzoneminder

Paul Harrison mythtv at sky.com
Sun Sep 22 09:36:31 UTC 2013


On 20/09/13 00:42, Stephen P. Villano wrote:
> Having one issue with mythzoneminder. It looks like red and blue are
> reversed.
> My blue flashlight is a wonderful shade of red. I am green and my wife's
> red cigarette pack is a strange shade of green.
>
> Is anyone else seeing this? On yesterday's 0.27.
>

http://code.mythtv.org/trac/ticket/8182

The problem appears to be a memory alignment problem but when I looked 
at it some time ago I couldn't see where the problem was coming from. 
Comparing the code in Zoneminder and what mythzmserver does to read the 
live images I couldn't see any difference but one worked OK and the 
other doesn't at least for some people.

It could be something like different compiler versions using different 
sizes for an enum or some versions of v4l aligning the image data to 16 
byte boundaries and some don't.

Basically the image data for colour cameras is in 24bit RGB format like 
this RGBRGBRGBRGB so if we start reading the data from the wrong start 
position we can read each pixel as GBR or BRG instead or RGB which is 
what we want.

I've never been able to reproduce the bug so it isn't easy to figure out 
what the problem is. I'm open to ideas though :)

Paul H.


More information about the mythtv-users mailing list