From: Arun Iyengar Subject: [PATCH v2 0/2] media: rkvdec: vdpu381: compress the co-located motion vectors Date: Tue, 01 Dec 2026 11:02:58 +0000 Message-Id: <20261201-rkvdec-colmv-v2-0-8ba3e18eab46@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAAAAAAAC/3WNwQ6CMBAFf4Xs2Zq2tKKc/A/DAcoCq5SaFhsN4 d+lePY4ybx5CwT0hAHKbAGPkQK5aQN5yMAM9dQjo3ZjkFyehBCc+Uds0TDjRhuZ0prrwjT5pVC wTZ4eO3rvuVv14/Bq7mjm1EjGQGF2/rP/RZG8P+koGGdcyOassFZ5V1x7W9N4NM5Cta7rFw52Y me6AAAA X-Change-ID: 20261110-rkvdec-colmv-455057cb3974 To: Detlev Casanova , Ezequiel Garcia , Mauro Carvalho Chehab , Heiko Stuebner Cc: linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Arun Iyengar X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1796122979; l=1629; i=aiyengar1990@gmail.com; s=20261110; h=from:subject:message-id; bh=GcdhPxODuxePzDTUIghK8qQQP5t+O27CWdR+L8XePRo=; b=6GfWbg7cSuyu0fxZkP9zXKti73ff98/wXabmiXHKWdSmUWy6Y68SKJv04pR1WIq9yEIBoeZFS ZU9/xVoM2s9CfiA7wPt4aTz3nJXU7Arpxu93oCZP8oVgu9uToD3nhFs X-Developer-Key: i=aiyengar1990@gmail.com; a=ed25519; pk=zXpRgUTrhaFe6jLyPqbBy3ccfkj04w0g2690Wv3mg+0= X-Endpoint-Received: by B4 Relay for aiyengar1990@gmail.com/20261110 with auth_id=1480 List-Id: B4 Relay Submissions The VDPU381 can store the co-located motion vectors of a frame compressed. The Rockchip MPP does so for frame-only H.264 and for HEVC; mainline never does. The H.264 worst case needs twice the space reserved today: 8.3 MB instead of 4.1 MB per 4K CAPTURE buffer. Patch 1 enables it for H.264 and reserves the worst case. Patch 2 enables it for HEVC. Tested on an Orange Pi 5 (RK3588S), GStreamer into fakevideosink, 240 frames, compression off -> on: H.264 4K 65.4 -> 68.4 fps, 1080p 214 -> 234 fps, HEVC 4K 98.6-102.8 -> 104.6 fps. The frame checksums are the same off and on and match FFmpeg's software decoders. Fluster is unchanged (JCT-VC-HEVC_V1 146/147, JVT-AVC_V1 129/135, JVT-FR-EXT 65/69). Developed with Claude (Anthropic), which wrote the code and the commit messages; I reviewed and tested every change. Changes in v2: - Shorter messages and comments. No functional change. - Link to v1: https://lore.kernel.org/r/20261110-rkvdec-colmv-v1-0-012b84ea43f7@gmail.com --- Arun Iyengar (2): media: rkvdec: vdpu381: Compress the co-located motion vectors of H.264 media: rkvdec: vdpu381: Compress the co-located motion vectors of HEVC drivers/media/platform/rockchip/rkvdec/rkvdec-vdpu381-h264.c | 2 ++ drivers/media/platform/rockchip/rkvdec/rkvdec-vdpu381-hevc.c | 2 ++ drivers/media/platform/rockchip/rkvdec/rkvdec.c | 12 +++++++++++- 3 files changed, 15 insertions(+), 1 deletion(-) --- base-commit: 95c189b26efb07257888ccf9d873a5c366aafbc6 change-id: 20261110-rkvdec-colmv-455057cb3974 Best regards, -- Arun Iyengar