[PATCH v1 0/4] Add encoder features

From: Jackson.lee

Date: Tue Mar 24 2026 - 01:05:00 EST


From: Jackson Lee <jackson.lee@xxxxxxxxxxxxxxx>

This series adds several encoder-side enhancements for the Wave5 driver.

The following features are introduced:
- Background detection support via V4L2 controls
- CBP profile support
- Support for packed YUV422 formats

Background detection allows the encoder to differentiate between
foreground and background regions, potentially improving compression
efficiency depending on the use case.

CBP profile support extends compatibility with additional encoding
profiles.

Support for packed YUV422 formats enables handling of commonly used
input formats such as YUYV and YVYU.

The changes include updates to control definitions, documentation,
and driver implementation.

Tested on Wave5 encoder pipeline with GStreamer.

Change since v0:
* For [PATCH v1 1/4] media: v4l2-controls: Add control
for background detection
- Added spaces around '+' in CID macro definition per CI suggestion

* For [PATCH v1 2/4] media: chips-media: wave5: Add support
for background detection
- Split into two patches: API addition and driver implementation

* For [PATCH v1 3/4] media: chips-media: wave5: Support CBP profile
- Added Fixed tag
- Added braces to all branches in the else-if/else block

* For [PATCH v1 4/4] media: chips-media: wave5: Add Support
for Packed YUV422 Formats
- Added Reviewed-by tag

Jackson Lee (4):
media: v4l2-controls: Add control for background detection
media: chips-media: wave5: Add support for background detection
media: chips-media: wave5: Support CBP profile
media: chips-media: wave5: Add Support for Packed YUV422 Formats

.../media/v4l/ext-ctrls-codec.rst | 6 +++
.../platform/chips-media/wave5/wave5-helper.h | 2 +-
.../platform/chips-media/wave5/wave5-hw.c | 7 ++-
.../chips-media/wave5/wave5-vpu-enc.c | 45 ++++++++++++++++++-
.../platform/chips-media/wave5/wave5-vpuapi.h | 2 +
drivers/media/v4l2-core/v4l2-ctrls-defs.c | 2 +
include/uapi/linux/v4l2-controls.h | 2 +
7 files changed, 63 insertions(+), 3 deletions(-)

--
2.43.0