Examples of using DP_CAM_TESET

this program tested below.

  • convergence board.
  • KERNEL 4.4.83, Yocto(sumo)

EXAMPLE

// TW9900

# dp_cam_test -m 1 -w 704 -h 480 -f 0 -F 1 -c 1000000 -t 2

// TW2825

# dp_cam_test -m 1 -w 960 -h 480 -f 0 -F 1 -c 1000000 -t 2

// MAX9286

// Crop -x, -y, and -s options.

// Because 3d avm has 4 cameras, each camera executes as follows.

# dp_cam_test -m 0 -w 5120 -h 719 -f 0 -F 1 -t 1 -p 0 -o 0 -d 1 -c 100000 -x 0 -y 0 -s 1280×719 -M 1 -r 1920×720

# dp_cam_test -m 0 -w 5120 -h 719 -f 0 -F 1 -t 1 -p 0 -o 0 -d 1 -c 100000 -x 1280 -y 0 -s 1280×719 -M 1 -r 1920×720

# dp_cam_test -m 0 -w 5120 -h 719 -f 0 -F 1 -t 1 -p 0 -o 0 -d 1 -c 100000 -x 2560 -y 0 -s 1280×719 -M 1 -r 1920×720

# dp_cam_test -m 0 -w 5120 -h 719 -f 0 -F 1 -t 1 -p 0 -o 0 -d 1 -c 100000 -x 3840 -y 0 -s 1280×719 -M 1 -r 1920×720

 

About Option.

-m: camera module

  • For SVM camera ‘0’
  • cat /sys/devices/platform/camerasensor0/info

-w: width

  • width resolution of camera sensor
  • 5120

-h: height

  • height resolution of camera sensor
  • 720, 719, 718

-f: v4l2 Pixel format

  • V4L2_PIX_FMT_YUYV
  • V4L2_PIX_FMT_NV16
  • V4L2_PIX_FMT_NV61
  • V4L2_PIX_FMT_YUV420 –> SVM camera
  • V4L2_PIX_FMT_NV21
  • V4L2_PIX_FMT_NV12
  • include/uapi/linux/videodev2.h

-F: Media bus format

  • 0: MEDIA_BUS_FMT_YUYV8_2X8
  • 1: MEDIA_BUS_FMT_UYVY8_2X8 –> SVM camera
  • 2: MEDIA_BUS_FMT_VYUY8_2X8
  • 3: MEDIA_BUS_FMT_YVYU8_2X8
  • include/uapi/linux/media-bus-format.h

-c: count execution count

-W: crop width

-H: crop height

-t: v4l2 field type

  • 0: V4L2_FIELD_ANY
  • 1: V4L2_FIELD_NONE –> SVM camera
  • 2: V4L2_FIELD_INTERLACED
  • 3: V4L2_FIELD_ANY

-p: port

  • display port

-o: overlay draw format

  • ‘0’ –> SVM camera

-d: full screen display

  • -w, -h size display

-x: crop x

  • Used when you want to output video by cropping.
  • SVM is used because it can not display on one screen because its width size is big.

-y: crop y

  • Used when you want to output video by cropping

-s: set size to CROP with -x, -y option.

-M: Usign the MAX9286

-r: display size setting