[PATCH 0/4] Enable JPEG encoding on rk3588

Emmanuel Gil Peyrot linkmauve at linkmauve.fr
Wed Mar 20 10:37:29 PDT 2024


Only the JPEG encoder is available for now, although there are patches
for the undocumented VP8 encoder floating around[0].

This has been tested on a rock-5b, resulting in four /dev/video*
encoders.  The userspace program I’ve been using to test them is
Onix[1], using the jpeg-encoder example, it will pick one of these four
at random (but displays the one it picked):
% ffmpeg -i <input image> -pix_fmt yuvj420p temp.yuv
% jpeg-encoder temp.yuv <width> <height> NV12 <quality> output.jpeg

[0] https://patchwork.kernel.org/project/linux-rockchip/list/?series=789885
[1] https://crates.io/crates/onix

Emmanuel Gil Peyrot (4):
  dt-bindings: iommu: rockchip: Fix rk3588 variant
  media: dt-binding: media: Document rk3588’s vepu121
  arm64: dts: rockchip: Add VEPU121 to rk3588
  media: verisilicon: Enable VEPU121 on rk3588

 .../bindings/media/rockchip,rk3568-vepu.yaml  |  1 +
 arch/arm64/boot/dts/rockchip/rk3588s.dtsi     | 82 ++++++++++++++++++-
 drivers/iommu/rockchip-iommu.c                |  3 +
 .../media/platform/verisilicon/hantro_drv.c   |  1 +
 .../media/platform/verisilicon/hantro_hw.h    |  1 +
 .../platform/verisilicon/rockchip_vpu_hw.c    | 13 +++
 6 files changed, 100 insertions(+), 1 deletion(-)

-- 
2.44.0




More information about the linux-arm-kernel mailing list