ExternalCameraDevice: increase max bytes per pixel

This fixes some USB external camera which fails to initialize with:

  I ExtCamDevSsn@3.4: configureV4l2StreamLocked: V4L2 buffer size is 614989
  E ExtCamDevSsn@3.4: configureV4l2StreamLocked: V4L2 buffer size: 614989 looks invalid. Expected maximum size: 614400
  E ExtCamDevSsn@3.4: V4L configuration failed!, format:MJPG, w 640, h 480

BUG=b:326773369, b:309244873
Test: Manual camera operation verification

Change-Id: I532bef429792f5a841034a4f3d4eadfa6ed78b2a
Reviewed-by: Tomasz Nowicki <tnowicki@google.com>
Tested-by: Tomasz Nowicki <tnowicki@google.com>
Reviewed-by: Konrad Adamczyk <konrada@google.com>
This commit is contained in:
Grzegorz Jaszczyk
2024-01-24 14:07:13 +00:00
parent c3b754ac34
commit db7be07c9c
2 changed files with 2 additions and 2 deletions

View File

@@ -109,7 +109,7 @@ struct ExternalCameraDeviceSession : public virtual RefBase,
static const int kMaxProcessedStream = 2;
static const int kMaxStallStream = 1;
static const uint32_t kMaxBytesPerPixel = 2;
static const uint32_t kMaxBytesPerPixel = 3;
class OutputThread : public android::Thread {
public:

View File

@@ -122,7 +122,7 @@ class ExternalCameraDeviceSession : public BnCameraDeviceSession, public OutputT
static const int kMaxProcessedStream = 2;
static const int kMaxStallStream = 1;
static const uint32_t kMaxBytesPerPixel = 2;
static const uint32_t kMaxBytesPerPixel = 3;
class BufferRequestThread : public SimpleThread {
public: