Convert common X11 capture formats directly to I420

オープン
#10,266 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
55/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
rust

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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)

主要言語
Rust
スター
1.6k
フォーク
251
平均マージ
10時間 10分
マージ済み PR(30日)
832

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

moq-dev/moq のほかの issue

moq-dev/moq の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。