spdl.io.load_image

load_image(src: str | bytes, *, demux_config: DemuxConfig | None = None, decode_config: DecodeConfig | None = None, filter_desc: str | None = _FILTER_DESC_DEFAULT, device_config: None = None, **kwargs) CPUBuffer[source]
load_image(src: str | bytes, *, demux_config: DemuxConfig | None = None, decode_config: DecodeConfig | None = None, filter_desc: str | None = _FILTER_DESC_DEFAULT, device_config: CUDABuffer, **kwargs) CUDABuffer

Load image from source into buffer.

This function combines demux_image(), decode_packets(), convert_frames(), and optionally, transfer_buffer(), to produce buffer object from source in one step.

Parameters:
Returns:

Buffer object.