forked from xuos/xiuos
APP_Framework/Framework/:add Kconfig file and SConscript file about TJpgDec(Tiny JPEG Decompressor)
This commit is contained in:
@@ -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
|
||||||
|
|||||||
6
APP_Framework/Framework/knowing/image_processing/Kconfig
Normal file
6
APP_Framework/Framework/knowing/image_processing/Kconfig
Normal file
@@ -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
|
||||||
14
APP_Framework/Framework/knowing/image_processing/SConscript
Normal file
14
APP_Framework/Framework/knowing/image_processing/SConscript
Normal file
@@ -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')
|
||||||
Reference in New Issue
Block a user