Expose selected decoder plugin and backend per decoded sample
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Facilidade para iniciantes
- 38/100
- Tipo de issue
- Funcionalidade
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Domínio
- backend-api-design
Direção de pesquisa
Start by reading the generic decoder API around nvimgcodecDecoderDecode, nvimgcodecFutureGetProcessingStatus, and nvimgcodecExecutionParams_t, then compare the Python get_decoder_ids() API and the cuCIM workaround described in the issue. Define how per-sample plugin and backend provenance, fallback information, and results after completion should fit the C and Python APIs. Done means callers can query those details for successful and failed samples while preserving generic per-sample dispatch.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Request
Please expose the decoder plugin identifier and backend kind that actually handled each sample submitted through the generic decoder API.
Motivation
Applications that audit heterogeneous decode pipelines need to distinguish GPU-only, hybrid CPU/GPU, and CPU fallback execution without inferring it from the codec, output buffer, or installed extensions. The generic decoder can fall through registered implementations in priority order, and a batch can contain per-sample choices.
Current API boundary
With nvImageCodec 0.9, nvimgcodecDecoderDecode plus nvimgcodecFutureGetProcessingStatus reports only processing status. nvimgcodecExecutionParams_t::backends can constrain backend kinds, but the selected nvimgcodecDecoderDesc_t::id and backend_kind are not returned.
Current documentation also provides plugin enumeration/selection (get_decoder_ids() in Python and plugin selections/framework queries in the newer C API), which is useful for configuration but still does not identify the implementation selected after generic fallback.
Suggested shape
A future/result query returning, for each submitted sample:
- selected decoder plugin ID;
- selected backend kind;
- whether fallback occurred (and optionally rejected candidates/statuses).
The query should remain valid after the decode completes and should work for both success and failure. An equivalent Python result/property would be useful.
Workaround and limitation
cuCIM can create separate generic decoders restricted to one backend kind and probe/decode in an explicit order. That provides truthful backend provenance but changes selection to a caller policy, cannot identify the plugin within that backend, and cannot preserve arbitrary per-sample mixed-backend dispatch in a single batch.
- Linguagem predominante
- Jupyter Notebook
- Estrelas
- 164
- Forks
- 26
- Merge médio
- 27min
- PRs com merge (30d)
- 1
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de NVIDIA/nvImageCodec
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 79/100
NVIDIA/nvImageCodec#65 · 1 comentário ·
-
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 72/100
NVIDIA/nvImageCodec#66 · 1 comentário ·
-
nvjpeg2k error 3 (Bad jpeg) on valid JPEG 2000 aerial photos that OpenJPEG and ffmpeg decode identicallyTalvez já em andamento @mkepa-nv assumiu há 6 dias. Abertabug
NVIDIA/nvImageCodec#63 · 2 comentários · 1 responsável ·
-
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 8/100
NVIDIA/nvImageCodec#60 ·
-
enhancement
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 35/100
NVIDIA/nvImageCodec#59 ·
Todas as issues de NVIDIA/nvImageCodec
Issues semelhantes
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
jupyterlite/jupyterlite#2111 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
databricks/databricks-sql-python#1034 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
Mantenedores costumam responder em até 3 dias
-
Markdown and Astro language servers do not start when the project path contains a non-ASCII character or a spaceTalvez já em andamento @RoiSoleil assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
eclipse-wildwebdeveloper/wildwebdeveloper#2277 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 77/100
tauri-apps/plugins-workspace#3780 ·
Mantenedores costumam responder em até 3 dias