pi@bpim2z:~/src/cap-v4l2$ ./build_script.sh
Building cap with local header....
cap.c: In function ‘int v4l2_display_pix_format(int)’:
cap.c:208:1: warning: no return statement in function returning non-void [-Wreturn-type]
208 | }
| ^
cap.c: In function ‘int v4l2_close_camera(int, int)’:
cap.c:503:1: warning: control reaches end of non-void function [-Wreturn-type]
503 | }
| ^
done!
pi@bpim2z:~/src/cap-v4l2$ ./build_script.sh Building cap with local header.... cap.c: In function ‘int v4l2_display_pix_format(int)’: cap.c:208:1: warning: no return statement in function returning non-void [-Wreturn-type] 208 | } | ^ cap.c: In function ‘int v4l2_close_camera(int, int)’: cap.c:503:1: warning: control reaches end of non-void function [-Wreturn-type] 503 | } | ^ done!
run: ./cap 1280 768 4 1 -999 -1 -1
cedrus (platform:cedrus): /dev/video1 /dev/media1
Media device information
driver sun6i-csi model Allwinner A31 CSI Device serial bus info platform:1cb0000.camera hw revision 0x0 driver version 6.2.2
Device topology
entity 1: sun6i-csi-bridge (2 pads, 2 links) type V4L2 subdev subtype Unknown flags 0 device node name /dev/v4l-subdev0 pad0: Sink [fmt:SBGGR8_1X8/1280x720 field:none colorspace:raw] <- "ov5640 1-003c":0 [ENABLED] pad1: Source [fmt:SBGGR8_1X8/1280x720 field:none colorspace:raw] -> "sun6i-csi-capture":0 [ENABLED,IMMUTABLE]
entity 4: sun6i-csi-capture (1 pad, 1 link) type Node subtype V4L flags 0 device node name /dev/video0 pad0: Sink <- "sun6i-csi-bridge":1 [ENABLED,IMMUTABLE]
entity 10: ov5640 1-003c (1 pad, 1 link) type V4L2 subdev subtype Sensor flags 0 device node name /dev/v4l-subdev1 pad0: Source [fmt:UYVY8_2X8/640x480@1/30 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:full-range crop.bounds:(0,0)/2624x1964 crop:(0,4)/2624x1944] -> "sun6i-csi-bridge":0 [ENABLED]