Hello,
I bought LPC2478 Eval board with Innolux LCD from Embedded artist. The example
code "Test10_LCD" for testing LCD is working fine, images are displaying
correctly as they coded image data in HEX decimal format in the "logo.c"
file.
Well, Now I am trying to display my own images ( *.JPG or *GIF format) by using
the same example code. For this i have written a simple C program to convert
image ascii data into HEX decimal. And then loaded HEX data into character
buffer "logo1[]" defined in "logo.c" But i could not get succeed.
1)I have doubt that, What type of image file format, being used in Embest
example code? Is some specified image file format only works with..?
2) There is any rules to convert image ascii data into HEX decimal code. (Just i
have read the image file in the "rb+" mode and printed to another file in HEX
format).
Yours suggestions are welcome about this problem...
faz
LPC2478 + Innolux LCD
Started by ●March 23, 2010
Reply by ●March 23, 20102010-03-23
----Original Message----
From: l...
[mailto:l...] On Behalf Of fazal.usicmku
Sent: 23 March 2010 12:27 To: l...
Subject: [lpc2000] LPC2478 + Innolux LCD
> Hello,
>
> I bought LPC2478 Eval board with Innolux LCD from
> Embedded artist. The example code "Test10_LCD" for
> testing LCD is working fine, images are displaying
> correctly as they coded image data in HEX decimal format
> in the "logo.c" file.
>
> Well, Now I am trying to display my own images ( *.JPG or
> *GIF format) by using the same example code. For this i
> have written a simple C program to convert image ascii
> data into HEX decimal. And then loaded HEX data into
> character buffer "logo1[]" defined in "logo.c" But i
> could not get succeed.
>
> 1)I have doubt that, What type of image file format,
> being used in Embest example code? Is some specified
> image file format only works with..?
>
> 2) There is any rules to convert image ascii data into
> HEX decimal code. (Just i have read the image file in the
> "rb+" mode and printed to another file in HEX format).
>
> Yours suggestions are welcome about this problem...
>
JPG and GIF images are both compressed/encoded to reduce the file size.
Try using an uncompressed BMP file instead and read up on the file format.
--
Tim Mitchell
From: l...
[mailto:l...] On Behalf Of fazal.usicmku
Sent: 23 March 2010 12:27 To: l...
Subject: [lpc2000] LPC2478 + Innolux LCD
> Hello,
>
> I bought LPC2478 Eval board with Innolux LCD from
> Embedded artist. The example code "Test10_LCD" for
> testing LCD is working fine, images are displaying
> correctly as they coded image data in HEX decimal format
> in the "logo.c" file.
>
> Well, Now I am trying to display my own images ( *.JPG or
> *GIF format) by using the same example code. For this i
> have written a simple C program to convert image ascii
> data into HEX decimal. And then loaded HEX data into
> character buffer "logo1[]" defined in "logo.c" But i
> could not get succeed.
>
> 1)I have doubt that, What type of image file format,
> being used in Embest example code? Is some specified
> image file format only works with..?
>
> 2) There is any rules to convert image ascii data into
> HEX decimal code. (Just i have read the image file in the
> "rb+" mode and printed to another file in HEX format).
>
> Yours suggestions are welcome about this problem...
>
JPG and GIF images are both compressed/encoded to reduce the file size.
Try using an uncompressed BMP file instead and read up on the file format.
--
Tim Mitchell
Reply by ●March 23, 20102010-03-23
--- In l..., "fazal.usicmku" wrote:
>
> Hello,
>
> I bought LPC2478 Eval board with Innolux LCD from Embedded artist. The example code "Test10_LCD" for testing LCD is working fine, images are displaying correctly as they coded image data in HEX decimal format in the "logo.c" file.
>
> Well, Now I am trying to display my own images ( *.JPG or *GIF format) by using the same example code. For this i have written a simple C program to convert image ascii data into HEX decimal. And then loaded HEX data into character buffer "logo1[]" defined in "logo.c" But i could not get succeed.
>
> 1)I have doubt that, What type of image file format, being used in Embest example code? Is some specified image file format only works with..?
>
> 2) There is any rules to convert image ascii data into HEX decimal code. (Just i have read the image file in the "rb+" mode and printed to another file in HEX format).
>
> Yours suggestions are welcome about this problem...
>
> faz
>
I just finished a project using the Nokia 6610 with an LPC2148. I used the Olimex BMP to Array converter here:
http://www.olimex.com/dev/soft/BmpToArray.zip
The converter builds a standard C header file so all you need to do is #include it. If you have several images, you will have to edit the name of the array since all are bmp[] = {.....};
The array is in RGB order with 2 pixels spread over 3 bytes - 12 bit color.
You can convert JPG to BMP using Microsoft Paint. Save the result as 24-bit .bmp.
Each pixel of a 24-bit bitmap is actually stored on file as 32 bits - 4 bytes per pixel. If you look at the converter code, you will see where the array is set up for 4 bytes per pixel and the 4th byte is ignored. When the file is converted to a 12-bit per pixel header file, there is no wasted space.
Richard
>
> Hello,
>
> I bought LPC2478 Eval board with Innolux LCD from Embedded artist. The example code "Test10_LCD" for testing LCD is working fine, images are displaying correctly as they coded image data in HEX decimal format in the "logo.c" file.
>
> Well, Now I am trying to display my own images ( *.JPG or *GIF format) by using the same example code. For this i have written a simple C program to convert image ascii data into HEX decimal. And then loaded HEX data into character buffer "logo1[]" defined in "logo.c" But i could not get succeed.
>
> 1)I have doubt that, What type of image file format, being used in Embest example code? Is some specified image file format only works with..?
>
> 2) There is any rules to convert image ascii data into HEX decimal code. (Just i have read the image file in the "rb+" mode and printed to another file in HEX format).
>
> Yours suggestions are welcome about this problem...
>
> faz
>
I just finished a project using the Nokia 6610 with an LPC2148. I used the Olimex BMP to Array converter here:
http://www.olimex.com/dev/soft/BmpToArray.zip
The converter builds a standard C header file so all you need to do is #include it. If you have several images, you will have to edit the name of the array since all are bmp[] = {.....};
The array is in RGB order with 2 pixels spread over 3 bytes - 12 bit color.
You can convert JPG to BMP using Microsoft Paint. Save the result as 24-bit .bmp.
Each pixel of a 24-bit bitmap is actually stored on file as 32 bits - 4 bytes per pixel. If you look at the converter code, you will see where the array is set up for 4 bytes per pixel and the 4th byte is ignored. When the file is converted to a 12-bit per pixel header file, there is no wasted space.
Richard
Reply by ●March 24, 20102010-03-24
Thanks for your replies.
Its okay about bmp images. How I can try for comprised image data? Actually my application camera module outputs compressed or uncompressed JPG format only.
Any suggestions are welcome.
faz
Its okay about bmp images. How I can try for comprised image data? Actually my application camera module outputs compressed or uncompressed JPG format only.
Any suggestions are welcome.
faz
Reply by ●March 24, 20102010-03-24
--- In l..., "fazal.usicmku" wrote:
>
> Thanks for your replies.
>
> Its okay about bmp images. How I can try for comprised image data? Actually my application camera module outputs compressed or uncompressed JPG format only.
>
> Any suggestions are welcome.
>
> faz
>
Google for 'jpeg decompression algorithm c code' and you should find something.
Google for 'jpeg file format' and you might get:
http://www.jpeg.org/public/jfif.pdf
Richard
>
> Thanks for your replies.
>
> Its okay about bmp images. How I can try for comprised image data? Actually my application camera module outputs compressed or uncompressed JPG format only.
>
> Any suggestions are welcome.
>
> faz
>
Google for 'jpeg decompression algorithm c code' and you should find something.
Google for 'jpeg file format' and you might get:
http://www.jpeg.org/public/jfif.pdf
Richard
Reply by ●March 25, 20102010-03-25
Thanks for your reply.
Now i am moving next step,, :-)
My next step is display the video stream (20 frames per second) over LPC2478 and LCD.
Can you give me some points to get it work.
Sorry to post such thing here. But I am new in embedded systems... :-)
Faz
--- In l..., "rtstofer" wrote:
>
> --- In l..., "fazal.usicmku" wrote:
> >
> >
> >
> > Thanks for your replies.
> >
> > Its okay about bmp images. How I can try for comprised image data? Actually my application camera module outputs compressed or uncompressed JPG format only.
> >
> > Any suggestions are welcome.
> >
> > faz
> > Google for 'jpeg decompression algorithm c code' and you should find something.
>
> Google for 'jpeg file format' and you might get:
> http://www.jpeg.org/public/jfif.pdf
>
> Richard
>
Now i am moving next step,, :-)
My next step is display the video stream (20 frames per second) over LPC2478 and LCD.
Can you give me some points to get it work.
Sorry to post such thing here. But I am new in embedded systems... :-)
Faz
--- In l..., "rtstofer" wrote:
>
> --- In l..., "fazal.usicmku" wrote:
> >
> >
> >
> > Thanks for your replies.
> >
> > Its okay about bmp images. How I can try for comprised image data? Actually my application camera module outputs compressed or uncompressed JPG format only.
> >
> > Any suggestions are welcome.
> >
> > faz
> > Google for 'jpeg decompression algorithm c code' and you should find something.
>
> Google for 'jpeg file format' and you might get:
> http://www.jpeg.org/public/jfif.pdf
>
> Richard
>
Reply by ●March 25, 20102010-03-25
Hi,
I dont think you can reach that frame rate with lpc2478.
You may think of lcd driver controller with jpeg decoders(like http://www.solomon-systech.com).
Gurkan
To: l...
From: f...@yahoo.com
Date: Thu, 25 Mar 2010 06:20:18 +0000
Subject: [lpc2000] Re: LPC2478 + Innolux LCD
Thanks for your reply.
Now i am moving next step,, :-)
My next step is display the video stream (20 frames per second) over LPC2478 and LCD.
Can you give me some points to get it work.
Sorry to post such thing here. But I am new in embedded systems... :-)
Faz
--- In l..., "rtstofer" wrote:
>
>
>
> --- In l..., "fazal.usicmku" wrote:
> >
> >
> >
> > Thanks for your replies.
> >
> > Its okay about bmp images. How I can try for comprised image data? Actually my application camera module outputs compressed or uncompressed JPG format only.
> >
> > Any suggestions are welcome.
> >
> > faz
> >
>
> Google for 'jpeg decompression algorithm c code' and you should find something.
>
> Google for 'jpeg file format' and you might get:
> http://www.jpeg.org/public/jfif.pdf
>
> Richard
>
I dont think you can reach that frame rate with lpc2478.
You may think of lcd driver controller with jpeg decoders(like http://www.solomon-systech.com).
Gurkan
To: l...
From: f...@yahoo.com
Date: Thu, 25 Mar 2010 06:20:18 +0000
Subject: [lpc2000] Re: LPC2478 + Innolux LCD
Thanks for your reply.
Now i am moving next step,, :-)
My next step is display the video stream (20 frames per second) over LPC2478 and LCD.
Can you give me some points to get it work.
Sorry to post such thing here. But I am new in embedded systems... :-)
Faz
--- In l..., "rtstofer" wrote:
>
>
>
> --- In l..., "fazal.usicmku" wrote:
> >
> >
> >
> > Thanks for your replies.
> >
> > Its okay about bmp images. How I can try for comprised image data? Actually my application camera module outputs compressed or uncompressed JPG format only.
> >
> > Any suggestions are welcome.
> >
> > faz
> >
>
> Google for 'jpeg decompression algorithm c code' and you should find something.
>
> Google for 'jpeg file format' and you might get:
> http://www.jpeg.org/public/jfif.pdf
>
> Richard
>
Reply by ●March 25, 20102010-03-25
Per frame is 200 x 100 Res and 20 frames per second. Why this is not
possible?
what is the maximum frame rate for LPC2478 LCD controller?
--- In l..., Gurkan Karakus wrote:
>
> Hi,
>
> I dont think you can reach that frame rate with lpc2478.
> You may think of lcd driver controller with jpeg decoders(like http://www.solomon-systech.com).
>
> Gurkan
> To: l...
> From: fazal.usicmku@...
> Date: Thu, 25 Mar 2010 06:20:18 +0000
> Subject: [lpc2000] Re: LPC2478 + Innolux LCD
>
>
>
>
>
>
>
>
> Thanks for your reply.
>
> Now i am moving next step,, :-)
>
> My next step is display the video stream (20 frames per second) over LPC2478 and LCD.
>
> Can you give me some points to get it work.
>
> Sorry to post such thing here. But I am new in embedded systems... :-)
>
> Faz
>
> --- In l..., "rtstofer" wrote:
>
> > > > > --- In l..., "fazal.usicmku" wrote:
>
> > > > > > > > > Thanks for your replies.
>
> > > > > Its okay about bmp images. How I can try for comprised image data? Actually my application camera module outputs compressed or uncompressed JPG format only.
>
> > > > > Any suggestions are welcome.
>
> > > > > faz
>
> > > > > Google for 'jpeg decompression algorithm c code' and you should find something.
>
> > > Google for 'jpeg file format' and you might get:
>
> > http://www.jpeg.org/public/jfif.pdf
>
> > > Richard
>
>
what is the maximum frame rate for LPC2478 LCD controller?
--- In l..., Gurkan Karakus wrote:
>
> Hi,
>
> I dont think you can reach that frame rate with lpc2478.
> You may think of lcd driver controller with jpeg decoders(like http://www.solomon-systech.com).
>
> Gurkan
> To: l...
> From: fazal.usicmku@...
> Date: Thu, 25 Mar 2010 06:20:18 +0000
> Subject: [lpc2000] Re: LPC2478 + Innolux LCD
>
>
>
>
>
>
>
>
> Thanks for your reply.
>
> Now i am moving next step,, :-)
>
> My next step is display the video stream (20 frames per second) over LPC2478 and LCD.
>
> Can you give me some points to get it work.
>
> Sorry to post such thing here. But I am new in embedded systems... :-)
>
> Faz
>
> --- In l..., "rtstofer" wrote:
>
> > > > > --- In l..., "fazal.usicmku" wrote:
>
> > > > > > > > > Thanks for your replies.
>
> > > > > Its okay about bmp images. How I can try for comprised image data? Actually my application camera module outputs compressed or uncompressed JPG format only.
>
> > > > > Any suggestions are welcome.
>
> > > > > faz
>
> > > > > Google for 'jpeg decompression algorithm c code' and you should find something.
>
> > > Google for 'jpeg file format' and you might get:
>
> > http://www.jpeg.org/public/jfif.pdf
>
> > > Richard
>
>
Reply by ●March 25, 20102010-03-25
I dont know your lcd controllers refresh rate but since your camera output is
jpeg coded, you will have to decode jpeg camera outputs first. Decoding jpeg
takes a lot of cpu time...
Gurkan
To: l...
From: f...@yahoo.com
Date: Thu, 25 Mar 2010 07:34:42 +0000
Subject: [lpc2000] Re: LPC2478 + Innolux LCD
Per frame is 200 x 100 Res and 20 frames per second. Why this is not possible?
what is the maximum frame rate for LPC2478 LCD controller?
--- In l..., Gurkan Karakus wrote:
>
>
>
> Hi,
>
> I dont think you can reach that frame rate with lpc2478.
> You may think of lcd driver controller with jpeg decoders(like http://www.solomon-systech.com).
>
> Gurkan
>
>
>
>
> To: l...
> From: fazal.usicmku@...
> Date: Thu, 25 Mar 2010 06:20:18 +0000
> Subject: [lpc2000] Re: LPC2478 + Innolux LCD
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> Thanks for your reply.
>
>
>
> Now i am moving next step,, :-)
>
>
>
> My next step is display the video stream (20 frames per second) over LPC2478 and LCD.
>
>
>
> Can you give me some points to get it work.
>
>
>
> Sorry to post such thing here. But I am new in embedded systems... :-)
>
>
>
> Faz
>
>
>
> --- In l..., "rtstofer" wrote:
>
> >
>
> >
>
> >
>
> > --- In l..., "fazal.usicmku" wrote:
>
> > >
>
> > >
>
> > >
>
> > > Thanks for your replies.
>
> > >
>
> > > Its okay about bmp images. How I can try for comprised image data? Actually my application camera module outputs compressed or uncompressed JPG format only.
>
> > >
>
> > > Any suggestions are welcome.
>
> > >
>
> > > faz
>
> > >
>
> >
>
> > Google for 'jpeg decompression algorithm c code' and you should find something.
>
> >
>
> > Google for 'jpeg file format' and you might get:
>
> > http://www.jpeg.org/public/jfif.pdf
>
> >
>
> > Richard
>
> >
>
Gurkan
To: l...
From: f...@yahoo.com
Date: Thu, 25 Mar 2010 07:34:42 +0000
Subject: [lpc2000] Re: LPC2478 + Innolux LCD
Per frame is 200 x 100 Res and 20 frames per second. Why this is not possible?
what is the maximum frame rate for LPC2478 LCD controller?
--- In l..., Gurkan Karakus wrote:
>
>
>
> Hi,
>
> I dont think you can reach that frame rate with lpc2478.
> You may think of lcd driver controller with jpeg decoders(like http://www.solomon-systech.com).
>
> Gurkan
>
>
>
>
> To: l...
> From: fazal.usicmku@...
> Date: Thu, 25 Mar 2010 06:20:18 +0000
> Subject: [lpc2000] Re: LPC2478 + Innolux LCD
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> Thanks for your reply.
>
>
>
> Now i am moving next step,, :-)
>
>
>
> My next step is display the video stream (20 frames per second) over LPC2478 and LCD.
>
>
>
> Can you give me some points to get it work.
>
>
>
> Sorry to post such thing here. But I am new in embedded systems... :-)
>
>
>
> Faz
>
>
>
> --- In l..., "rtstofer" wrote:
>
> >
>
> >
>
> >
>
> > --- In l..., "fazal.usicmku" wrote:
>
> > >
>
> > >
>
> > >
>
> > > Thanks for your replies.
>
> > >
>
> > > Its okay about bmp images. How I can try for comprised image data? Actually my application camera module outputs compressed or uncompressed JPG format only.
>
> > >
>
> > > Any suggestions are welcome.
>
> > >
>
> > > faz
>
> > >
>
> >
>
> > Google for 'jpeg decompression algorithm c code' and you should find something.
>
> >
>
> > Google for 'jpeg file format' and you might get:
>
> > http://www.jpeg.org/public/jfif.pdf
>
> >
>
> > Richard
>
> >
>
Reply by ●March 26, 20102010-03-26
I have tried to find the LPC2478 possible frame rate through user manual and NXP
support. Both gives nothing.
Any of members already done video stream or image display system on LPC2478...
Any references or sample codes are welcome.
Faz
--- In l..., Gurkan Karakus wrote:
>
> I dont know your lcd controllers refresh rate but since your camera output is jpeg coded, you will have to decode jpeg camera outputs first. Decoding jpeg takes a lot of cpu time...
>
> Gurkan
> To: l...
> From: fazal.usicmku@...
> Date: Thu, 25 Mar 2010 07:34:42 +0000
> Subject: [lpc2000] Re: LPC2478 + Innolux LCD
>
>
>
>
>
>
> Per frame is 200 x 100 Res and 20 frames per second. Why this is not possible?
>
> what is the maximum frame rate for LPC2478 LCD controller?
>
> --- In l..., Gurkan Karakus wrote:
>
> > > > > Hi,
>
> > > I dont think you can reach that frame rate with lpc2478.
>
> > You may think of lcd driver controller with jpeg decoders(like http://www.solomon-systech.com).
>
> > > Gurkan
>
> > > > > > To: l...
>
> > From: fazal.usicmku@
>
> > Date: Thu, 25 Mar 2010 06:20:18 +0000
>
> > Subject: [lpc2000] Re: LPC2478 + Innolux LCD
>
> > > > > > > > > > > > > > > > > > > >
>
> > > > >
>
> > > >
>
> >
>
> >
>
> >
>
> > > > > Thanks for your reply.
>
> > > > > Now i am moving next step,, :-)
>
> > > > > My next step is display the video stream (20 frames per second) over LPC2478 and LCD.
>
> > > > > Can you give me some points to get it work.
>
> > > > > Sorry to post such thing here. But I am new in embedded systems... :-)
>
> > > > > Faz
>
> > > > > --- In l..., "rtstofer" wrote:
>
> > > > > > > > > > > > > --- In l..., "fazal.usicmku" wrote:
>
> > > > > > > > > > > > > > > > > Thanks for your replies.
>
> > > > > > > > > Its okay about bmp images. How I can try for comprised image data? Actually my application camera module outputs compressed or uncompressed JPG format only.
>
> > > > > > > > > Any suggestions are welcome.
>
> > > > > > > > > faz
>
> > > > > > > > > > > Google for 'jpeg decompression algorithm c code' and you should find something.
>
> > > > > > > Google for 'jpeg file format' and you might get:
>
> > > > http://www.jpeg.org/public/jfif.pdf
>
> > > > > > > Richard
>
> > > >
Any of members already done video stream or image display system on LPC2478...
Any references or sample codes are welcome.
Faz
--- In l..., Gurkan Karakus wrote:
>
> I dont know your lcd controllers refresh rate but since your camera output is jpeg coded, you will have to decode jpeg camera outputs first. Decoding jpeg takes a lot of cpu time...
>
> Gurkan
> To: l...
> From: fazal.usicmku@...
> Date: Thu, 25 Mar 2010 07:34:42 +0000
> Subject: [lpc2000] Re: LPC2478 + Innolux LCD
>
>
>
>
>
>
> Per frame is 200 x 100 Res and 20 frames per second. Why this is not possible?
>
> what is the maximum frame rate for LPC2478 LCD controller?
>
> --- In l..., Gurkan Karakus wrote:
>
> > > > > Hi,
>
> > > I dont think you can reach that frame rate with lpc2478.
>
> > You may think of lcd driver controller with jpeg decoders(like http://www.solomon-systech.com).
>
> > > Gurkan
>
> > > > > > To: l...
>
> > From: fazal.usicmku@
>
> > Date: Thu, 25 Mar 2010 06:20:18 +0000
>
> > Subject: [lpc2000] Re: LPC2478 + Innolux LCD
>
> > > > > > > > > > > > > > > > > > > >
>
> > > > >
>
> > > >
>
> >
>
> >
>
> >
>
> > > > > Thanks for your reply.
>
> > > > > Now i am moving next step,, :-)
>
> > > > > My next step is display the video stream (20 frames per second) over LPC2478 and LCD.
>
> > > > > Can you give me some points to get it work.
>
> > > > > Sorry to post such thing here. But I am new in embedded systems... :-)
>
> > > > > Faz
>
> > > > > --- In l..., "rtstofer" wrote:
>
> > > > > > > > > > > > > --- In l..., "fazal.usicmku" wrote:
>
> > > > > > > > > > > > > > > > > Thanks for your replies.
>
> > > > > > > > > Its okay about bmp images. How I can try for comprised image data? Actually my application camera module outputs compressed or uncompressed JPG format only.
>
> > > > > > > > > Any suggestions are welcome.
>
> > > > > > > > > faz
>
> > > > > > > > > > > Google for 'jpeg decompression algorithm c code' and you should find something.
>
> > > > > > > Google for 'jpeg file format' and you might get:
>
> > > > http://www.jpeg.org/public/jfif.pdf
>
> > > > > > > Richard
>
> > > >