diff --git a/linux/samples/gstreamer/mv camera/preview_3588.sh b/linux/samples/gstreamer/mv camera/preview_3588.sh new file mode 100644 index 0000000..f451ccc --- /dev/null +++ b/linux/samples/gstreamer/mv camera/preview_3588.sh @@ -0,0 +1,24 @@ +#!/bin/sh + +export DISPLAY=:0.0 +#export GST_DEBUG=*:5 +#export GST_DEBUG_FILE=/tmp/2.txt + +export XDG_RUNTIME_DIR=/run/user/1000 + +export WIDTH=1080 +export HEIGHT=1080 +export FPS=30 + +echo "Just use 1080x1080@30fps as a sample. Please modify these value." +echo "Start MIPI CSI Camera Preview!" + +v4l2-ctl -d /dev/v4l-subdev2 --set-ctrl roi_x=0 + +v4l2-ctl -d /dev/v4l-subdev2 --set-ctrl roi_y=0 + +media-ctl -d /dev/media0 --set-v4l2 '"m00_b_mvcam 7-003b":0[fmt:UYVY8_2X8/'"$WIDTH"'x'"$HEIGHT"'@1/'"$FPS"']' + +gst-launch-1.0 v4l2src device=/dev/video0 io-mode=4 ! queue ! video/x-raw,format=NV12,width=$WIDTH,height=$HEIGHT,framerate=$FPS/1 ! glimagesink + + diff --git a/linux/samples/gstreamer/for_reference/h264dec.sh b/linux/samples/gstreamer/veye camera/for_reference/h264dec.sh similarity index 100% rename from linux/samples/gstreamer/for_reference/h264dec.sh rename to linux/samples/gstreamer/veye camera/for_reference/h264dec.sh diff --git a/linux/samples/gstreamer/for_reference/h264enc.sh b/linux/samples/gstreamer/veye camera/for_reference/h264enc.sh similarity index 100% rename from linux/samples/gstreamer/for_reference/h264enc.sh rename to linux/samples/gstreamer/veye camera/for_reference/h264enc.sh diff --git a/linux/samples/gstreamer/h264_encode.sh b/linux/samples/gstreamer/veye camera/h264_encode.sh similarity index 100% rename from linux/samples/gstreamer/h264_encode.sh rename to linux/samples/gstreamer/veye camera/h264_encode.sh diff --git a/linux/samples/gstreamer/preview.sh b/linux/samples/gstreamer/veye camera/preview.sh similarity index 100% rename from linux/samples/gstreamer/preview.sh rename to linux/samples/gstreamer/veye camera/preview.sh diff --git a/linux/samples/gstreamer/preview_356x.sh b/linux/samples/gstreamer/veye camera/preview_356x.sh similarity index 100% rename from linux/samples/gstreamer/preview_356x.sh rename to linux/samples/gstreamer/veye camera/preview_356x.sh diff --git a/linux/samples/gstreamer/snap_jpeg.sh b/linux/samples/gstreamer/veye camera/snap_jpeg.sh similarity index 100% rename from linux/samples/gstreamer/snap_jpeg.sh rename to linux/samples/gstreamer/veye camera/snap_jpeg.sh diff --git a/linux/samples/opencv/mv camera/v4l2dev_2_opencv_show_grey.py b/linux/samples/opencv/mv camera/v4l2dev_2_opencv_show_grey.py index 2769a3c..55b8e41 100644 --- a/linux/samples/opencv/mv camera/v4l2dev_2_opencv_show_grey.py +++ b/linux/samples/opencv/mv camera/v4l2dev_2_opencv_show_grey.py @@ -18,7 +18,7 @@ def main(): if not cap.isOpened(): print("Failed to open video device") return - + print("This demo not finished yet!") # Set the image size cap.set(cv2.CAP_PROP_FRAME_WIDTH, args.width) cap.set(cv2.CAP_PROP_FRAME_HEIGHT, args.height) diff --git a/linux/mv_tools_rockchip/i2c_tools/i2c_4read b/mv_tools_rockchip/i2c_tools/i2c_4read similarity index 100% rename from linux/mv_tools_rockchip/i2c_tools/i2c_4read rename to mv_tools_rockchip/i2c_tools/i2c_4read diff --git a/linux/mv_tools_rockchip/i2c_tools/i2c_4write b/mv_tools_rockchip/i2c_tools/i2c_4write similarity index 100% rename from linux/mv_tools_rockchip/i2c_tools/i2c_4write rename to mv_tools_rockchip/i2c_tools/i2c_4write diff --git a/linux/mv_tools_rockchip/i2c_tools/lut_linear.txt b/mv_tools_rockchip/i2c_tools/lut_linear.txt similarity index 100% rename from linux/mv_tools_rockchip/i2c_tools/lut_linear.txt rename to mv_tools_rockchip/i2c_tools/lut_linear.txt diff --git a/linux/mv_tools_rockchip/i2c_tools/lut_rw b/mv_tools_rockchip/i2c_tools/lut_rw similarity index 100% rename from linux/mv_tools_rockchip/i2c_tools/lut_rw rename to mv_tools_rockchip/i2c_tools/lut_rw diff --git a/linux/mv_tools_rockchip/i2c_tools/lut_samples/lut_gamma0.8_10bitdepth.txt b/mv_tools_rockchip/i2c_tools/lut_samples/lut_gamma0.8_10bitdepth.txt similarity index 100% rename from linux/mv_tools_rockchip/i2c_tools/lut_samples/lut_gamma0.8_10bitdepth.txt rename to mv_tools_rockchip/i2c_tools/lut_samples/lut_gamma0.8_10bitdepth.txt diff --git a/linux/mv_tools_rockchip/i2c_tools/lut_samples/lut_gamma0.8_12bitdepth.txt b/mv_tools_rockchip/i2c_tools/lut_samples/lut_gamma0.8_12bitdepth.txt similarity index 100% rename from linux/mv_tools_rockchip/i2c_tools/lut_samples/lut_gamma0.8_12bitdepth.txt rename to mv_tools_rockchip/i2c_tools/lut_samples/lut_gamma0.8_12bitdepth.txt diff --git a/linux/mv_tools_rockchip/i2c_tools/lut_samples/lut_gamma1.2_10bitdepth.txt b/mv_tools_rockchip/i2c_tools/lut_samples/lut_gamma1.2_10bitdepth.txt similarity index 100% rename from linux/mv_tools_rockchip/i2c_tools/lut_samples/lut_gamma1.2_10bitdepth.txt rename to mv_tools_rockchip/i2c_tools/lut_samples/lut_gamma1.2_10bitdepth.txt diff --git a/linux/mv_tools_rockchip/i2c_tools/lut_samples/lut_gamma1.2_12bitdepth.txt b/mv_tools_rockchip/i2c_tools/lut_samples/lut_gamma1.2_12bitdepth.txt similarity index 100% rename from linux/mv_tools_rockchip/i2c_tools/lut_samples/lut_gamma1.2_12bitdepth.txt rename to mv_tools_rockchip/i2c_tools/lut_samples/lut_gamma1.2_12bitdepth.txt diff --git a/linux/mv_tools_rockchip/i2c_tools/lut_samples/lut_linear.txt b/mv_tools_rockchip/i2c_tools/lut_samples/lut_linear.txt similarity index 100% rename from linux/mv_tools_rockchip/i2c_tools/lut_samples/lut_linear.txt rename to mv_tools_rockchip/i2c_tools/lut_samples/lut_linear.txt diff --git a/linux/mv_tools_rockchip/i2c_tools/mv_mipi_i2c.sh b/mv_tools_rockchip/i2c_tools/mv_mipi_i2c.sh similarity index 100% rename from linux/mv_tools_rockchip/i2c_tools/mv_mipi_i2c.sh rename to mv_tools_rockchip/i2c_tools/mv_mipi_i2c.sh diff --git a/linux/mv_tools_rockchip/i2c_tools/sources/i2c_4comm.h b/mv_tools_rockchip/i2c_tools/sources/i2c_4comm.h similarity index 100% rename from linux/mv_tools_rockchip/i2c_tools/sources/i2c_4comm.h rename to mv_tools_rockchip/i2c_tools/sources/i2c_4comm.h diff --git a/linux/mv_tools_rockchip/i2c_tools/sources/i2c_4read.c b/mv_tools_rockchip/i2c_tools/sources/i2c_4read.c similarity index 100% rename from linux/mv_tools_rockchip/i2c_tools/sources/i2c_4read.c rename to mv_tools_rockchip/i2c_tools/sources/i2c_4read.c diff --git a/linux/mv_tools_rockchip/i2c_tools/sources/i2c_4write.c b/mv_tools_rockchip/i2c_tools/sources/i2c_4write.c similarity index 100% rename from linux/mv_tools_rockchip/i2c_tools/sources/i2c_4write.c rename to mv_tools_rockchip/i2c_tools/sources/i2c_4write.c diff --git a/linux/mv_tools_rockchip/i2c_tools/sources/lut_rw.c b/mv_tools_rockchip/i2c_tools/sources/lut_rw.c similarity index 100% rename from linux/mv_tools_rockchip/i2c_tools/sources/lut_rw.c rename to mv_tools_rockchip/i2c_tools/sources/lut_rw.c diff --git a/linux/mv_tools_rockchip/i2c_tools/sources/make.sh b/mv_tools_rockchip/i2c_tools/sources/make.sh similarity index 100% rename from linux/mv_tools_rockchip/i2c_tools/sources/make.sh rename to mv_tools_rockchip/i2c_tools/sources/make.sh diff --git a/linux/mv_tools_rockchip/i2c_tools/sources/strfunc.c b/mv_tools_rockchip/i2c_tools/sources/strfunc.c similarity index 100% rename from linux/mv_tools_rockchip/i2c_tools/sources/strfunc.c rename to mv_tools_rockchip/i2c_tools/sources/strfunc.c diff --git a/linux/mv_tools_rockchip/veye_upgrade/veye_i2c_upgrade b/mv_tools_rockchip/veye_upgrade/veye_i2c_upgrade similarity index 100% rename from linux/mv_tools_rockchip/veye_upgrade/veye_i2c_upgrade rename to mv_tools_rockchip/veye_upgrade/veye_i2c_upgrade