Skip to content

Commit

Permalink
[Feature & BugFix]: isp-tuningd (#47)
Browse files Browse the repository at this point in the history
* update nncase to v1.6 and sync dev to main (#5)

* add github actions (#2)

* modify lic (#3)

* nncase update to 1.6 (#4)

Co-authored-by: HZ1 <huangziyi010@live.cn>
Co-authored-by: wangjianxin-canaan <102512117+wangjianxin-canaan@users.noreply.github.com>

* fix: #46, add: isp-tuningd with jpeg hardware encoder

Signed-off-by: 黄子懿 <huangziyi@canaan-creative.com>

* add package isp-tuningd

Signed-off-by: 黄子懿 <huangziyi@canaan-creative.com>

* add isp-tuningd to default defconfig

Signed-off-by: 黄子懿 <huangziyi@canaan-creative.com>

* revert libvenc.so

Signed-off-by: 黄子懿 <huangziyi@canaan-creative.com>

* fix #51, free buffer for stdin callback when pause

Signed-off-by: 黄子懿 <huangziyi@canaan-creative.com>

* Update isp-tuningd.c

Co-authored-by: Wentao Wu <wuwentao2000@126.com>
Co-authored-by: wangjianxin-canaan <102512117+wangjianxin-canaan@users.noreply.github.com>
Co-authored-by: wycwyhwyq <5f20.6d9b@gmail.com>
  • Loading branch information
4 people authored May 19, 2022
1 parent 934ea1f commit 5cd3a64
Show file tree
Hide file tree
Showing 10 changed files with 209 additions and 57 deletions.
1 change: 1 addition & 0 deletions Config.in
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ source "$BR2_EXTERNAL_K510_PATH/package/alsa_demo/Config.in"
source "$BR2_EXTERNAL_K510_PATH/package/ffmpeg_canaan/Config.in"
source "$BR2_EXTERNAL_K510_PATH/package/audio3a_lib/Config.in"
source "$BR2_EXTERNAL_K510_PATH/package/mediactl_lib/Config.in"
source "$BR2_EXTERNAL_K510_PATH/package/isp-tuningd/Config.in"
source "$BR2_EXTERNAL_K510_PATH/package/mailbox_demo/Config.in"
source "$BR2_EXTERNAL_K510_PATH/package/dsp_scheduler/Config.in"
source "$BR2_EXTERNAL_K510_PATH/package/live555_canaan/Config.in"
Expand Down
1 change: 1 addition & 0 deletions configs/k510_crb_lp3_v0_1_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ BR2_PACKAGE_LIBOPENSSL=y
BR2_PACKAGE_FFMPEG_CANAAN=y
BR2_PACKAGE_AUDIO3A_LIB=y
BR2_PACKAGE_MEDIACTL_LIB=y
BR2_PACKAGE_ISP_TUNINGD=y
BR2_PACKAGE_MAILBOX_DEMO=y
BR2_PACKAGE_DSP_SCHEDULER=y
BR2_PACKAGE_LIVE555_CANAAN=y
Expand Down
1 change: 1 addition & 0 deletions configs/k510_crb_lp3_v1_2_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ BR2_PACKAGE_ALSA_DEMO=y
BR2_PACKAGE_FFMPEG_CANAAN=y
BR2_PACKAGE_AUDIO3A_LIB=y
BR2_PACKAGE_MEDIACTL_LIB=y
BR2_PACKAGE_ISP_TUNINGD=y
BR2_PACKAGE_MAILBOX_DEMO=y
BR2_PACKAGE_DSP_SCHEDULER=y
BR2_PACKAGE_LIVE555_CANAAN=y
Expand Down
8 changes: 8 additions & 0 deletions package/isp-tuningd/Config.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

config BR2_PACKAGE_ISP_TUNINGD
bool "isp-tuningd"
depends on BR2_riscv
select BR2_PACKAGE_VENC_LIB
select BR2_PACKAGE_LIBUV
help
k510 ISP tuning daemon
22 changes: 22 additions & 0 deletions package/isp-tuningd/isp-tuningd.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
################################################################################
#
# isp-tuningd
#
################################################################################
ISP_TUNINGD_LOCAL_PATH:= $(realpath $(dir $(lastword $(MAKEFILE_LIST))))
ISP_TUNINGD_DIR_NAME := isp-tuningd
ISP_TUNINGD_APP_NAME := isp-tuningd

ISP_TUNINGD_SITE = $(ISP_TUNINGD_LOCAL_PATH)/src
ISP_TUNINGD_SITE_METHOD = local


define ISP_TUNINGD_BUILD_CMDS
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
endef

define ISP_TUNINGD_INSTALL_TARGET_CMDS
$(INSTALL) -D -m 0755 $(@D)/$(ISP_TUNINGD_DIR_NAME) $(TARGET_DIR)/app/mediactl_lib/$(ISP_TUNINGD_APP_NAME)
endef

$(eval $(generic-package))
12 changes: 12 additions & 0 deletions package/isp-tuningd/src/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
CROSS_COMPILE = riscv64-linux-
CC=$(CROSS_COMPILE)gcc

TARGET = isp-tuningd
OBJS = isp-tuningd.c

all:
${CC} ${OBJS} -Wall -lpthread -luv -lvenc -g -o ${TARGET}
@echo "Compile done."
clean:
@rm -f *.o ${TARGET}
@echo "Clean done."
Loading

0 comments on commit 5cd3a64

Please sign in to comment.