SDV Media requirements

This page describes the hardware, graphics, input, multimedia, and virtualization requirements for implementing SDV Media.

System requirements

The requirements in this section apply to all SDV Media system implementations, whether running directly on hardware (bare metal) or in a virtualized environment.

Memory

The system must provide a minimum of 2 GB of memory per SDV Media instance.

Application binary interfaces

Device implementations:

  • Must be compatible with one or more defined Android NDK ABIs.
  • If multiple OS instances or VM images run on the same device, must use the same Android NDK ABI across all instances.
  • Must be source compatible (for example, header compatible) and binary compatible (for the ABI) with each required library in the following list.
  • Must make all the following libraries, providing native APIs, available to Software Defined Vehicle (SDV) apps:

    • libc (C library)
    • libdl (dynamic linker)
    • libdrm.so (Direct Rendering Manager userspace library)
    • libgbm.so (generic buffer management)
    • libEGL.so (native OpenGL surface management)
    • libGLESv1_CM.so (OpenGL ES 1.x)
    • libGLESv2.so (OpenGL ES 2.0)
    • libGLESv3.so (OpenGL ES 3.x)
    • liblog (Android logging)
    • libtinyalsav2.so (audio recording and playback)
    • libvulkan.so (Vulkan)
  • Must not add or remove the public functions for the preceding native libraries.

  • Must provide hardware-specific or hypervisor-specific implementations strictly through GKI-compliant vendor kernel modules (vendor_boot or vendor_dlkm) and /vendor backends for the standard Linux kernel and userspace APIs on this page (without introducing Android HALs), and must not modify /system, /system_ext, or /product partitions or override system or product APEX packages from /vendor.

  • Must export all the OpenGL ES 3.1 and Android Extension Pack function symbols, as defined in the NDK, through the libGLESv3.so library. Note that while all symbols must be present, OpenGL ES describes in more detail the requirements for when the full implementation of each corresponding function is expected.

  • Must export the core Vulkan 1.1 function symbols, as well as the VK_KHR_surface, VK_KHR_swapchain, VK_KHR_maintenance1, and VK_KHR_get_physical_device_properties2 extensions through the libvulkan.so library. Note that while all symbols must be present, Vulkan describes in more detail the requirements for when the full implementation of each corresponding function is expected.

  • Should be built using the source code and header files available in the upstream Android Open Source Project.

Graphics and display

  • Device implementations must expose display pipelines through the standard Linux DRM/KMS kernel interface (/dev/dri/card*, /dev/dri/renderD*) supporting atomic modesetting through libdrm.so.
  • Device implementations must support buffer allocation and zero-copy dma-buf file descriptor import and export through libgbm.so across DRM/KMS, EGL/OpenGL ES, Vulkan, and Video4Linux.
  • If the system runs in a virtualized environment, using virtio-gpu (with gfxstream) for hardware-accelerated graphics and display is strongly recommended.

Input

  • Device implementations must expose input devices through the standard Linux input subsystem (evdev, /dev/input/event*).
  • Device implementations should support pointer, button, and rotary controller inputs.
  • If the system runs in a virtualized environment, forwarding input events from the host system using virtio-input is strongly recommended.

OpenGL ES

Device implementations:

  • Must correctly identify the supported OpenGL ES versions (1.1, 2.0, 3.0, 3.1, 3.2) through the native APIs.
  • Must include support for all corresponding native APIs for every OpenGL ES version they support.
  • Must support both OpenGL ES 1.1 and 2.0.
  • Are strongly recommended to support OpenGL ES 3.1.
  • Should support OpenGL ES 3.2.
  • Must report using the OpenGL ES managed APIs and native APIs any other OpenGL ES extensions they have implemented, and conversely must not report extension strings that they don't support.
  • Must support following extensions:
    • EGL_EXT_image_dma_buf_import
    • EGL_EXT_image_dma_buf_import_modifiers
    • EGL_KHR_fence_sync
    • EGL_KHR_image_base
    • EGL_KHR_wait_sync
    • GL_OES_EGL_image

Device implementations are strongly recommended to implement OpenGL ES using ANGLE library with Vulkan backend.

Vulkan

