I want to design test board using image sensor (10bit gray color) and will attach tx2 board on my test board.
My 10bit gray sensor will send 10 bit image from csi to VI4
sequences is csi -> csi mux -> chansel -> pixfmt -> ispbuf -> ispa
#1. i want to use just MSB 8bit image from my 10bit gray sensor.
I printed in tegra_channel_capture_setup function(vi4_fops.c) belows.
vi4_channel_write(chan, vnc_id, PIXFMT_FORMAT, format);
printk("[dooman:%s] pixfmt-%d\n", func, format);
and results is 32, 32 means T_R16_I
RAW10 - | 0 | 0 | D9 | D8 | D7 | D6 | D5 | D4 | D3 | D2 | D1 | D0 | D9(MSB replicated) | D8(MSB repl) | D7(MSB repl) | D6(MSB repl) |
I guess that PIXFMT just make 10bit image to 16bit format add dummy data.
if i set VI_CH_PIXFMT_FORMAT_0 register to T_L8, can i get raw 8 bit image from my 10bit gray sensor like belows??
RAW10 - | D9 | D8 | D7 | D6 | D5 | D4 | D3 | D2 | LSB Thrown away