Here are some clips:
(transition effects)
r-Bla9FAJlU
and
(streaming jpegs from a flash)
2Vzn-cbbW48
So far there are transition effects and jpeg decoding. It's running the lcd at 60Hz with an SDRAM clocked at 62.5 MHz. The jpeg decoder runs in about 8KB (5-10KB depending on your options) and will decoded at 5.5fps for this screen.
LCD, jpeg decoding and other things
-
Verified
- Experienced Member
- Posts: 117
- Joined: Fri Dec 11, 2009 10:22 am
-
Verified
- Experienced Member
- Posts: 117
- Joined: Fri Dec 11, 2009 10:22 am
Technical Details:
LCD screen 480x272 at 62Hz refresh rate. CMOS interface, RGB565.
XCore C5 128 pin running at 500MHz.
Jpeg image outputted from gimp at quality 70 decoding at 5.5fps, until I optimise it.
The LCD image comes from a double buffer on an 2MB SDRAM running at 62.5MHz. At 2MB we can fit 8 full screen images, so there is plenty of room to play with.
Images loaded from flash with the device boots.
The SDRAM and LCD are controlled through a manager thread which also manages memory allocation. The application thread is free to compute transitions/menus/effects/etc at its leisure. There is also 4 threads free to do what you want with.
Note: the alpha blending is particularly nice.
LCD screen 480x272 at 62Hz refresh rate. CMOS interface, RGB565.
XCore C5 128 pin running at 500MHz.
Jpeg image outputted from gimp at quality 70 decoding at 5.5fps, until I optimise it.
The LCD image comes from a double buffer on an 2MB SDRAM running at 62.5MHz. At 2MB we can fit 8 full screen images, so there is plenty of room to play with.
Images loaded from flash with the device boots.
The SDRAM and LCD are controlled through a manager thread which also manages memory allocation. The application thread is free to compute transitions/menus/effects/etc at its leisure. There is also 4 threads free to do what you want with.
Note: the alpha blending is particularly nice.
-
- Respected Member
- Posts: 363
- Joined: Thu Dec 10, 2009 10:17 pm
That does look like some nice coding there. Decoding seams to be quite fast too, did you use a jpeg decoder C library. I saw Elm Chan do a nice low resource use one.
-
Verified
- Experienced Member
- Posts: 117
- Joined: Fri Dec 11, 2009 10:22 am
I wrote the jpeg decoder from scratch but used a stock idct from MPEG ref design. When I get time I'll rewrite the idct for xcore and drop the clipping tables and make use of the macc instruction. This should improve the speed and size a fair bit.
-
- Experienced Member
- Posts: 75
- Joined: Thu Feb 02, 2012 3:32 pm
so... does this board of yours have some schematics we can use? :)andrew wrote:The LCD image comes from a double buffer on an 2MB SDRAM running at 62.5MHz. At 2MB we can fit 8 full screen images, so there is plenty of room to play with.
-
Verified
- Experienced Member
- Posts: 117
- Joined: Fri Dec 11, 2009 10:22 am
A design guide is on its way. As we bring things up, I'll update this thread.