Monday, May 21st 2018, 7:23am UTC+2

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to SEGGER Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.



Date of registration: May 15th 2018

Posts: 1


Tuesday, May 15th 2018, 2:54pm

how to decode jpeg and png respectively same time in two tasks

Dear sirs
i am using nxplpc54608 for my project. My project is used to display some business pictures and advertising pictures. Because of the lack of storage devices (only 16MB). So our business image is overlaid with a png icon and a jpg background image, and the ad image is jpg.
My environment is: FreeRTOS + emwin(5.38) + pnglib(V538)

I created two tasks:
1. Used to receive play tasks, including advertisements and business photos. When an advertisement picture is to be played, a message is simultaneously sent to

another task to pre-decode the next advertisement picture to be played. Decoding png is needed when playing business pictures, then superimposed with the background picture
and displayed.
2. Used to Pre-decode for advertising pictures (jpg). After the decoding is completed, the message is sent to the playing task and is waiting to be played.

my question:
When the pre-decoded task is being decoded, the business image needs to be played. At this time, when the service image is need to playe, an error occurs。

like the attachment pic.

and can i use emwin like this: create two tasks, one for png decode and another for jpg decode.


jam has attached the following image:
  • emwin.jpg

Similar threads