Question about setting V4L2_CID_AUTO_WHITE_BALANCE control to FALSE
Hello,
When I set V4L2_CID_AUTO_WHITE_BALANCE control to FALSE, which one of the following is the expected behavior?
1. Hold the current white balance settting.
2. Set the white balance to whatever V4L2_CID_WHITE_BALANCE_TEMPERATURE control is set to.
The V4L2 API spec doesn't specify this clearly.
Regards,
-Shuzhen
Nevermind. I think behavior #1 makes more sense.
-Shuzhen
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Shuzhen Wang
Sent: Tuesday, November 16, 2010 11:30 AM
To: [email protected]
Subject: Question about setting V4L2_CID_AUTO_WHITE_BALANCE control to FALSE
Hello,
When I set V4L2_CID_AUTO_WHITE_BALANCE control to FALSE, which one of the following is the expected behavior?
1. Hold the current white balance settting.
2. Set the white balance to whatever V4L2_CID_WHITE_BALANCE_TEMPERATURE control is set to.
The V4L2 API spec doesn't specify this clearly.
Regards,
-Shuzhen
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Hi,
Quoted 1 line · On Tuesday 16 November 2010 23:34:11 Shuzhen Wang wrote:
Nevermind. I think behavior #1 makes more sense.
I agree with that.
Quoted 10 lines · Shuzhen Wang
Quoted 9 lines
When I set
V4L2_CID_AUTO_WHITE_BALANCEcontrol to FALSE, which one of the following is the expected behavior?1. Hold the current white balance settting.
2. Set the white balance to whateverV4L2_CID_WHITE_BALANCE_TEMPERATUREcontrol is set to.The V4L2 API spec doesn't specify this clearly.
The reason why the specification doesn't clearly state what must be done is that the behaviour might be hardware dependent. Some hardware won't offer option 1, so drivers will be forced to go for option 2.
(I'm not totally sure that's why the specification isn't clear about the expected behaviour, but it's at least a good justification for it :-))
Signature · 3 lines
Regards, Laurent Pinchart