JPEG decoder 4stream demo timeout

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

JPEG decoder 4stream demo timeout

7,482 Views
krishnakumar_ma
Contributor III

Dear All,

We are using Board: S32V234-SBC. This is for our product which can support multiple interfaces. 

We have an order of 200 -pcs. 

Our team is making progress on Camera, and ethernet interface. As a feature, we need to deliver Image streaming via JPEG format. We are able to run the sample code with sample JPG image "jpg_dcd_test.jpg" but not the other JPG images. Please find the attached image files and the logs below. Any suggestions would be helpful to the team.

root@s32v234sbc:/home/nxp/ws# ./isp_jpeg.elf jpg_dcd_test.jpg

**************************************************************
** JPEG decoder 4stream demo
** Description:
** o Uses static image to feed all 4 streams of JPEG decoder
** o ISP converts pixel format from YUV420 to YUV422,
** subsamples data 2x and creates fullsize frames in DDR.
** o Final images displayed on display using DCU.
**
** Usage:
** o 1 parameter: file to be used as JpgeDec data input
** o no params => data/common/jpg_dcd_test.jpg file used as data input.
** (file has to be present in working directory).
**
**************************************************************

** jpg_dcd_test.jpg file will be used as input.
Press Ctrl+C to terminate the demo.
Framebuffer mapped at 0x7f89baa000.
30 frames decoded.
60 frames decoded.
90 frames decoded.
120 frames decoded.
120 frames took 2941477 usec (40.80fps)
150 frames decoded.
180 frames decoded.
root@s32v234sbc:/home/nxp/ws#
root@s32v234sbc:/home/nxp/ws# ./isp_jpeg.elf jpg_sample_demo_screen.jpg

**************************************************************
** JPEG decoder 4stream demo
** Description:
** o Uses static image to feed all 4 streams of JPEG decoder
** o ISP converts pixel format from YUV420 to YUV422,
** subsamples data 2x and creates fullsize frames in DDR.
** o Final images displayed on display using DCU.
**
** Usage:
** o 1 parameter: file to be used as JpgeDec data input
** o no params => data/common/jpg_dcd_test.jpg file used as data input.
** (file has to be present in working directory).
**
**************************************************************

** jpg_sample_demo_screen.jpg file will be used as input.
Press Ctrl+C to terminate the demo.
Framebuffer mapped at 0x7f87c53000.
Frame Wait timedout start 1561653510084994 stop 1561653511085049.
root@s32v234sbc:/home/nxp/ws#

Regards,

Labels (1)
0 Kudos
9 Replies

7,205 Views
krishnakumar_ma
Contributor III

Log show jpg_sample_demo_screen.jpg. 

Both jpg_sample_demo_screen.jpg => jpg_1280_800.jpg are same and result in timeout.

0 Kudos

7,205 Views
paulvlase
NXP Employee
NXP Employee

kushalshah13, can you help us here?

0 Kudos

7,205 Views
krishnakumar_ma
Contributor III

Hello Kushal, Team,

We observed that saving the NXP provided image without any modification is also resulting in a timeout.

Attached both the images.

jpg_dcd_test.jpg : Working okay.

jpg_dcd_test_just_open_and_save_once_again.jpg: Not working.

It would be helpful if you can provide the solution or for time-being alternative means of decoding JPG. I am sure, you understand the project release importance, your timely reply will help us to plan the sprint.

Regards,

KK

jpg_dcd_test.jpg : Working okay.

jpg_dcd_test.jpg

jpg_dcd_test_just_open_and_save_once_again.jpg: Not working.

jpg_dcd_test_just_open_and_save_once_again.jpg

0 Kudos

7,205 Views
KushalShahNXP
NXP Employee
NXP Employee

Hi krishnakumar.mayannavar@hs-kempten.de‌,

It looks like that the error is due to the input image format error.The demo apps takes the JPEG image whose format is YUV420 and converts it into YUV422 in ISP. So It may be possible that the image you are using is in some other format than YUV420.

Forever, when you save jpg_dcd_test.jpg from text editor it is already converted. Hence it gives error. You can also notice that the image size of new image has already changed.

So, I would recommend to test a JPEG image whose format is YUV420.

Regards,

Kushal

0 Kudos

7,205 Views
krishnakumar_ma
Contributor III

Dear Kushal,

Thank you for the reply, we have read the comment about YUV420 to YUV422.

Our main interface is Ethernet and thus video, MJPEG format, streaming and its decoding performance play an important role in our product overall performance. We are using standard JPEG and MJPEG data format so that our product can be interfaced to standardly available JPEG/MJPEG tools.

1. What is your suggestion to verify if the image is YUV420 or not? 

2. Do S32V234 support a generic JPG decoder? i.e. JPG decoding without limitation on the formats or supporting most commonly used JPG formats? 

Regards,

KK

0 Kudos

7,205 Views
krishnakumar_ma
Contributor III

Dear Kushal,

Since the NXP is tested with YUV420 images, could you share the tool which can covert the generic JPG to NXP required format or document on the procedure to convert an image to NXP required format?

This would be helpful to make quick progress on the project and to demo.

The team is eagerly waiting for your reply. Hope to hear from you soon.

Regards,

KK

0 Kudos

7,205 Views
KushalShahNXP
NXP Employee
NXP Employee

Hi krishnakumar.mayannavar@hs-kempten.de‌, 

S32V234 JPEG decoder supports industry standard JPEG decoding. The format I was specifying only applies to down-sampling of the image, which is the part of the JPEG encoding process. So after decoding user needs to interpret data in correct format to reconstruct the image.

I am working on creating instructions so that you can

1. Use a tool to generate image that works with current demo

or

2. Change the demo configuration to work with your image.

I will update you soon.

For any future questions,

We only support tools like S32 Design Studio and Model Based Design Tool for Vision via communities.

For Vision SDK or S32V234 devices, please log a support ticket at www.nxp.com/support >> Support Requests and experts will address your questions.

Regards,

Kushal

0 Kudos

7,205 Views
krishnakumar_ma
Contributor III

Dear Kushal Shah,

Wish you are doing good, 

Hope you are done or near to completion in creating instruction.

When can we expect the details?

Best regards,

KK

0 Kudos

7,205 Views
krishnakumar_ma
Contributor III

Thank you, Kushal, for keeping updated.

We shall wait for your reply.

Regards,

KK

0 Kudos