Skip to content

media: meson: vdec: Add support for compressed framebuffer

Neil Armstrong linux-amlogic linux-arm-kernel linux-media lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5media: videodev2: add Compressed Framebuffer pixel formatsdrivers/media/v4l2-core/v4l2-ioctl.c include/uapi/linux/videodev2.h+11 -011 replies
2/5media: meson: vdec: handle bitdepth on source changedrivers/staging/media/meson/vdec/codec_h264.c drivers/staging/media/meson/vdec/codec_vp9.c drivers/staging/media/meson/vdec/vdec.h +2 more+13 -70 replies
3/5media: meson: vdec: update compressed buffer helpersdrivers/staging/media/meson/vdec/codec_hevc_common.c drivers/staging/media/meson/vdec/codec_vp9.c drivers/staging/media/meson/vdec/vdec_helpers.c +1 more+58 -200 replies
4/5media: meson: vdec: add support for compressed output for VP9 decoderdrivers/staging/media/meson/vdec/codec_hevc_common.c drivers/staging/media/meson/vdec/codec_hevc_common.h drivers/staging/media/meson/vdec/codec_vp9.c+47 -970 replies
5/5media: meson: vdec: handle compressed output pixel format negociation with consumerdrivers/staging/media/meson/vdec/codec_hevc_common.c drivers/staging/media/meson/vdec/vdec.c drivers/staging/media/meson/vdec/vdec.h +2 more+78 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] media: meson: vdec: Add support for compressed framebuffer

This patchset add support for compressed framebuffer while decoding VP9 8bit and 10bit streams.

First, it adds two generic Compressed Framebuffer pixel formats to be used with a modifier when imported back in another subsystem like DRM/KMS.

These are aligned with the DRM_FORMAT_YUV420_8BIT and DRM_FORMAT_YUV420_10BIT used to describe the underlying compressed buffers used for ARM Framebuffer Compression. In the Amlogic case, the compression is different but the underlying buffer components is the same.

Then, in order to handle Compressed Framebuffer support, we need to handle the switch between 8bit and 10bit frame output.
Add the necessary changes to decode VP9 8bit and 10bit streams into compressed buffers to be imported back into DRM/KMS using a modifier.

Finally, add the necessary to add support for negociating the compressed buffer pixel format with the V4L2 M2M consumer, and allocating the right buffers in this case.

Until a proper mechanism exists to pass a modifier along the pixel format, only the generic V4L2_PIX_FMT_YUV420_8BIT and V4L2_PIX_FMT_YUV420_10BIT format are passed in v4l2_pix_format_mplane struct for consumer.

Maxime Jourdan (5):
media: videodev2: add Compressed Framebuffer pixel formats
media: meson: vdec: handle bitdepth on source change
media: meson: vdec: update compressed buffer helpers
media: meson: vdec: add support for compressed output for VP9 decoder
media: meson: vdec: handle compressed output pixel format negociation
with consumer

 drivers/media/v4l2-core/v4l2-ioctl.c          |   2 +
 drivers/staging/media/meson/vdec/codec_h264.c |   3 +-
 .../media/meson/vdec/codec_hevc_common.c      | 133 +++++++-----------
 .../media/meson/vdec/codec_hevc_common.h      |  13 +-
 drivers/staging/media/meson/vdec/codec_vp9.c  |  29 ++--
 drivers/staging/media/meson/vdec/vdec.c       |  46 ++++++
 drivers/staging/media/meson/vdec/vdec.h       |   4 +
 .../staging/media/meson/vdec/vdec_helpers.c   |  68 +++++++--
 .../staging/media/meson/vdec/vdec_helpers.h   |  11 +-
 .../staging/media/meson/vdec/vdec_platform.c  |   9 +-
 include/uapi/linux/videodev2.h                |   9 ++
 11 files changed, 203 insertions(+), 124 deletions(-)
Signature · 1 line
2.22.0