spdl.io.load_image_batch_nvjpeg¶
- load_image_batch_nvjpeg(srcs: list[str | bytes], *, device_config: CUDAConfig, width: int | None, height: int | None, pix_fmt: str | None = 'rgb', **kwargs) 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.