spdl.io.load_image_batch_nvjpeg¶
- load_image_batch_nvjpeg(srcs: Sequence[str | bytes], *, device_config: CUDAConfig, width: int, height: int, pix_fmt: str = 'rgb', _zero_clear: bool = False) CUDABuffer[source]¶
[Experimental] Batch load images with nvJPEG.
This function decodes images using nvJPEG and resize them with NPP. The input images are processed in sequential manner.
- Parameters:
srcs – Input images.
device_config – The CUDA device to use for decoding images.
width – Optional: Resize the frame.
height – Optional: Resize the frame.
pix_fmt – Optional: Change the format of the pixel.
strict – Optional: If True, raise an error if any of the images failed to load.
- Returns:
A buffer object.