linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 00/11] media: imx: Miscellaneous format-related cleanups
@ 2020-03-29 20:59 Steve Longerbeam
  2020-03-29 20:59 ` [PATCH v4 01/11] media: imx: utils: fix and simplify pixel format enumeration Steve Longerbeam
                   ` (10 more replies)
  0 siblings, 11 replies; 20+ messages in thread
From: Steve Longerbeam @ 2020-03-29 20:59 UTC (permalink / raw)
  To: linux-media
  Cc: Laurent Pinchart, Philipp Zabel, Rui Miguel Silva,
	Steve Longerbeam

This series picks up Laurent Pinchart's series:

[PATCH 0/8] media: imx: Miscalleanous format-related cleanups

with a merge of two patches from Philipp Zabel's series:

[PATCH 1/3] media: imx: enable V4L2_PIX_FMT_XBGR32, _BGRX32, and _RGBX32

with an additional patch at the end that splits up the find_enum_format()
functions into separate functions for in-memory fourcc codes and mbus
codes, as requested by Hans Verkuil in the series from Philipp.

History:

v4:
- Constify mbus arg to imx_media_mbus_fmt_to_ipu_image().
- Constify ipu_image arg to imx_media_ipu_image_to_mbus_fmt().
- Return -EINVAL in imx_media_ipu_image_to_mbus_fmt() if given
  image pixelformat does not have mbus codes.

v3:
- fixed derefencing a NULL cc->codes on return from imx_media_find_format()
  in several places.

v2:
- fixed a bug:
  "for (j=0; j < fmt->codes[j]; j++)" should be
  "for (j=0; fmt->codes[j]; j++)", in the mbus format enum functions.
  Caught by Laurent.
- move some local vars under the pixel_formats[] loop. Suggested by Laurent.
- decrement the index passed to the enum functions, instead of introducing
  a match_index local var. Suggested by Laurent.


Laurent Pinchart (7):
  media: imx: utils: Inline init_mbus_colorimetry() in its caller
  media: imx: utils: Handle Bayer format lookup through a selection flag
  media: imx: utils: Simplify IPU format lookup and enumeration
  media: imx: utils: Make imx_media_pixfmt handle variable number of
    codes
  media: imx: utils: Remove unneeded argument to (find|enum)_format()
  media: imx: utils: Rename format lookup and enumeration functions
  media: imx: utils: Constify mbus argument to imx_media_mbus_fmt_to_*

Philipp Zabel (2):
  media: imx: utils: fix and simplify pixel format enumeration
  media: imx: utils: fix media bus format enumeration

Steve Longerbeam (2):
  media: imx: utils: Constify ipu_image argument to
    imx_media_ipu_image_to_mbus_fmt()
  media: imx: utils: Split find|enum_format into fourcc and mbus
    functions

 drivers/staging/media/imx/imx-ic-prp.c        |  12 +-
 drivers/staging/media/imx/imx-ic-prpencvf.c   |  11 +-
 drivers/staging/media/imx/imx-media-capture.c |  24 +-
 .../staging/media/imx/imx-media-csc-scaler.c  |   3 +-
 drivers/staging/media/imx/imx-media-csi.c     |  26 +-
 drivers/staging/media/imx/imx-media-utils.c   | 545 ++++++++----------
 drivers/staging/media/imx/imx-media-vdic.c    |   6 +-
 drivers/staging/media/imx/imx-media.h         |  31 +-
 drivers/staging/media/imx/imx7-media-csi.c    |  14 +-
 9 files changed, 315 insertions(+), 357 deletions(-)

-- 
2.17.1


^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2020-04-03 22:39 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-29 20:59 [PATCH v4 00/11] media: imx: Miscellaneous format-related cleanups Steve Longerbeam
2020-03-29 20:59 ` [PATCH v4 01/11] media: imx: utils: fix and simplify pixel format enumeration Steve Longerbeam
2020-03-29 20:59 ` [PATCH v4 02/11] media: imx: utils: fix media bus " Steve Longerbeam
2020-03-29 20:59 ` [PATCH v4 03/11] media: imx: utils: Inline init_mbus_colorimetry() in its caller Steve Longerbeam
2020-03-29 20:59 ` [PATCH v4 04/11] media: imx: utils: Handle Bayer format lookup through a selection flag Steve Longerbeam
2020-03-29 20:59 ` [PATCH v4 05/11] media: imx: utils: Simplify IPU format lookup and enumeration Steve Longerbeam
2020-03-29 20:59 ` [PATCH v4 06/11] media: imx: utils: Make imx_media_pixfmt handle variable number of codes Steve Longerbeam
2020-03-31 13:45   ` Hans Verkuil
2020-03-31 23:04     ` Steve Longerbeam
2020-04-01  0:31       ` Laurent Pinchart
2020-04-01  7:39         ` Hans Verkuil
2020-04-01 15:20         ` Steve Longerbeam
2020-04-01 15:31           ` Laurent Pinchart
2020-04-03 22:29             ` Steve Longerbeam
2020-04-03 22:38               ` Laurent Pinchart
2020-03-29 20:59 ` [PATCH v4 07/11] media: imx: utils: Remove unneeded argument to (find|enum)_format() Steve Longerbeam
2020-03-29 20:59 ` [PATCH v4 08/11] media: imx: utils: Rename format lookup and enumeration functions Steve Longerbeam
2020-03-29 20:59 ` [PATCH v4 09/11] media: imx: utils: Constify mbus argument to imx_media_mbus_fmt_to_* Steve Longerbeam
2020-03-29 20:59 ` [PATCH v4 10/11] media: imx: utils: Constify ipu_image argument to imx_media_ipu_image_to_mbus_fmt() Steve Longerbeam
2020-03-29 20:59 ` [PATCH v4 11/11] media: imx: utils: Split find|enum_format into fourcc and mbus functions Steve Longerbeam

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).