Files
reims-vgpu/docs/video
Anees Iqbal 1cd119ce1a 🆕 Run VideoToolbox decoder sessions over a backend on the host
The paravirtual route's second piece: the host's side of a guest decoder's
session, so that a backend over the host's video arm can serve VideoToolbox's
decodes next. reims_vgpu_video::paravirt gains:

- decoder: a `+dec` session on a thread of its own. dsta starts it once from
  the format description's avcC or hvcC, refusing 3-byte NAL unit lengths and
  H.264 field pictures, and sends Dpba first; dfrm asks the guest for a buffer
  (Dbuf), has the backend decode the sample's access unit into the surface it
  lends, emits the frame (Demt) and lets go of the surface (rels), Dfub
  naming a buffer left unused; the guest's replies go straight to the request
  that waits for them. dsup, dcop, dset, dcan, dinv and the rest are answered.
- image_description and sample_buffer: readers of the =fds and =sbf
  parameters, with the serializer's known keys; plist reads binary property
  lists within bounds of ours.
- Host::with_backend, under which a create of a listed codec opens a session,
  and a close ends it.

Nothing changes for a guest: the device's host makes its Host without a
backend, so every create is still refused, and no host offers VT_MESSAGES.
2026-11-16 12:47:35 -08:00
..