RK Android11原始系统 USB摄像头默认只支持到1080P的分辨率,客户需要接1200W USB摄像头,需要拍照和预览都能达到1200W
首先修改配置文件device/rockchip/common/external_camera_config.xml:
<!-- See ExternalCameraUtils.cpp for default values of Device configurations below--><Device><!-- Max JPEG buffer size in bytes--><MaxJpegBufferSize bytes="6291456"/> <!-- 3MB (~= 1080p YUV420) --><!-- Size of v4l2 buffer queue when streaming >= 30fps --><!-- Larger value: more request can be cached pipeline (less janky) --><!-- Smaller value: use less memory -->
@@ -51,22 +51,23 @@<Limit width="1920" height="1080" fpsBound="20.0" /><Limit width="1920" height="1080" fpsBound="15.0" />