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.

  • widthOptional: Resize the frame.

  • heightOptional: Resize the frame.

  • pix_fmtOptional: Change the format of the pixel.

  • strictOptional: If True, raise an error if any of the images failed to load.

Returns:

A buffer object.