Device implementations:

  • Are strongly recommended to include support for Vulkan 1.3.
  • Must not support a Vulkan variant version (that is, the variant part of the Vulkan core version must be zero).
  • Must support following extensions:
    • VK_ANDROID_external_memory_android_hardware_buffer
    • VK_EXT_external_memory_dma_buf
    • VK_EXT_queue_family_foreign
    • VK_KHR_external_memory_fd
    • VK_KHR_external_semaphore_fd

Multimedia compatibility

  • Device implementations must allow playback of raw audio content with the following characteristics:

    • Source formats: Linear PCM, 16-bit, 8-bit, float
    • Channels: Mono, stereo, valid multichannel configurations with up to eight channels
    • Sampling rates (in Hz):
      • 8000, 11025, 16000, 22050, 24000, 32000, 44100, 48000 in the channel configurations listed previously
      • 96000 in mono and stereo
  • Device implementations must allow capture of raw audio content. At a minimum, device implementations must support the following characteristics:

    • Format: Linear PCM, 16-bit
    • Sampling rates: 8000, 11025, 16000, 44100, 48000 Hz
    • Channels: Mono
  • Device implementations should allow capture of raw audio content with the following characteristics:

    • Format: Linear PCM, 16-bit and 24-bit
    • Sampling rates: 8000, 11025, 16000, 22050, 24000, 32000, 44100, 48000 Hz
    • Channels: As many channels as the number of microphones on the device
  • Device implementations must provide support for audio playback and capture through the libtinyalsav2.so API backed by standard Linux ALSA API kernel interfaces (/dev/snd/*). If the system runs in a virtualized environment, using virtio-sound for audio hardware access is strongly recommended.

  • Video encoders and decoders must support at least one of a planar or semiplanar YUV420 8:8:8 color format.

  • Video decoders and encoders must support the H.264 AVC codec.

  • Device implementations must support H.264 Main Profile Level 3.1 and Baseline Profile. Support for arbitrary slice ordering (ASO), flexible macroblock ordering (FMO), and redundant slices (RS) is optional.

  • Video encoders:

    • Must support the standard definition (SD) video encoding profiles in the following table.
    • Should support the high definition (HD) video encoding profiles as indicated in the following table.

      SD (low quality) SD (high quality) HD 720p HD 1080p
      Video resolution 320 x 240 px 720 x 480 px 1280 x 720 px 1920 x 1080 px
      Video frame rate 20 fps 30 fps 30 fps 30 fps
      Video bitrate 384 Kbps 2 Mbps 4 Mbps 10 Mbps
  • Video decoders:

    • Must support the HD 720p video decoding profiles in the following table.
    • Must support the HD 1080p video decoding profiles in the following table.

      SD (low quality) SD (high quality) HD 720p HD 1080p
      Video resolution 320 x 240 px 720 x 480 px 1280 x 720 px 1920 x 1080 px
      Video frame rate 30 fps 30 fps 60 fps 30 fps
      Video bitrate 800 Kbps 2 Mbps 8 Mbps 20 Mbps
  • Device implementations must provide support for media codecs, hardware video decoders, hardware video encoders, and video cameras through standard Linux Video4Linux (V4L2) kernel device nodes (/dev/video*) supporting pollable kernel file descriptors and MMAP and DMABUF buffer modes (userspace file-descriptor interception shims must not be used).

  • All hardware-accelerated video and image encoders must support encoding frames from the hardware cameras.

  • If the system runs in a virtualized environment, providing hardware access for video encoding, decoding, and cameras through virtio-media is strongly recommended.

Virtualization and host system

If the system runs in a virtualized environment, the requirements in this section apply to the host system and the hypervisor environment.

Virtualization

  • If the system runs in a virtualized environment, in addition to the VirtIO devices recommended by the core profile, providing the following VirtIO devices on the host system is strongly recommended:
    • virtio-gpu: For virtual GPU and display
    • virtio-input: For forwarding input events (for example, touch, keyboard)
    • virtio-sound: For virtual audio devices
    • virtio-media: For virtual video codec and camera devices

Input

  • If the system runs in a virtualized environment, forwarding input events from the host system to guest systems using virtio-input is strongly recommended.