camera: intel: ipu6: Don't link face detect to stream with still usage
When HDRnet enabled, framework configures 2 YUV streams.
One is preview stream and another is YUV for still stream.
They are both YCbCr_420_888 format, but different usage.
Previously HAL just checked format, Face Detect would link
to the stream if format was YCbCr_420_888. So it might be
linked to the stream for still usage even it is YCbCr_420_888.
When working in preview and video mode, the still stream
wasn't set perframely. It caused no face results fetched.
Checked both YCbCr_420_888 format and usage, only linked
Face Detection when it isn't still usage.
BUG=b:417620604
TEST=Full tested pass for camera functions
Change-Id: I10c0b7396a7ab25bf9ba88b3da8452d66ed30b99
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/camera/+/6544874
Reviewed-by: Yudhistira Erlandinata <[email protected]>
Reviewed-by: Hanlin Chen <[email protected]>
Tested-by: Qingwu Zhang <[email protected]>
Commit-Queue: Yudhistira Erlandinata <[email protected]>
1 file changed