From d9927380ed7c8366f762049be9f3fee225860833 Mon Sep 17 00:00:00 2001 From: liyujie <2352380935@qq.com> Date: Thu, 28 Aug 2025 12:04:16 +0000 Subject: [PATCH] [2/4]解决USB摄像头打开相机预览界面绿屏 --- android/hardware/aw/camera/3_4/v4l2_gralloc.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/android/hardware/aw/camera/3_4/v4l2_gralloc.h b/android/hardware/aw/camera/3_4/v4l2_gralloc.h index da9ac0b..bb489e3 100755 --- a/android/hardware/aw/camera/3_4/v4l2_gralloc.h +++ b/android/hardware/aw/camera/3_4/v4l2_gralloc.h @@ -42,7 +42,7 @@ namespace v4l2_camera_hal { // Generously allow up to 6MB (the largest JPEG on the RPi camera is about 5MB). -static constexpr size_t V4L2_MAX_JPEG_SIZE = 6000000; +static constexpr size_t V4L2_MAX_JPEG_SIZE = 20000000; // V4L2Gralloc is a wrapper around relevant parts of a gralloc module, // with some assistive transformations. -- Gitblit v1.6.2