APP_Framework/Framework/:add Kconfig file and SConscript file about TJpgDec(Tiny JPEG Decompressor)

This commit is contained in:
chunyexixiaoyu
2021-11-16 15:08:22 +08:00
parent dfdc29b1d8
commit a9ac7efed2
5 changed files with 68 additions and 10 deletions

View File

@@ -0,0 +1,27 @@
menuconfig IMAGE_PROCESSING_USING_TJPGD
bool "TJpgDec: Tiny JPEG Decompressor."
default n
if IMAGE_PROCESSING_USING_TJPGD
config TJPGD_INPUT_BUFFER_SIZE
int "Size of stream input buffer"
default 512
choice
prompt "Output format"
default TJPGD_USING_FORMAT_RGB888
help
Select the RGB output format
config TJPGD_USING_FORMAT_RGB888
bool "RGB888"
config TJPGD_USING_FORMAT_RGB565
bool "RGB565"
endchoice
config TJPGD_USING_SCALE
bool "Use output descaling"
default y
config TJPGD_USING_TBLCLIP
bool "Use table for saturation"
default y
endif

View File

@@ -0,0 +1,10 @@
from building import *
import os
cwd = GetCurrentDir()
src = Glob('*.c')
group = DefineGroup('Tiny JPEG Decompressor', src, depend = ['IMAGE_PROCESSING_USING_TJPGD'], CPPPATH = [cwd])
Return('group')