Raw streaming

Support and queries relating to all previous versions of ZoneMinder
Locked
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Raw streaming

Post by jameswilson »

Where can i find out more about this format so i can get zm4ms to support it

Cheers
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

The format is presented using the mime type 'image/x-rgb' and basically is just a series of bytes representing each pixel in the image as an rgb value. So for a 320x240 image there will be 320x240x3 bytes in order as r1g1b1r2g2b2... etc going in rows top to bottom and from the left to right. There is no format header.

Essentially it's what you'd get if you decompressed a jpeg should also pretty much be ready to map onto a screen.

Phil
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

i think the problem is taht i need to know the size of image if using raw due to its streaming type. Once i have a running 1.22 i will give it a try or can you email me a sample file
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

There is a content length header which contains the size of the data. I can probably put in an X-Image-Dimensions header which contains the full WxHxD if it helps.

Phil
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

it proabably will, In zm4ms .net does all the work all i do is tell it where to gety the images from. If it has no wxhxd then it will fail. Also if it conatianed this info it means i wouldnt need to store it my end in the app as it it could pick it up from the server.

James
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

So, is that a yes you would like the header? :lol:

Phil
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

yes please but i havnt tried it yet. Im assuming i will have to grab the raw file and then tell the picturebox when to start a new line for the image to be built up. If i can get this from zms then it will be more flexible. Thats assuming i can do it at all mate.

James
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
Locked