Add initial helpers for supporting V4L2 Request API hwaccels. Basic flow for initialization follows the kernel Memory-to-memory Stateless Video Decoder Interface > Initialization [1]. In init a hw frame ctx is created and initialized to start a new V4L2 video decoding session, initial CAPTURE buffers is pre-allocated, OUTPUT buffers and request objects are allocated for a circular queue. In frame_params the codec pixel format and optional codec-specific extended controls is configured before the hw frame ctx is initialized. In uninit any pending request is flushed before resources are released. [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> |
||
|---|---|---|
| .. | ||
| labeler | ||
| pre-commit | ||
| workflows | ||
| CODEOWNERS | ||
| ISSUE_TEMPLATE.md | ||