-
Notifications
You must be signed in to change notification settings - Fork 665
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
153 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
.. | ||
autogenerated from source/_templates/autosummary/torio_io_class.rst | ||
{#- | ||
################################################################################ | ||
# autosummary template for torio.io module | ||
# Since StreamingMediaDecoder/StreamingMediaEncoder have many methods/properties, | ||
# we want to list them up in the table of contents. | ||
# The default class template does not do this, so we use custom one here. | ||
################################################################################ | ||
#} | ||
|
||
{{ name | underline }} | ||
|
||
.. autoclass:: {{ fullname }} | ||
|
||
{%- if attributes %} | ||
|
||
Properties | ||
---------- | ||
|
||
{%- for item in attributes %} | ||
{%- if not item.startswith('_') and item not in inherited_members %} | ||
|
||
{{ item | underline("~") }} | ||
|
||
.. container:: py attribute | ||
|
||
.. autoproperty:: {{[fullname, item] | join('.')}} | ||
|
||
{%- endif %} | ||
{%- endfor %} | ||
{%- endif %} | ||
|
||
{%- if members %} | ||
|
||
Methods | ||
------- | ||
|
||
{%- for item in members %} | ||
{%- if | ||
not item.startswith('_') | ||
and item not in inherited_members | ||
and item not in attributes | ||
%} | ||
|
||
{{ item | underline("~") }} | ||
|
||
.. container:: py attribute | ||
|
||
.. automethod:: {{[fullname, item] | join('.')}} | ||
|
||
{%- endif %} | ||
{%- endfor %} | ||
{%- endif %} | ||
|
||
|
||
{%- if name in ["StreamingMediaDecoder", "StreamingMediaEncoder"] %} | ||
|
||
Support Structures | ||
------------------ | ||
|
||
{%- if name == "StreamingMediaDecoder" %} | ||
{%- for item in [ | ||
"ChunkTensor", | ||
"SourceStream", | ||
"SourceAudioStream", | ||
"SourceVideoStream", | ||
"OutputStream", | ||
"OutputAudioStream", | ||
"OutputVideoStream", | ||
] %} | ||
|
||
{{ item | underline("~") }} | ||
|
||
.. autoclass:: torio.io._streaming_media_decoder::{{item}}() | ||
:members: | ||
|
||
{%- endfor %} | ||
|
||
{%- elif name == "StreamingMediaEncoder" %} | ||
|
||
CodecConfig | ||
~~~~~~~~~~~ | ||
|
||
.. autoclass:: torio.io::CodecConfig | ||
:members: | ||
|
||
{%- endif %} | ||
{%- endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
.. py:module:: torio.io | ||
torio.io | ||
======== | ||
|
||
.. currentmodule:: torio.io | ||
|
||
.. autosummary:: | ||
:toctree: generated | ||
:nosignatures: | ||
:template: autosummary/torio_io_class.rst | ||
|
||
StreamingMediaDecoder | ||
StreamingMediaEncoder | ||
|
||
.. rubric:: Tutorials using ``torio.io`` | ||
|
||
.. minigallery:: torio.io | ||
|
||
.. minigallery:: torchaudio.io |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
.. py:module:: torio | ||
torio | ||
===== | ||
|
||
.. currentmodule:: torio.io | ||
|
||
``torio`` is an alternative top-level module for I/O features. The is the extraction of the core implementation of I/O feature of ``torchaudio``. | ||
|
||
If you want to use the multimedia processing features, but do not want to depend on the entire ``torchaudio`` package, you can use ``torio``. | ||
|
||
.. note:: | ||
|
||
Currently, ``torio`` is distributed alongside ``torchaudio``, and there is no stand-alone | ||
procedure to install ``torio`` only. Please refer to https://pytorch.org/get-started/locally/ | ||
for the installation of ``torchaudio``. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
.. py:module:: torio.utils | ||
torio.utils | ||
=========== | ||
|
||
``torio.utils`` module contains utility functions to query and configure the global state of third party libraries. | ||
|
||
.. currentmodule:: torio.utils | ||
|
||
.. autosummary:: | ||
:toctree: generated | ||
:nosignatures: | ||
:template: autosummary/utils.rst | ||
|
||
ffmpeg_utils |