mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 16:09:42 +00:00
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:
@@ -109,7 +109,7 @@ struct ExternalCameraDeviceSession : public virtual RefBase,
|
|||||||
|
|
||||||
static const int kMaxProcessedStream = 2;
|
static const int kMaxProcessedStream = 2;
|
||||||
static const int kMaxStallStream = 1;
|
static const int kMaxStallStream = 1;
|
||||||
static const uint32_t kMaxBytesPerPixel = 2;
|
static const uint32_t kMaxBytesPerPixel = 3;
|
||||||
|
|
||||||
class OutputThread : public android::Thread {
|
class OutputThread : public android::Thread {
|
||||||
public:
|
public:
|
||||||
|
|||||||
@@ -122,7 +122,7 @@ class ExternalCameraDeviceSession : public BnCameraDeviceSession, public OutputT
|
|||||||
|
|
||||||
static const int kMaxProcessedStream = 2;
|
static const int kMaxProcessedStream = 2;
|
||||||
static const int kMaxStallStream = 1;
|
static const int kMaxStallStream = 1;
|
||||||
static const uint32_t kMaxBytesPerPixel = 2;
|
static const uint32_t kMaxBytesPerPixel = 3;
|
||||||
|
|
||||||
class BufferRequestThread : public SimpleThread {
|
class BufferRequestThread : public SimpleThread {
|
||||||
public:
|
public:
|
||||||
|
|||||||
Reference in New Issue
Block a user