Skip to content

Commit

Permalink
doc: releases: 4.1: announce switch to video_bits_per_pixel()
Browse files Browse the repository at this point in the history
The previous commit introduces video_bits_per_pixel() and converts
all invocation relying on video_pix_fmt_bpp(), 3rd-party users will
need to do the same on their code, and this is not a 100% drop-in API,
so better document it on the release notes.

Signed-off-by: Josuah Demangeon <me@josuah.net>
  • Loading branch information
josuah committed Jan 20, 2025
1 parent db41ca1 commit 7e1e702
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions doc/releases/migration-guide-4.1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,11 @@ Video
The new ``video-controls.h`` source now contains description of each control ID to help
disambiguating.

* The ``video_pix_fmt_bpp()`` function was returning a byte count. This got replaced by
``video_bits_per_pixel()`` which returns a bit count. For instance, invocations such as
``pitch = width * video_pix_fmt_bpp(pixfmt)`` need to be replaced by an equivalent
``pitch = width * video_bits_per_pixel(pixfmt) / BITS_PER_BYTE``.

Watchdog
========

Expand Down
3 changes: 3 additions & 0 deletions doc/releases/release-notes-4.1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,9 @@ Drivers and Sensors
* Changed :file:`include/zephyr/drivers/video-controls.h` to have control IDs (CIDs) matching
those present in the Linux kernel.

* Changed ``video_pix_fmt_bpp()`` returning the byte count and only supports 8-bit depth,
into ``video_bits_per_pixel()`` returning the bit count and supports any color depth.

* Watchdog

* Added :kconfig:option:`CONFIG_HAS_WDT_NO_CALLBACKS` which drivers select when they do not support
Expand Down

0 comments on commit 7e1e702

Please sign in to comment.