Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - How to display the Artwork image in the touchscreen: (11 Items)
   
How to display the Artwork image in the touchscreen  
Hi all!
      I want to display the artwork image by the touchscreen.
     Firstly,I  use the function (metadata_image_load() and others) to load the mp3 image to the tmpfs.
    Secondly,when I receive the msg(MME_EVENT_METADATA_IMAGE and so on) ,I can gained the image info,please see the log 

as follow.
    Thirdly, how can I display the image(in the tmpfs) in the touchscreen, through flash? or other methods? thaks very 
much!
   
      the log is as follow:


    mme_play(): success
Ply status thread received MME_EVENT_TRACKCHANGE event
the current id is:2
MMe MME_TRKCHANGE AM_SendToApp ok 
Created metadata session 1
Get currentinfo successfully
Receive NOWPLAYING_METADATA,begin parse the songInfo
the msid2 is 1
,the fid2 is 0
qdb_statement(): success
The clumns is 7
The rows is 1
The song info is filename:88.mp3
; songtitle:
; songartist:
; songalbum:Myself
;songgenre:
; songyear:2010
;songsize:7946231
;songduration :198220
;HMI_MMEPLAYINFO AM_SendToApp ok 
PLAYSTATESPEED(2,1000)
 Receiving asynchronous manner an event 
MME_EVENT_METADATA_INFO(RID=1 error=0 len=457
 xmlbuf=<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<container type="file">
 <track index="0">
  <audio>
   <stream index="0">
    <common duration="197785" title="鍗虫椂鐢熸晥" artist="钄′緷鏋?" album="Myself" year="2010" discnumber="0" 
tracknumber="15"/>
   </stream>
  </audio>
  <images>
   <image index="0" loadable="true">
    <format size="16153" mimetype="image/jpeg" description="Front cover"/>
   </image>
  </images>
 </track>
</container>

 tmpfile=/fs/tmpfs/AAA397325)
url=0,sync_mode=32
IRID=2  
12
Metadata received MME_EVENT_METADATA_IMAGE event
Successful image
MME_EVENT_METADATA_IMAGE(RID=2 error=0 len=32 URL=/fs/tmpfs/imagecache/1/CAA331806)
Re: How to display the Artwork image in the touchscreen  
On 10-08-24 6:28 AM, "Kailen High" <community-noreply@qnx.com> wrote:
>     Thirdly, how can I display the image(in the tmpfs) in the touchscreen,
> through flash? or other methods? thaks very
> much!

I don't know if any flash programmers are monitoring this forum. If you are
using flash, it has all of the required decoders for the various image
formats, so it should be fairly easy to make it display the image, I just
don't know how to do so. It is very dependant on what your HMI is being
built on.

Gilles
Re: How to display the Artwork image in the touchscreen  
Just as a head's up, Flash's image scaling capability is.....poor.  Yes, it can do it, but you won't be happy with the 
performance if your source image is bigger than your viewing screen (or image object).

I just finished writing an image scaling library that uses DBUS for communication and QNX's Img library for 
manipulations.  It ain't quick on our platform, but it does get the job done.  We're seeing ~5.5 seconds to scale a ~6mb
 JPEG image down to ~400x200 and >25seconds to scale down a 12mbJPEG image.  We're running QNX 6.4.1 here.

So, while yes, Flash can do it, if you're not dealing with pre-scaled images, you'll want to find a way to pre-scale 
them before ya get the pictures into flash.

- Mike Briggs
Re: How to display the Artwork image in the touchscreen  
On 10-08-25 4:48 PM, "Michael Briggs" <community-noreply@qnx.com> wrote:
> communication and QNX's Img library for manipulations.  It ain't quick on our
> platform, but it does get the job done.  We're seeing ~5.5 seconds to scale a
> ~6mb JPEG image down to ~400x200 and >25seconds to scale down a 12mbJPEG
> image.  We're running QNX 6.4.1 here.

Multimedia images (i.e. embedded MP3 cover art or such) usually isn't this
large. I suppose your application is not specific to cover art pulled from
files?

Regards,
Gilles
Re: How to display the Artwork image in the touchscreen  
Yeah. 

We have a requirement to show a slide show of user pictures from USB stick.  

Makes for a fun headache.

I was just trying to provide a head's up for dealing with large / non-pre scaled images inside flash.
RE: How to display the Artwork image in the touchscreen  
You may consider maintaining a cache of the rescaled images in case the
user also has the opportunity to navigate.  Will not help the first
time, and 5+ seconds is a real pain, but at least helps the second time
on. 
--
  Mate

-----Original Message-----
From: Michael Briggs [mailto:community-noreply@qnx.com] 
Sent: August 26, 2010 9:45 PM
To: general-multimedia
Subject: Re: How to display the Artwork image in the touchscreen

Yeah. 

We have a requirement to show a slide show of user pictures from USB
stick.  

Makes for a fun headache.

I was just trying to provide a head's up for dealing with large /
non-pre scaled images inside flash.



_______________________________________________

General
http://community.qnx.com/sf/go/post64513
Re: RE: How to display the Artwork image in the touchscreen  
Yeah, we maintain a rolling 4 image "buffer" of re-scaled images.

We're also investigating using QNX 6.5.x w/ the ARM v7 (NEON) instruction set to get some hardware optimization.

Another option we're considering is using a 3rd party image library instead of the QNX Img library.

I think one of the reasons for the big time jump in the 10MB+ JPEGs is memory paging.
RE: RE: How to display the Artwork image in the touchscreen  
Appreciate if you can share your findings about 3rd pty libs, especially
if you find something that can resize JPEG-s measureably faster than QNX
img lib : )
--
  Mate

-----Original Message-----
From: Michael Briggs [mailto:community-noreply@qnx.com] 
Sent: August 26, 2010 10:37 PM
To: general-multimedia
Subject: Re: RE: How to display the Artwork image in the touchscreen

Yeah, we maintain a rolling 4 image "buffer" of re-scaled images.

We're also investigating using QNX 6.5.x w/ the ARM v7 (NEON)
instruction set to get some hardware optimization.

Another option we're considering is using a 3rd party image library
instead of the QNX Img library.

I think one of the reasons for the big time jump in the 10MB+ JPEGs is
memory paging.



_______________________________________________

General
http://community.qnx.com/sf/go/post64528
Re: RE: RE: How to display the Artwork image in the touchscreen  
As soon as I can get some measureable information, I'll write something up, white paper style.
RE: RE: RE: How to display the Artwork image in the touchscreen  
Now I wonder if you are serious or got mad and ironic.  Thanks if
serious and sorry if mad. 
--
  Mate

-----Original Message-----
From: Michael Briggs [mailto:community-noreply@qnx.com] 
Sent: August 26, 2010 10:43 PM
To: general-multimedia
Subject: Re: RE: RE: How to display the Artwork image in the touchscreen

As soon as I can get some measureable information, I'll write something
up, white paper style.



_______________________________________________

General
http://community.qnx.com/sf/go/post64535
Re: RE: RE: RE: How to display the Artwork image in the touchscreen  
Nah...Not mad.  

Just figure if i'm gonna take the time to do some testing like this, might as well generate some semi-formal 
documentation.