.. Custom template for our custom_autosummary. The purpose of using custom_autosummary is list the entries on the right side bar instead of the left side bar. This is achieved with the combination of custom directive, template and CSS. The `custom_autosummary` directive functions mostly like `autosummary`. We pass `:toctree:` option to generate a doc page for each entry, but we use our custom `:hide_from_toctree:` option so as not to attach them in ToC tree. This template inserts a section header for each entry, so that they show up in the right-side bar. The headers are hidden by CSS. Because each entry will have its own table and their borders no longer match, table borders are hidden by CSS and instead we use horizontal line. .. raw:: html
spdl.io ======= Overview -------- .. automodule:: spdl.io API Reference ------------- .. ############################################################################ Functions ############################################################################ .. rubric:: Functions load\_audio ^^^^^^^^^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: ~spdl.io.load_audio load\_video ^^^^^^^^^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: ~spdl.io.load_video load\_image ^^^^^^^^^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: ~spdl.io.load_image save\_image ^^^^^^^^^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: ~spdl.io.save_image load\_image\_batch ^^^^^^^^^^^^^^^^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: ~spdl.io.load_image_batch load\_image\_batch\_nvjpeg ^^^^^^^^^^^^^^^^^^^^^^^^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: ~spdl.io.load_image_batch_nvjpeg streaming\_load\_video\_nvdec ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: ~spdl.io.streaming_load_video_nvdec sample\_decode\_video ^^^^^^^^^^^^^^^^^^^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: ~spdl.io.sample_decode_video load\_wav ^^^^^^^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: ~spdl.io.load_wav iter\_tarfile ^^^^^^^^^^^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: ~spdl.io.iter_tarfile load\_npy ^^^^^^^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: ~spdl.io.load_npy load\_npz ^^^^^^^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: ~spdl.io.load_npz demux\_audio ^^^^^^^^^^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: ~spdl.io.demux_audio demux\_video ^^^^^^^^^^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: ~spdl.io.demux_video demux\_image ^^^^^^^^^^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: ~spdl.io.demux_image apply\_bsf ^^^^^^^^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: ~spdl.io.apply_bsf Decoder ^^^^^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: ~spdl.io.Decoder decode\_packets ^^^^^^^^^^^^^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: ~spdl.io.decode_packets decode\_packets\_nvdec ^^^^^^^^^^^^^^^^^^^^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: ~spdl.io.decode_packets_nvdec decode\_image\_nvjpeg ^^^^^^^^^^^^^^^^^^^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: ~spdl.io.decode_image_nvjpeg nvdec\_decoder ^^^^^^^^^^^^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: ~spdl.io.nvdec_decoder convert\_array ^^^^^^^^^^^^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: ~spdl.io.convert_array convert\_frames ^^^^^^^^^^^^^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: ~spdl.io.convert_frames transfer\_buffer ^^^^^^^^^^^^^^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: ~spdl.io.transfer_buffer transfer\_buffer\_cpu ^^^^^^^^^^^^^^^^^^^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: ~spdl.io.transfer_buffer_cpu nv12\_to\_rgb ^^^^^^^^^^^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: ~spdl.io.nv12_to_rgb nv12\_to\_bgr ^^^^^^^^^^^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: ~spdl.io.nv12_to_bgr encode\_image ^^^^^^^^^^^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: ~spdl.io.encode_image create\_reference\_audio\_frame ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: ~spdl.io.create_reference_audio_frame create\_reference\_video\_frame ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: ~spdl.io.create_reference_video_frame to\_numba ^^^^^^^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: ~spdl.io.to_numba to\_numpy ^^^^^^^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: ~spdl.io.to_numpy to\_torch ^^^^^^^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: ~spdl.io.to_torch to\_jax ^^^^^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: ~spdl.io.to_jax get\_audio\_filter\_desc ^^^^^^^^^^^^^^^^^^^^^^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: ~spdl.io.get_audio_filter_desc get\_video\_filter\_desc ^^^^^^^^^^^^^^^^^^^^^^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: ~spdl.io.get_video_filter_desc get\_filter\_desc ^^^^^^^^^^^^^^^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: ~spdl.io.get_filter_desc get\_abuffer\_desc ^^^^^^^^^^^^^^^^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: ~spdl.io.get_abuffer_desc get\_buffer\_desc ^^^^^^^^^^^^^^^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: ~spdl.io.get_buffer_desc transfer\_tensor ^^^^^^^^^^^^^^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: ~spdl.io.transfer_tensor demux\_config ^^^^^^^^^^^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: ~spdl.io.demux_config decode\_config ^^^^^^^^^^^^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: ~spdl.io.decode_config video\_encode\_config ^^^^^^^^^^^^^^^^^^^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: ~spdl.io.video_encode_config audio\_encode\_config ^^^^^^^^^^^^^^^^^^^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: ~spdl.io.audio_encode_config cuda\_config ^^^^^^^^^^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: ~spdl.io.cuda_config cpu\_storage ^^^^^^^^^^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: ~spdl.io.cpu_storage .. ############################################################################ Attributes ############################################################################ .. ############################################################################ Classes ############################################################################ .. rubric:: Classes NpzFile ^^^^^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: :template: _custom_autosummary_class.rst ~spdl.io.NpzFile Demuxer ^^^^^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: :template: _custom_autosummary_class.rst ~spdl.io.Demuxer BSF ^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: :template: _custom_autosummary_class.rst ~spdl.io.BSF NvDecDecoder ^^^^^^^^^^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: :template: _custom_autosummary_class.rst ~spdl.io.NvDecDecoder Muxer ^^^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: :template: _custom_autosummary_class.rst ~spdl.io.Muxer ArrayInterface ^^^^^^^^^^^^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: :template: _custom_autosummary_class.rst ~spdl.io.ArrayInterface CUDAArrayInterface ^^^^^^^^^^^^^^^^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: :template: _custom_autosummary_class.rst ~spdl.io.CUDAArrayInterface CPUStorage ^^^^^^^^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: :template: _custom_autosummary_class.rst ~spdl.io.CPUStorage CPUBuffer ^^^^^^^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: :template: _custom_autosummary_class.rst ~spdl.io.CPUBuffer AudioCodec ^^^^^^^^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: :template: _custom_autosummary_class.rst ~spdl.io.AudioCodec VideoCodec ^^^^^^^^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: :template: _custom_autosummary_class.rst ~spdl.io.VideoCodec ImageCodec ^^^^^^^^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: :template: _custom_autosummary_class.rst ~spdl.io.ImageCodec AudioPackets ^^^^^^^^^^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: :template: _custom_autosummary_class.rst ~spdl.io.AudioPackets VideoPackets ^^^^^^^^^^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: :template: _custom_autosummary_class.rst ~spdl.io.VideoPackets ImagePackets ^^^^^^^^^^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: :template: _custom_autosummary_class.rst ~spdl.io.ImagePackets AudioFrames ^^^^^^^^^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: :template: _custom_autosummary_class.rst ~spdl.io.AudioFrames VideoFrames ^^^^^^^^^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: :template: _custom_autosummary_class.rst ~spdl.io.VideoFrames ImageFrames ^^^^^^^^^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: :template: _custom_autosummary_class.rst ~spdl.io.ImageFrames AudioEncoder ^^^^^^^^^^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: :template: _custom_autosummary_class.rst ~spdl.io.AudioEncoder VideoEncoder ^^^^^^^^^^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: :template: _custom_autosummary_class.rst ~spdl.io.VideoEncoder AudioDecoder ^^^^^^^^^^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: :template: _custom_autosummary_class.rst ~spdl.io.AudioDecoder VideoDecoder ^^^^^^^^^^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: :template: _custom_autosummary_class.rst ~spdl.io.VideoDecoder ImageDecoder ^^^^^^^^^^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: :template: _custom_autosummary_class.rst ~spdl.io.ImageDecoder FilterGraph ^^^^^^^^^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: :template: _custom_autosummary_class.rst ~spdl.io.FilterGraph DemuxConfig ^^^^^^^^^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: :template: _custom_autosummary_class.rst ~spdl.io.DemuxConfig DecodeConfig ^^^^^^^^^^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: :template: _custom_autosummary_class.rst ~spdl.io.DecodeConfig VideoEncodeConfig ^^^^^^^^^^^^^^^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: :template: _custom_autosummary_class.rst ~spdl.io.VideoEncodeConfig AudioEncodeConfig ^^^^^^^^^^^^^^^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: :template: _custom_autosummary_class.rst ~spdl.io.AudioEncodeConfig CUDABuffer ^^^^^^^^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: :template: _custom_autosummary_class.rst ~spdl.io.CUDABuffer CUDAConfig ^^^^^^^^^^ .. autosummary:: :toctree: :nosignatures: :hide_from_toctree: :template: _custom_autosummary_class.rst ~spdl.io.CUDAConfig .. ############################################################################ Exceptions ############################################################################ .. ############################################################################ Sub modules ############################################################################ .. ############################################################################ Others ############################################################################ .. raw:: html