Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: AT91sam9m10-g45-ek I meet bad performance decompressing JPEG
PostPosted: Wed May 23, 2012 10:35 am 
Offline

Joined: Wed Dec 28, 2011 10:26 am
Posts: 5
Hi all,

well, I am working with the AT91sam9m10-g45-ek (rev A) devkit,
I've done some tests to display (or simply decompress into a RGB file) a JPEG file.

And I meet some performance problems !

When I use the gst-launch program (that use the plug-in that use the hardware acceleration, the x170 DSP), I get my picture (800*600) in about 600-700 ms.
And I've cross compiled the djpeg library (that is purely a software jpeg library), and with the same picture, it takes about 50ms.
It's not normal to get 600ms to decompress a jpeg file with a specialized hardware, when pure software just takes 50ms ????!!!!

Could someone tell me using the gst-launch (to take advantage of the hardware acceleration) (or maybe there is another way?), if there is a better command line than the one I'm using ?
Using different buffers configuration maybe, or allowing to avoid some useless pause ?

I don't understand why it seems to sleep so long time !!!

time gst-launch filesrc location=/var/ramdisk/mypicture.jpg ! x170 output=RGB16 output_width=800 output_height=480 codec=JPEG ! fbdevsink sync=false

Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
real 0m 0.72s
user 0m 0.63s
sys 0m 0.07s

Thanks for any help you could give me (and to the community)


Top
 Profile  
 
 Post subject: errata
PostPosted: Thu May 24, 2012 11:16 am 
Offline

Joined: Wed Dec 28, 2011 10:26 am
Posts: 5
I 've mentioned the software JPEG decompression takes 50ms,
in fact this takes between 180ms and 400ms.
But that's still faster than the hardware decompression using gst-launch.

Someone could tell me if there's a way to reduce the time spent in gst-launch. (600-700ms to decompress a JPEG using the x170 Hantro hardware dsp) !!
I'm thinking particularly about PAUSED... status.

thanks a lot.

Alex


Top
 Profile  
 
 Post subject: AT91sam9m10-g45-ek bad performance with JPEG using gst-launc
PostPosted: Thu May 24, 2012 11:52 am 
Offline

Joined: Wed Dec 28, 2011 10:26 am
Posts: 5
I finally found a way to get more traces (I maybe previously redirected the standard output to /dev/null !)

Well, using gst-launch I have these messages:

Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Got EOS from element "pipeline0".
Execution ended after 48953596 ns.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...

What I see is that something takes 48 ms (I don't know what?), but the total spent time is about 700ms, but I see at the screen the picture a very short time before gst-launch is terminated.


Top
 Profile  
 
 Post subject: Re: AT91sam9m10-g45-ek I meet bad performance decompressing
PostPosted: Thu May 24, 2012 12:43 pm 
Offline

Joined: Fri Mar 09, 2012 1:34 pm
Posts: 68
Maybe the buffer is drained. Do you feed the data through the DMA controller. If so, try to fiddle around with the DMA settings:
1) MATRIX_MCFG
2) DMAC_GCFG - LOCK_IF, LOCK_B, LOCK_IF_L
3) DMAC_CTRLB - try to choose different layers for source and destination

_________________
Best regards
Przemyslaw Baranski


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: