Add zero-copy camera pipeline sample using NDK Camera2 and OpenGL ES
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- android, cpp
調査の方向性
android/ndk-samples にある既存のカメラサンプルを確認し、issue にリンクされているスタンドアロンの zerostallcam プロトタイプと比較してください。まず、リポジトリの Gradle、CMake、ドキュメント、および Google CLA の規約を確認してください。提案されているカメラから OpenGL ES への zero-copy パイプラインを実証し、これらのプロジェクト規約に準拠する自己完結型サンプルがあれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Hi NDK Team,
I would like to propose adding a new sample demonstrating a high-performance, zero-copy camera rendering pipeline using the NDK camera2 APIs, AImageReader, and OpenGL ES.
Motivation
While the existing camera sample effectively demonstrates basic Native Camera2 usage, developers frequently face bottlenecks when attempting low-latency preview rendering, zero-copy frame processing, and synchronization between camera capture streams and the rendering thread.
What the Sample Demonstrates
- Zero-Copy Architecture: Leveraging native buffers (AHardwareBuffer / AImageReader) with OpenGL ES external textures (GL_OES_EGL_image_external) to avoid CPU-memory copy overhead.
- Low-Latency Rendering: Clean separation of camera capture threads and rendering loops using standard Android NDK synchronization primitives.
- Modern Best Practices: Minimal overhead, leak-free buffer recycling, and lifecycle-aware lifecycle management purely in C++ and NDK.
I have already implemented a working prototype in a standalone repository:
https://github.com/MohammadNouri5700/zerostallcam
Question
Would the maintainers be open to accepting this as a new standalone sample in android/ndk-samples?
If so, I am ready to refactor the project to strictly align with this repository's structure, Gradle/CMake conventions, documentation style, and Google CLA requirements before submitting a Pull Request.
Thank you for your time and feedback!
- 主要言語
- C++
- スター
- 10.5k
- フォーク
- 4.2k
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
android/ndk-samples のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
android/ndk-samples#1170 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
android/ndk-samples#1166 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
android/ndk-samples#1094 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
android/ndk-samples#1087 · コメント 4 件 ·
-
resurrect PGO sample再び着手できるかも @DanAlbert が 864 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
android/ndk-samples#1070 · 担当者 1 名 ·
android/ndk-samples の issue をすべて見る
似ている issue
-
difficulty:easy func:python os:windows prio:high type:bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
NatronGitHub/Natron#2029 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
ardazishvili/Sota#114 ·
メンテナーはふだん 1 日以内に返信
-
`Rect::containsPoint` is not `const`, so a `const Rect` cannot be asked whether it holds a pointオープンNeeds: Triage :mag:
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
react/react-native#60349 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100