Expose selected decoder plugin and backend per decoded sample
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 38/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Domain
- backend-api-design
Research direction
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.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- Jupyter Notebook
- Stars
- 164
- Forks
- 26
- Avg merge
- 27m
- Merged PRs (30d)
- 1
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from NVIDIA/nvImageCodec
-
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
NVIDIA/nvImageCodec#65 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 72/100
NVIDIA/nvImageCodec#66 · 1 comment ·
-
nvjpeg2k error 3 (Bad jpeg) on valid JPEG 2000 aerial photos that OpenJPEG and ffmpeg decode identicallyPossibly taken @mkepa-nv claimed this 7 days ago. Openbug
NVIDIA/nvImageCodec#63 · 2 comments · 1 assignee ·
-
Experimental small-batch CUDA baseline JPEG decoding corePossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 5/5 Over a week Newbie friendliness 8/100
NVIDIA/nvImageCodec#60 ·
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 35/100
NVIDIA/nvImageCodec#59 ·
All issues in NVIDIA/nvImageCodec
Similar issues
-
changelog investigate
Difficulty 1/5 Under an hour Newbie friendliness 85/100
ramnes/notion-sdk-py#454 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
anthropics/claude-agent-sdk-python#1509 ·
Maintainers usually reply within 2 days
-
from-review-extraction priority: medium python severity:suggested
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
LearningCircuit/local-deep-research#8665 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
external feature request openai
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
langchain-ai/langchain#41853 ·
Maintainers usually reply within 1 day