libcamera: simple: Don't enforce conversion with an added raw stream
When a raw stream is requested, either alone or together with a processed stream, it can be produced without conversion. Let's amend the corresponding check on the number of configurations, so that the mere presence of a raw stream doesn't enforce conversion. Reviewed-by: Umang Jain <uajain@igalia.com> Signed-off-by: Milan Zamazal <mzamazal@redhat.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
committed by
Kieran Bingham
parent
7b068dda96
commit
e9252384f5
@@ -1249,7 +1249,7 @@ CameraConfiguration::Status SimpleCameraConfiguration::validate()
|
||||
* require any conversion, similar to raw capture use cases). This is
|
||||
* left as a future improvement.
|
||||
*/
|
||||
needConversion_ = config_.size() > 1;
|
||||
needConversion_ = config_.size() > 1 + rawCount;
|
||||
|
||||
for (unsigned int i = 0; i < config_.size(); ++i) {
|
||||
StreamConfiguration &cfg = config_[i];
|
||||
|
||||
Reference in New Issue
Block a user