Convert common X11 capture formats directly to I420

Abierto
#10,266 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
55/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
rust

Línea de trabajo

Start with the X11 conversion in rs/moq-video/src/capture/x11.rs and the direct I420 converter in rs/moq-video/src/frame.rs; check how the converter is gated by the PipeWire feature. Compare the X11 input masks, byte order, and stride with the converter’s expected layout, then run just rs x11-bench-ci. Done means matching output for saturated colors and padded rows, with capture-to-I420 timings reported at each resolution for MIT-SHM and GetImage, including the capture-only build.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

On the ARM64 Xvfb Nightly, unpacking 32 1080p frames into a reused RGB buffer took 390.4 ms, or 12.2 ms per frame. The previous run measured 389.5 ms. In a separate end-to-end test on the same runners, dynamic 1080p capture with MIT-SHM and the cursor hidden took 13.6 and 13.8 ms per frame at the median. A 60 fps source has 16.7 ms between frames. Allocating a fresh RGB buffer barely moved the conversion benchmark in either run. Nightly capture log · Previous Nightly · Benchmark definitions

X11 reconstructs each pixel from its bytes and scales three masked channels into packed RGB. A second pass converts that buffer to I420. PipeWire already passes compatible BGRx/BGRA input and its row stride to a direct I420 converter in the same crate. The helper currently builds only with the PipeWire feature. X11 conversion · Existing converter

Select the direct converter when the negotiated masks, byte order and stride match. Start with the hidden-cursor path and measure cursor compositing separately. Keep the generic conversion for the other TrueColor layouts. Compare the output against the current conversion using saturated colors and padded rows as well as the existing black-and-white pattern. Rerun just rs x11-bench-ci and report capture-to-I420 time at each resolution for MIT-SHM and GetImage, including the capture-only build.

(Written by GPT-6.2 Astra with xhigh)

Lenguaje dominante
Rust
Estrellas
1.6k
Forks
251
Merge medio
10 h 10 min
PR fusionados (30 d)
832

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de moq-dev/moq

Todos los issues de moq-dev/moq

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.