linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/4] media: amphion: add support for contiguous format
@ 2022-08-09  6:50 Ming Qian
  2022-08-09  6:50 ` [PATCH v4 1/4] media: add nv12_8l128 and nv12_10be_8l128 video format Ming Qian
                   ` (3 more replies)
  0 siblings, 4 replies; 20+ messages in thread
From: Ming Qian @ 2022-08-09  6:50 UTC (permalink / raw)
  To: mchehab, hverkuil-cisco
  Cc: shawnguo, robh+dt, s.hauer, kernel, festevam, linux-imx,
	xiahong.bao, linux-media, linux-kernel, linux-arm-kernel

amphion vpu support non contiguous planes yuv format,
but when we make pipeline with other device,
the device may only support contiguous format,
for example, amphion encoder support NV12M,
but the capture device may only support NV12.
we can't connect them directly.

So to improve compatibility, driver can add support for contiguous
format in the same time.

Then encoder can support NV12 and NV12M,
decoder can support NV12_8L128 and NV12M_8L128.

v4
- set bytesperline of compressed formats to 0

v3
- negotiate bytesperline with user
- zero the reserved of v4l2_format

v2
-- fix an uninitialized array index read error
-- remove an used variable

Ming Qian (4):
  media: add nv12_8l128 and nv12_10be_8l128 video format.
  media: amphion: tell and handle contiguous and non contiguous format
  media: amphion: decoder add support for contiguous planes
  media: amphion: encoder add support for contiguous planes

 .../media/v4l/pixfmt-yuv-planar.rst           |   8 +
 drivers/media/platform/amphion/vdec.c         | 203 ++++++++++--------
 drivers/media/platform/amphion/venc.c         |  41 ++--
 drivers/media/platform/amphion/vpu.h          |   4 +-
 drivers/media/platform/amphion/vpu_dbg.c      |   8 +-
 drivers/media/platform/amphion/vpu_helpers.c  |  48 ++++-
 drivers/media/platform/amphion/vpu_helpers.h  |   2 +
 drivers/media/platform/amphion/vpu_malone.c   |   3 +-
 drivers/media/platform/amphion/vpu_v4l2.c     | 168 +++++++++++----
 drivers/media/platform/amphion/vpu_v4l2.h     |   3 +-
 drivers/media/platform/amphion/vpu_windsor.c  |   8 +-
 drivers/media/v4l2-core/v4l2-ioctl.c          |   2 +
 include/uapi/linux/videodev2.h                |   2 +
 13 files changed, 335 insertions(+), 165 deletions(-)

-- 
2.37.1


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

end of thread, other threads:[~2022-08-22 12:03 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-09  6:50 [PATCH v4 0/4] media: amphion: add support for contiguous format Ming Qian
2022-08-09  6:50 ` [PATCH v4 1/4] media: add nv12_8l128 and nv12_10be_8l128 video format Ming Qian
2022-08-11 15:18   ` Tommaso Merciai
2022-08-12  1:25     ` [EXT] " Ming Qian
2022-08-12  7:11       ` Tommaso Merciai
2022-08-16 14:42     ` Nicolas Dufresne
2022-08-09  6:50 ` [PATCH v4 2/4] media: amphion: tell and handle contiguous and non contiguous format Ming Qian
2022-08-12  7:14   ` Tommaso Merciai
2022-08-12  7:19     ` [EXT] " Ming Qian
2022-08-12  9:42       ` Tommaso Merciai
2022-08-12  9:49       ` Tommaso Merciai
2022-08-12 23:26     ` Ming Qian
2022-08-22  7:25       ` Tommaso Merciai
2022-08-22 11:16   ` Tommaso Merciai
2022-08-22 11:56     ` [EXT] " Ming Qian
2022-08-22 12:03       ` Tommaso Merciai
2022-08-09  6:50 ` [PATCH v4 3/4] media: amphion: decoder add support for contiguous planes Ming Qian
2022-08-22 11:30   ` Tommaso Merciai
2022-08-09  6:50 ` [PATCH v4 4/4] media: amphion: encoder " Ming Qian
2022-08-22 11:31   ` Tommaso Merciai

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).