Skip to content

Commit

Permalink
update the samples of vdsp
Browse files Browse the repository at this point in the history
  • Loading branch information
BUG1989 committed Mar 26, 2024
1 parent 066bd4a commit e5e1eb6
Show file tree
Hide file tree
Showing 39 changed files with 2,797 additions and 1 deletion.
2 changes: 1 addition & 1 deletion msp/sample/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
SUBDIRS = cmm pool rtc efuse ivps vo vin isp_3a vin_vo vin_ivps_venc_rtsp
SUBDIRS = cmm pool rtc efuse ivps vo dsp vin isp_3a vin_vo vin_ivps_venc_rtsp
SUBDIRS += vdec vdec_ivps_vo vin_ivps_vo_venc vdec_ivps_venc
SUBDIRS += cipher ive dmaxor dmadim sysmap
SUBDIRS += pcie ives adc venc audio uvc npu efuse_hash avs
Expand Down
52 changes: 52 additions & 0 deletions msp/sample/dsp/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
CUR_PATH := $(shell pwd)
HOME_PATH := $(abspath $(CUR_PATH)/../../..)

include $(HOME_PATH)/build/color.mk
include $(HOME_PATH)/build/config.mak

PRJ_OUT_HOME := $(HOME_PATH)/build/out/$(PROJECT)
OBJ_OUT_PATH := $(PRJ_OUT_HOME)/objs
MSP_OUT_PATH := $(HOME_PATH)/msp/out
OUT_PATH := $(MSP_OUT_PATH)
SRC_PATH := $(CUR_PATH)
SRC_RELATIVE_PATH := $(subst $(HOME_PATH)/,,$(SRC_PATH))
TARGET_OUT_PATH := $(OBJ_OUT_PATH)/$(SRC_RELATIVE_PATH)
ROOTFS_TARGET_PATH ?= $(MSP_OUT_PATH)

BASE_PATH := $(HOME_PATH)/msp/component
LIB_PATH := $(MSP_OUT_PATH)/lib
COMMON_PATH := $(BASE_PATH)/common

include $(HOME_PATH)/build/config.mak

# output
MOD_NAME := sample_dsp
OUTPUT := $(TARGET_OUT_PATH)/obj

# source
SRCS := $(wildcard $(SRC_PATH)/*.c)
OBJS := $(addprefix $(OUTPUT)/,$(notdir $(patsubst %.c,%.o,$(SRCS))))
CINCLUDE := -I$(SRC_PATH) -I$(SRC_PATH)/include -I$(HOME_PATH)/msp/out/include -I$(HOME_PATH)/msp/component/include

# exec
TARGET := $(TARGET_OUT_PATH)/$(MOD_NAME)

# build flags
CFLAGS := -Wall -Wl,-rpath-link=$(LIB_PATH)
ifeq ($(debug),yes)
CFLAGS += -O0 -ggdb3
else
CFLAGS += -O2
endif

# dependency
CLIB += -L$(LIB_PATH) -lax_sys -lax_dsp -lpthread -lax_dsp_cv

INSTALL_BIN := $(TARGET)
INSTALL_DATA := $(CUR_PATH)/data/dsp

# link
LINK = $(CC)

include $(HOME_PATH)/build/rules.mak

8 changes: 8 additions & 0 deletions msp/sample/dsp/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
1.本测试用来验证VDSP模块的功能;

2.运行方法:
将DSP需要的BIN(itcm.bin和sram.bin)放到和sample_dsp同一个目录下,然后执行下面的命令:

#sample_dsp itcm.bin sram.bin

3.正常运行log输出显示PASS,说明DSP已经正常运行起来。
1 change: 1 addition & 0 deletions msp/sample/dsp/data/dsp/csc/1920x2160_a.yuv

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions msp/sample/dsp/data/dsp/csc/1920x2160_b.yuv

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions msp/sample/dsp/data/dsp/csc/3840x2160.nv12.yuv

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions msp/sample/dsp/data/dsp/csc/3840x2160_VU1.nv12

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions msp/sample/dsp/data/dsp/csc/3840x2160_YU0.nv12

Large diffs are not rendered by default.

Binary file added msp/sample/dsp/data/dsp/ct_dsp
Binary file not shown.
Binary file added msp/sample/dsp/data/dsp/itcm.bin
Binary file not shown.
1 change: 1 addition & 0 deletions msp/sample/dsp/data/dsp/noisyImage_YUV_512x512_8b.yuv

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions msp/sample/dsp/data/dsp/resize/1024x576.nv12.yuv

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions msp/sample/dsp/data/dsp/resize/1024x768.nv12.yuv

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions msp/sample/dsp/data/dsp/resize/1280x1024.nv12.yuv

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions msp/sample/dsp/data/dsp/resize/1280x720.nv12.yuv

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions msp/sample/dsp/data/dsp/resize/1600x1200.nv12.yuv

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions msp/sample/dsp/data/dsp/resize/1600x900.nv12.yuv

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions msp/sample/dsp/data/dsp/resize/1920x1080.nv12.yuv

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions msp/sample/dsp/data/dsp/resize/1920x1088.nv12.yuv

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions msp/sample/dsp/data/dsp/resize/1920x1200.nv12.yuv

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions msp/sample/dsp/data/dsp/resize/2560x1440.nv12.yuv

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions msp/sample/dsp/data/dsp/resize/2560x1600.nv12.yuv

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions msp/sample/dsp/data/dsp/resize/320x240.nv12.yuv

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions msp/sample/dsp/data/dsp/resize/320x640.nv12.yuv

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions msp/sample/dsp/data/dsp/resize/3840x2160.nv12.yuv

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions msp/sample/dsp/data/dsp/resize/4096x2160.nv12.yuv

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions msp/sample/dsp/data/dsp/resize/480x640.nv12.yuv

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions msp/sample/dsp/data/dsp/resize/540x960.nv12.yuv

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions msp/sample/dsp/data/dsp/resize/640x320.nv12.yuv

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions msp/sample/dsp/data/dsp/resize/640x480.nv12.yuv

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions msp/sample/dsp/data/dsp/resize/800x480.nv12.yuv

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions msp/sample/dsp/data/dsp/resize/800x600.nv12.yuv

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions msp/sample/dsp/data/dsp/resize/960x540.nv12.yuv

Large diffs are not rendered by default.

Binary file added msp/sample/dsp/data/dsp/sram.bin
Binary file not shown.
Loading

0 comments on commit e5e1eb6

Please sign in to comment.