例如,在Linux上,我可以在Linux上获得设备格式列表。v4l2-ctl -i /dev/video0 --list-formats
Type : Video CaptureName : YUV 4:2:2 (YUYV)
Type : Video Capture
Pixel Format: 'H264' (c
static void yuyv_to_yuv420PackedSemiPlanar( byte[] yuyv, byte[] yuv, int w, int h ) {
int actual_length;
expected_length = PixelFormat.V4L2_PIX_FMT_YUYV.frameSizethrow new IllegalArgumentException