Changes

Jump to navigation Jump to search
no edit summary
Line 344: Line 344:     
Several files will be saved in the /dev/shm/ directory after completion.
 
Several files will be saved in the /dev/shm/ directory after completion.
  −
==== Tightly aligned image format ====
  −
The data format saved by mv_raspicam is the data format on the MIPS bus, with no empty bit padding between pixels.
  −
[[File:Packed raw data layer.png|center|thumb|1200x1200px|Packed raw data layer]]
  −
<br />
  −
  −
==== Image size ====
  −
Buffersize= ALIGN_UP(width*bit_depth/8,32)*ALIGN_UP(height,16)
  −
  −
The row buffer size should be 32 bytes aligned; the column buffer size should be 16 bytes aligned.
  −
  −
For example, the image size of 3088*2064@8bit is 6406656; the image size of 3088*2064@10bit is 7991808; the image size of 3088*2064@12bit is 9576960.
  −
  −
PS. This y8 file can be used with this player: [https://yuv-player-deluxe.software.informer.com/2.6/ YUV Displayer Deluxe].
  −
  −
Since the memory requested by Raspberry Pi for the image, the width is 32-align and the height is 16-align, the 3088*2064 image will be saved as 3104*2064 size.
      
==== Trigger mode ====
 
==== Trigger mode ====
Line 418: Line 402:     
Note: script [https://github.com/veyeimaging/mvcam_raspberrypi/tree/main/mv_tools_rpi link].
 
Note: script [https://github.com/veyeimaging/mvcam_raspberrypi/tree/main/mv_tools_rpi link].
 +
 +
==== Raw data picture format ====
 +
 +
==== Unpacked image format(padded) ====
 +
For 10bit depth and 12bit depth pixel data, two bytes are always used to store one pixel. The V4L2 standard 'Y10 ', 'Y12 ' formats are stored in this way.
 +
 +
This storage method is convenient for software processing, but has the disadvantage of taking up more space.
 +
 +
==== Packed image format ====
 +
The data format saved by mv_raspicam is the data format on the MIPS bus, with no empty bit padding between pixels.
 +
[[File:Packed raw data layer.png|center|thumb|1200x1200px|Packed raw data layer]]
 +
<br />
 +
 +
==== Packed image size ====
 +
Buffersize= ALIGN_UP(width*bit_depth/8,32)*ALIGN_UP(height,16)
 +
 +
The row buffer size should be 32 bytes aligned; the column buffer size should be 16 bytes aligned.
 +
 +
For example, the image size of 3088*2064@8bit is 6406656; the image size of 3088*2064@10bit is 7991808; the image size of 3088*2064@12bit is 9576960.
 +
 +
==== Format convert tool ====
 +
We have written a small tool: [https://github.com/veyeimaging/pixel_layer_convert pixel_layer_convert], which can easily convert packed images to unpacked images.
 +
 +
For example, the following command converts a packed raw10 image of 3088 width to an unpacked raw10.
 +
 +
<code>. /pixel_layer_convert -I Y10P -i y10-3088x2064_0001.raw -o y10-3088x2064_0001_new.raw -w 3088</code>
 +
 +
==== Raw data image player ====
 +
We recommend using [https://www.offminor.de/ vooya] as the player, which supports GREY, and unpacked image formats.
 +
 +
Also, y8 file can be used with this player: [https://yuv-player-deluxe.software.informer.com/2.6/ YUV Displayer Deluxe].
 +
 +
Since the memory requested by Raspberry Pi for the image, the width is 32-align and the height is 16-align, the 3088*2064 image will be saved as 3104*2064 size.
 
===Shell script for parameter configuration===
 
===Shell script for parameter configuration===
 
We provide shell scripts to configure the parameters.
 
We provide shell scripts to configure the parameters.

Navigation menu