spdl.io¶
Implements the core I/O functionalities.
Functions
async_convert_array¶
Async version of |
async_convert_frames¶
Async version of |
async_decode_image_nvjpeg¶
[Experimental] Async version of |
async_decode_packets¶
Async version of |
async_decode_packets_nvdec¶
[Experimental] Async version of |
async_demux_audio¶
Async version of |
async_demux_image¶
Async version of |
async_demux_video¶
Async version of |
async_encode_image¶
Async version of |
async_load_audio¶
Async version of |
async_load_image¶
Async version of |
async_load_image_batch¶
Batch load images. |
async_load_image_batch_nvdec¶
[Experimental] Batch load images with NVDEC. |
async_load_image_batch_nvjpeg¶
[Experimental] Async version of |
async_load_video¶
Async version of |
async_sample_decode_video¶
Decode specified frames from the packets. |
async_streaming_decode_packets¶
Async version of |
async_transfer_buffer¶
Async version of |
async_transfer_buffer_cpu¶
Async version of |
convert_array¶
Convert the given array to buffer. |
convert_frames¶
Convert the decoded frames to buffer. |
cpu_storage¶
Allocate a block of memory. |
cuda_config¶
Sprcify the CUDA device and memory management. |
decode_config¶
Customize decoding behavior. |
decode_image_nvjpeg¶
[Experimental] Decode image with nvJPEG. |
decode_packets¶
Decode packets. |
decode_packets_nvdec¶
[Experimental] Decode packets with NVDEC. |
demux_audio¶
Demux audio from the source. |
demux_config¶
Customize demuxing behavior. |
demux_image¶
Demux image from the source. |
demux_video¶
Demux video from the source. |
encode_config¶
Customize encoding behavior. |
encode_image¶
Save the given image array/tensor to file. |
get_audio_filter_desc¶
Construct FFmpeg filter expression for preprocessing audio. |
get_filter_desc¶
Get the filter to process the given packets. |
get_video_filter_desc¶
Construct FFmpeg filter expression for preprocessing video/image. |
load_audio¶
Load audio from source into buffer. |
load_image¶
Load image from source into buffer. |
load_image_batch_nvjpeg¶
[Experimental] Batch load images with nvJPEG. |
load_video¶
Load video from source into buffer. |
run_async¶
Run the given synchronous function asynchronously (in a thread). |
sample_decode_video¶
Synchronous version of |
streaming_decode_packets¶
Decode the video packets chunk by chunk. |
to_jax¶
Convert to JAX Array. |
to_numba¶
Convert to Numba DeviceNDArray or NumPy NDArray. |
to_numpy¶
Convert to NumPy NDArray. |
to_torch¶
Convert to PyTorch Tensor. |
transfer_buffer¶
Move the given CPU buffer to CUDA device. |
transfer_buffer_cpu¶
Move the given CUDA buffer to CPU. |
Classes
AudioFrames¶
Audio frames. |
AudioPackets¶
Packets object containing audio samples. |
CPUBuffer¶
Buffer implements array interface. |
CPUStorage¶
Allocate a block of CPU memory. |
CUDABuffer¶
CUDABuffer implements CUDA array interface. |
CUDAConfig¶
Specify the CUDA devie and memory management. |
DecodeConfig¶
Decode configuration. |
DemuxConfig¶
Demux configuration. |
Demuxer¶
Demuxer can demux audio, video and image from the soure. |
EncodeConfig¶
Encode configuration. |
Frames¶
Frames object. |
ImageFrames¶
Image frames. |
ImagePackets¶
Packets object contain an image frame. |
Packets¶
Packets object. |
VideoFrames¶
Video frames. |
VideoPackets¶
Packets object containing video frames. |