-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Feature & BugFix]: isp-tuningd (#47)
* 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
1 parent
934ea1f
commit 5cd3a64
Showing
10 changed files
with
209 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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." |
Oops, something went wrong.