Changes

Jump to navigation Jump to search
Line 242: Line 242:  
<code>v4l2-ctl -L</code>
 
<code>v4l2-ctl -L</code>
   −
<code><small>User Controls</small></code>
+
<code>User Controls</code>
   −
<code><small>                horizontal_flip 0x00980914 (bool)   : default=0 value=0</small></code>
+
<code>                   trigger_mode 0x00981901 (int)    : min=0 max=2 step=1 default=0 value=0 flags=volatile, execute-on-write</code>
   −
<code><small>                  vertical_flip 0x00980915 (bool)   : default=0 value=0</small></code>
+
<code>                    trigger_src 0x00981902 (int)    : min=0 max=1 step=1 default=1 value=1 flags=volatile, execute-on-write</code>
   −
<code><small>                   trigger_mode 0x00981901 (int)    : min=0 max=2 step=1 default=0 value=0 flags=volatile</small></code>
+
<code>                    soft_trgone 0x00981903 (button) : flags=write-only, execute-on-write</code>
   −
<code><small>                    trigger_src 0x00981902 (int)    : min=0 max=1 step=1 default=1 value=1 flags=volatile</small></code>
+
<code>                     frame_rate 0x00981904 (int)    : min=1 max=60 step=1 default=30 value=30 flags=volatile, execute-on-write</code>
   −
<code><small>                    soft_trgone 0x00981903 (button) : flags=write-only, execute-on-write</small></code>
+
<code>                          roi_x 0x00981905 (int)    : min=0 max=1376 step=8 default=0 value=0</code>
   −
<code><small>                     frame_rate 0x00981904 (int)    : min=0 max=22 step=1 default=22 value=22 flags=volatile</small></code>
+
<code>                          roi_y 0x00981906 (int)    : min=0 max=1024 step=4 default=0 value=0</code>
    
Parameters can be set and get using the following methods.
 
Parameters can be set and get using the following methods.
Line 267: Line 267:     
Each of them is described below:
 
Each of them is described below:
======horizontal and <small>vertical</small> flip======
  −
  −
*horizontal flip
  −
  −
<code>v4l2-ctl --set-ctrl horizontal_flip=1</code>
  −
  −
*<small>vertical flip</small>
  −
  −
<code>v4l2-ctl --set-ctrl <small>vertical_flip</small>=1</code>
   
======Trigger Mode======
 
======Trigger Mode======
 
<code>v4l2-ctl --set-ctrl <small>trigger_mode=[0-2]</small></code>
 
<code>v4l2-ctl --set-ctrl <small>trigger_mode=[0-2]</small></code>
Line 301: Line 292:     
====== Set ROI ======
 
====== Set ROI ======
For example:
     −
* MV-MIPI-IMX178M
+
*method 1,use selection
 +
 
 +
<code>v4l2-ctl --set-selection=target=crop,top=0,left=0,width=$WIDTH,height=$HEIGHT</code>
   −
<code>v4l2-ctl --set-selection=target=crop,top=32,left=64,width=2592,height=1944</code>
+
The maximum frame rate will be adjusted automatically after setting ROI.
   −
* MV-MIPI-SC130M
+
*method 2,use user definedroi_x,roi_y and <code>--set-fmt-video</code>
   −
<code>v4l2-ctl --set-selection=target=crop,top=32,left=64,width=640,height=640</code>
+
<code>v4l2-ctl --set-ctrl roi_x=0</code>
   −
The maximum frame rate will be adjusted automatically after setting ROI.
+
<code>v4l2-ctl --set-ctrl roi_y=0</code>
    +
<code>v4l2-ctl --set-fmt-video=width=$WIDTH,height=$HEIGHT</code>
 
==== Video Streaming mode ====
 
==== Video Streaming mode ====
   Line 703: Line 696:     
=== Document History ===
 
=== Document History ===
 +
 +
* 2023-04-14
 +
 +
With the new version of the driver, the flip operation has been removed, and a new ROI configuration method has been added.
    
* 2023-03-29
 
* 2023-03-29

Navigation menu