From: Bingbu Cao <bingbu.cao@linux.intel.com>
To: jorhand@linux.microsoft.com, linux-media@vger.kernel.org
Cc: Sakari Ailus <sakari.ailus@linux.intel.com>,
Bingbu Cao <bingbu.cao@intel.com>,
Tian Shu Qiu <tian.shu.qiu@intel.com>,
Mauro Carvalho Chehab <mchehab@kernel.org>
Subject: Re: [PATCH] media: ipu3.rst: Format media-ctl and yavta commands as code blocks
Date: Fri, 24 Jul 2020 12:44:20 +0800 [thread overview]
Message-ID: <088accd1-79d8-c688-4860-dd7db1612edc@linux.intel.com> (raw)
In-Reply-To: <20200630040508.11461-1-jorhand@linux.microsoft.com>
Jordan, thanks for your patch.
On 6/30/20 12:05 PM, jorhand@linux.microsoft.com 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
next prev parent reply other threads:[~2020-07-24 4:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-30 4:05 [PATCH] media: ipu3.rst: Format media-ctl and yavta commands as code blocks jorhand
2020-07-24 4:44 ` Bingbu Cao [this message]
2020-07-24 5:00 ` Bingbu Cao
2020-07-24 17:39 ` Jordan Hand
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=088accd1-79d8-c688-4860-dd7db1612edc@linux.intel.com \
--to=bingbu.cao@linux.intel.com \
--cc=bingbu.cao@intel.com \
--cc=jorhand@linux.microsoft.com \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=sakari.ailus@linux.intel.com \
--cc=tian.shu.qiu@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox