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.

  • 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.