Module media

Source
Expand description

Support for virtio-media devices in crosvm.

This module provides implementation for the virtio-media traits required to make virtio-media devices operate under crosvm. Sub-modules then integrate these devices with crosvm.

Modulesยง

decoder_adapter
An adapter from the virtio-media protocol to the video devices originally used with virtio-video.

Structsยง

ArcedMemoryMapper ๐Ÿ”’
A SharedMemoryMapper behind an Arc, allowing it to be shared.
CrosvmVirtioMediaDevice ๐Ÿ”’
Implements the required traits to operate a [VirtioMediaDevice] under crosvm.
EventQueue ๐Ÿ”’
Structure supporting the implementation of VirtioMediaEventQueue for sending events to the driver.
GuestMemoryMapper ๐Ÿ”’
Newtype to implement VirtioMediaGuestMemoryMapper on GuestMemory.
GuestMemoryMapping ๐Ÿ”’
Direct linear mapping of sparse guest memory.
GuestMemoryShadowMapping ๐Ÿ”’
Copy of sparse guest memory that is written back upon destruction.
HostMemoryMapper ๐Ÿ”’
Provides the ability to map host memory into the guest physical address space. Used to implement VirtioMediaHostMemoryMapper.
WaitContextPoller ๐Ÿ”’
Newtype to implement SessionPoller on Rc<WaitContext<Token>>.
Worker ๐Ÿ”’
Worker to operate a virtio-media device inside a worker thread.

Enumsยง

GuestMemoryChunk ๐Ÿ”’
A chunk of guest memory which can be either directly mapped, or copied into a shadow buffer.
Token ๐Ÿ”’

Constantsยง

HOST_MAPPER_RANGE ๐Ÿ”’

Functionsยง

create_virtio_media_decoder_adapter_device
Create a decoder adapter device.
create_virtio_media_simple_capture_device
Create a simple media capture device.
create_virtio_media_v4l2_proxy_device
Create a proxy device for a host V4L2 device.