Re: [PATCH] media: ipu3.rst: Format media-ctl and yavta commands as code blocks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jordan, thanks for your patch.

On 6/30/20 12:05 PM, jorhand@xxxxxxxxxxxxxxxxxxx wrote:
...snip...
>  e.g
>  
> -yavta -w 0x009e0903 444 $SDEV
> +.. code-block:: none
> +
> +    yavta -w 0x009e0903 444 $SDEV
>  
> -yavta -w 0x009e0913 1024 $SDEV
> +    yavta -w 0x009e0913 1024 $SDEV
>  
> -yavta -w 0x009e0911 2046 $SDEV
> +    yavta -w 0x009e0911 2046 $SDEV
>  
As we move into the code-block, so the blank line between each command can be
removed.

>  Once the desired sensor settings are set, frame captures can be done as below.
>  
>  e.g
>  
> -yavta --data-prefix -u -c10 -n5 -I -s2592x1944 --file=/tmp/frame-#.bin \
> -      -f IPU3_SGRBG10 $(media-ctl -d $MDEV -e "ipu3-cio2 0")
> +.. code-block:: none
> +
> +    yavta --data-prefix -u -c10 -n5 -I -s2592x1944 --file=/tmp/frame-#.bin \
> +        -f IPU3_SGRBG10 $(media-ctl -d $MDEV -e "ipu3-cio2 0")
>  
Could we keep the option in the 2nd line align with 1st line? like:
yavta --data-prefix ...\
      -f IPU3_SGRBG10 ....

>  With the above command, 10 frames are captured at 2592x1944 resolution, with
>  sGRBG10 format and output as IPU3_SGRBG10 format.
> @@ -269,21 +271,21 @@ all the video nodes setup correctly.
>  
>  Let us take "ipu3-imgu 0" subdev as an example.
>  
> -media-ctl -d $MDEV -r
> -
> -media-ctl -d $MDEV -l "ipu3-imgu 0 input":0 -> "ipu3-imgu 0":0[1]
> -
> -media-ctl -d $MDEV -l "ipu3-imgu 0":2 -> "ipu3-imgu 0 output":0[1]
> -
> -media-ctl -d $MDEV -l "ipu3-imgu 0":3 -> "ipu3-imgu 0 viewfinder":0[1]
> +.. code-block:: none
>  
> -media-ctl -d $MDEV -l "ipu3-imgu 0":4 -> "ipu3-imgu 0 3a stat":0[1]
> +    media-ctl -d $MDEV -r
> +    media-ctl -d $MDEV -l "ipu3-imgu 0 input":0 -> "ipu3-imgu 0":0[1]
> +    media-ctl -d $MDEV -l "ipu3-imgu 0":2 -> "ipu3-imgu 0 output":0[1]
> +    media-ctl -d $MDEV -l "ipu3-imgu 0":3 -> "ipu3-imgu 0 viewfinder":0[1]
> +    media-ctl -d $MDEV -l "ipu3-imgu 0":4 -> "ipu3-imgu 0 3a stat":0[1]
>  
>  Also the pipe mode of the corresponding V4L2 subdev should be set as desired
>  (e.g 0 for video mode or 1 for still mode) through the control id 0x009819a1 as
>  below.
>  
> -yavta -w "0x009819A1 1" /dev/v4l-subdev7
> +.. code-block:: none
> +
> +    yavta -w "0x009819A1 1" /dev/v4l-subdev7
>  
>  Certain hardware blocks in ImgU pipeline can change the frame resolution by
>  cropping or scaling, these hardware blocks include Input Feeder(IF), Bayer Down
> @@ -371,30 +373,32 @@ v4l2n command can be used. This helps process the raw Bayer frames and produces
>  the desired results for the main output image and the viewfinder output, in NV12
>  format.
>  
> -v4l2n --pipe=4 --load=/tmp/frame-#.bin --open=/dev/video4
> ---fmt=type:VIDEO_OUTPUT_MPLANE,width=2592,height=1944,pixelformat=0X47337069
> ---reqbufs=type:VIDEO_OUTPUT_MPLANE,count:1 --pipe=1 --output=/tmp/frames.out
> ---open=/dev/video5
> ---fmt=type:VIDEO_CAPTURE_MPLANE,width=2560,height=1920,pixelformat=NV12
> ---reqbufs=type:VIDEO_CAPTURE_MPLANE,count:1 --pipe=2 --output=/tmp/frames.vf
> ---open=/dev/video6
> ---fmt=type:VIDEO_CAPTURE_MPLANE,width=2560,height=1920,pixelformat=NV12
> ---reqbufs=type:VIDEO_CAPTURE_MPLANE,count:1 --pipe=3 --open=/dev/video7
> ---output=/tmp/frames.3A --fmt=type:META_CAPTURE,?
> ---reqbufs=count:1,type:META_CAPTURE --pipe=1,2,3,4 --stream=5
> +.. code-block:: none
> +
> +    v4l2n --pipe=4 --load=/tmp/frame-#.bin --open=/dev/video4
> +        --fmt=type:VIDEO_OUTPUT_MPLANE,width=2592,height=1944,pixelformat=0X47337069
> +        --reqbufs=type:VIDEO_OUTPUT_MPLANE,count:1 --pipe=1 --output=/tmp/frames.out
> +        --open=/dev/video5
> +        --fmt=type:VIDEO_CAPTURE_MPLANE,width=2560,height=1920,pixelformat=NV12
> +        --reqbufs=type:VIDEO_CAPTURE_MPLANE,count:1 --pipe=2 --output=/tmp/frames.vf
> +        --open=/dev/video6
> +        --fmt=type:VIDEO_CAPTURE_MPLANE,width=2560,height=1920,pixelformat=NV12
> +        --reqbufs=type:VIDEO_CAPTURE_MPLANE,count:1 --pipe=3 --open=/dev/video7
> +        --output=/tmp/frames.3A --fmt=type:META_CAPTURE,?
> +        --reqbufs=count:1,type:META_CAPTURE --pipe=1,2,3,4 --stream=5
>  Same as above, alignment.
>  You can also use yavta [#f2]_ command to do same thing as above:
>  
>  .. code-block:: none
>  
> -	yavta --data-prefix -Bcapture-mplane -c10 -n5 -I -s2592x1944 \
> -	--file=frame-#.out-f NV12 /dev/video5 & \
> -	yavta --data-prefix -Bcapture-mplane -c10 -n5 -I -s2592x1944 \
> -	--file=frame-#.vf -f NV12 /dev/video6 & \
> -	yavta --data-prefix -Bmeta-capture -c10 -n5 -I \
> -	--file=frame-#.3a /dev/video7 & \
> -	yavta --data-prefix -Boutput-mplane -c10 -n5 -I -s2592x1944 \
> -	--file=/tmp/frame-in.cio2 -f IPU3_SGRBG10 /dev/video4
> +    yavta --data-prefix -Bcapture-mplane -c10 -n5 -I -s2592x1944 \
> +        --file=frame-#.out-f NV12 /dev/video5 & \
> +    yavta --data-prefix -Bcapture-mplane -c10 -n5 -I -s2592x1944 \
> +        --file=frame-#.vf -f NV12 /dev/video6 & \
> +    yavta --data-prefix -Bmeta-capture -c10 -n5 -I \
> +        --file=frame-#.3a /dev/video7 & \
> +    yavta --data-prefix -Boutput-mplane -c10 -n5 -I -s2592x1944 \
> +        --file=/tmp/frame-in.cio2 -f IPU3_SGRBG10 /dev/video4
>  
ditto.

-- 
Best regards,
Bingbu Cao



[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux