Commit graph

6 commits

Author SHA1 Message Date
Venkata Atchuta Bheemeswara Sarma Darbha
bda805db4d Defining V4L2_PIX_FMT_NV15 and DRM_FORMAT_NV15
Signed-off-by: Venkata Atchuta Bheemeswara Sarma Darbha <vdarbha0473@gmail.com>
2026-01-02 20:28:18 -06:00
Jonas Karlman
65d878325c FIXUP: v4l2request_select_capture_format 2025-12-22 17:24:39 +00:00
Jonas Karlman
a73da69fc8 avutil/hwcontext_v4l2request: Add support for BROADCOM_SAND128 pix fmts 2025-12-20 23:50:14 +00:00
Jernej Skrabec
f83acd4a00 avutil/hwcontext_v4l2request: Add support for AFBC_16X16_SPLIT pix fmts 2025-12-20 23:50:14 +00:00
Jonas Karlman
3f72885fb2 avutil/hwcontext_v4l2request: Probe for a capable media and video device
Probe all media devices and its linked video devices to locate a video
device that support stateless decoding of the specific codec using the
V4L2 Request API.

A video device is deemed capable when all tests pass, e.g. kernel
drivers support the coded pixel format and the frame size is supported.

Basic flow for initialization follows the kernel Memory-to-memory
Stateless Video Decoder Interface > Initialization [1].

[1] https://www.kernel.org/doc/html/latest/userspace-api/media/v4l/dev-stateless-decoder.html#initialization

Co-developed-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Signed-off-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Co-developed-by: Alex Bee <knaerzche@gmail.com>
Signed-off-by: Alex Bee <knaerzche@gmail.com>
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
2025-12-20 23:50:13 +00:00
Jonas Karlman
bb10d3d5a1 avutil/hwcontext: Add hwdevice type for V4L2 Request API
Add a hwdevice type for use with V4L2 Request API stateless decoding.

AVV4L2RequestFramesContext is expected to be filled with a V4L2 coded
pixel format and optional codec-specific extended controls before an
AVHWFramesContext is initialized.

Once initialized AVV4L2RequestFramesContextInternal describe the opened
V4L2 stateless decoder session, with details about media/video file
descriptors, formats of CAPTURE/OUTPUT queues and buffer pools for
creating CAPTURE/OUTPUT buffers.

AVHWFramesContext.pool defaults to create frame descriptors around a
CAPTURE buffer, and frames are returned with AVFrame.data[0] pointing
to a AVDRMFrameDescriptor and AVFrame.data[1] the CAPTURE buffer index.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
2025-12-20 23:45:35 +00:00