APP_Framework/Framework/:add Kconfig file and SConscript file about TJpgDec(Tiny JPEG Decompressor)
This commit is contained in:
parent
dfdc29b1d8
commit
a9ac7efed2
|
@ -7,4 +7,5 @@ if SUPPORT_KNOWING_FRAMEWORK
|
||||||
source "$APP_DIR/Framework/knowing/kpu-postprocessing/Kconfig"
|
source "$APP_DIR/Framework/knowing/kpu-postprocessing/Kconfig"
|
||||||
source "$APP_DIR/Framework/knowing/filter/Kconfig"
|
source "$APP_DIR/Framework/knowing/filter/Kconfig"
|
||||||
source "$APP_DIR/Framework/knowing/ota/Kconfig"
|
source "$APP_DIR/Framework/knowing/ota/Kconfig"
|
||||||
|
source "$APP_DIR/Framework/knowing/image_processing/Kconfig"
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
menuconfig USING_IMAGE_PROCESSING
|
||||||
|
bool "image processing "
|
||||||
|
default n
|
||||||
|
if USING_IMAGE_PROCESSING
|
||||||
|
source "$APP_DIR/Framework/knowing/image_processing/TJpgDec/Kconfig"
|
||||||
|
endif
|
|
@ -0,0 +1,14 @@
|
||||||
|
import os
|
||||||
|
Import('RTT_ROOT')
|
||||||
|
from building import *
|
||||||
|
|
||||||
|
cwd = GetCurrentDir()
|
||||||
|
objs = []
|
||||||
|
list = os.listdir(cwd)
|
||||||
|
|
||||||
|
for d in list:
|
||||||
|
path = os.path.join(cwd, d)
|
||||||
|
if os.path.isfile(os.path.join(path, 'SConscript')):
|
||||||
|
objs = objs + SConscript(os.path.join(path, 'SConscript'))
|
||||||
|
|
||||||
|
Return('objs')
|
|
@ -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
|
|
@ -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')
|
Loading…
Reference in New Issue