getting jpeg-mmx to work

Support and queries relating to all previous versions of ZoneMinder
dbosso
Posts: 23
Joined: Thu Jul 21, 2005 8:21 pm
Location: Goleta, California

getting jpeg-mmx to work

Post by dbosso »

I'd like to start a thread about getting jpeg-mmx or some other mmx/sse optimized jpeg library working. There have been some claims of success, but I've not been able to get anywhere.

So, anyone got it working? What did you have to do?

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

Post by jameswilson »

i havnt got a c lue how to but i have read elsewhere about some success and i would love to see this as i think it would give a huge performance boost
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
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

I wish you luck. Let us know how it turns out.
Regards,
Cordel
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

A friend ofmine was trying to get it working on another project and I think he got it mostly working ok but only on Intel boxes. Plus it was a bit flaky especially if compiled with optimisation (half the point really!) and DCT_FASTEST caused it to barf.

Still, if anyone can get it working consistently, even on a limited set of platforms, I'd be interested to see what performance improvements you might get.

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

Post by jameswilson »

i dont suppose we could have both libraries installed then have an option which to use. or does it have to be built the way you want it to work?

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 »

You don't have to change the client at all. So if you have jpeg-mmx installed and working you can either just modify the Makefile to link to it instead of the regular one or do a bit of creative renaming.

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

Post by jameswilson »

oh i see i will try this then so if i renem the library file from the mmx one to the one currently in use that should work? i mean work in the loosest possible sense of course lol
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 »

Possibly. I think the issue with jpeg-mmx is that it won't necessarily work out of the box. You may need to rebuild it a few times with different options as it sounds a bit touchy. I've reallly done much with it myself though. When I get time I will take a look.

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

Post by jameswilson »

http://sourceforge.net/project/showfile ... e_id=12468

I have found this is it any use?
When you say build it do you need to tell what processor its on etc cos it appears it works it out for itself?

And would this help with zms too
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 »

It would help with everything if it would work. However I know from my (and other people on other projects) experience that it is very touchy and will crash and burn on certain platforms and even on certain files.

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

Post by jameswilson »

damn. when you say certain files are these jpg as it wouldnt be working on anything else would it? Platform wise, im gonna build something to test with, would amd or intel be prefered
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 »

Yes. My 'day job' has also involved some messing around with jpeg-mmx. We have foudn that sometimes it just crashes. Or we can get it to encode but not decode (or it might be the other way round). Basically it's just been a bit frustrating trying to get it to work consistently. And I think it won't work on AMD chips either as far as I recall, though it may have only been some of them.

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

Post by jameswilson »

ok then p4 then. Im gonna have a go cos i think it will help my slowdown problem.
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 »

Yes. It's worth a try and if you can establish a baseline platform where it does work then that would be helpful.

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

Post by jameswilson »

it will be a 3gig celeron d i suppose the chipset is irrelevant
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