spdl.io.decode_image_nvjpeg¶
- decode_image_nvjpeg(src: str | bytes, *, device_config: CUDAConfig | None = None, **kwargs) CUDABuffer [source]¶
[Experimental] Decode image with nvJPEG.
Warning
This API is exmperimental. The performance is not probed, and the specification might change.
Note
Unlike FFmpeg-based decoding, nvJPEG returns GPU buffer directly.
- Parameters:
- Returns:
A CUDABuffer object. Shape is
[C==3, H, W]
.