mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-16 17:05:08 +03:00
libcamera: ipu3: Make it easier to read when a request may be completed
It's confusing to read the code and understand that a request is only completed before being processed by the ImgU if it only contains a single RAW buffer. Add a boolean variable with a explanatory name to make this clearer, no functional change. Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
parent
8e137b0819
commit
c3648da6e9
1 changed files with 6 additions and 4 deletions
|
@ -874,11 +874,13 @@ void IPU3CameraData::cio2BufferReady(FrameBuffer *buffer)
|
||||||
* If the request contains a buffer for the RAW stream only, complete it
|
* If the request contains a buffer for the RAW stream only, complete it
|
||||||
* now as there's no need for ImgU processing.
|
* now as there's no need for ImgU processing.
|
||||||
*/
|
*/
|
||||||
if (request->findBuffer(&rawStream_) &&
|
if (request->findBuffer(&rawStream_)) {
|
||||||
pipe_->completeBuffer(camera_, request, buffer)) {
|
bool isComplete = pipe_->completeBuffer(camera_, request, buffer);
|
||||||
|
if (isComplete) {
|
||||||
pipe_->completeRequest(camera_, request);
|
pipe_->completeRequest(camera_, request);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
imgu_->input_->queueBuffer(buffer);
|
imgu_->input_->queueBuffer(buffer);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue