LCD rgb display jpeg

[中文]

1 Overview

demo of rgb lcd display camera encode jpeg data.

2 Code Path

The path of demos: \components\demos\media\lcd\lcd_rgb\lcd_rgb_demo.c,

3 Client command

The commands support by rgb lcd

lcd base cmd

Description

lcd_8080=dma2d_fill,0x60000000,0xf800

fill addr 0x60000000 red

lcd_rgb=clk

lcd display

lcd display camera cmd

Description

lcd_rgb_jpeg=480p,25

camera 480p/720p, fps

lcd_close=jpeg

close lcd

The macro configuration that the demo runs depends on:

NAME

Description

File

value

CONFIG_LCD

lcd function enable

middleware\soc\bk7236\bk7236.defconfig

y

CONFIG_LCD_TEST

DEMO enable

middleware\soc\bk7236\bk7236.defconfig

y

The steps performed by the lcd_rgb_jpeg demo are as follows:

1.config rgb lcd
  • rgb clk

  • lcd init if lcd need

  • display module x y pixel

  • if image pixel is biger then lcd size, config lcd x y pixel and partical display params

2.config jpeg and camera

3.config jpeg decode module

4.jpeg encode frame isr

5.jpeg decode frame isr

6.change lcd base addr if you want