Documentation - Use custom rocm-docs-core footer, header, and stylesheets for doxysphinx (#191)
[ROCm/rocdecode commit: 3c5cf5ecba]
此提交包含在:
+34
-14
@@ -11,55 +11,65 @@ rocDecode is a high performance video decode SDK for AMD GPUs. rocDecode API let
|
|||||||
## Prerequisites
|
## Prerequisites
|
||||||
|
|
||||||
* Linux distribution
|
* Linux distribution
|
||||||
+ Ubuntu - `20.04` / `22.04`
|
* Ubuntu - `20.04` / `22.04`
|
||||||
+ RHEL - `8` / `9`
|
* RHEL - `8` / `9`
|
||||||
+ SLES - `15-SP4`
|
* SLES - `15-SP4`
|
||||||
|
|
||||||
* [ROCm supported hardware](https://rocm.docs.amd.com/projects/install-on-linux/en/latest/reference/system-requirements.html)
|
* [ROCm supported hardware](https://rocm.docs.amd.com/projects/install-on-linux/en/latest/reference/system-requirements.html)
|
||||||
+ **NOTE:** `gfx908` or higher required
|
* **NOTE:** `gfx908` or higher required
|
||||||
|
|
||||||
* Install ROCm `6.1.0` or later with [amdgpu-install](https://rocm.docs.amd.com/projects/install-on-linux/en/latest/how-to/amdgpu-install.html) with `--usecase=multimediasdk,rocm --no-32`
|
* Install ROCm `6.1.0` or later with [amdgpu-install](https://rocm.docs.amd.com/projects/install-on-linux/en/latest/how-to/amdgpu-install.html) with `--usecase=multimediasdk,rocm --no-32`
|
||||||
+ **NOTE:** To install rocdecode with minimum requirements follow instructions [here](https://github.com/ROCm/rocDecode/wiki#how-can-i-install-rocdecode-runtime-with-minimum-requirements)
|
* **NOTE:** To install rocdecode with minimum requirements follow instructions [here](https://github.com/ROCm/rocDecode/wiki#how-can-i-install-rocdecode-runtime-with-minimum-requirements)
|
||||||
|
|
||||||
### To build from source
|
### To build from source
|
||||||
|
|
||||||
* CMake `3.5` or later
|
* CMake `3.5` or later
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
sudo apt install cmake
|
sudo apt install cmake
|
||||||
```
|
```
|
||||||
|
|
||||||
* [pkg-config](https://en.wikipedia.org/wiki/Pkg-config)
|
* [pkg-config](https://en.wikipedia.org/wiki/Pkg-config)
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
sudo apt install pkg-config
|
sudo apt install pkg-config
|
||||||
```
|
```
|
||||||
|
|
||||||
* [FFMPEG](https://ffmpeg.org/about.html) runtime and headers - for tests and samples
|
* [FFMPEG](https://ffmpeg.org/about.html) runtime and headers - for tests and samples
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
sudo apt install ffmpeg libavcodec-dev libavformat-dev libavutil-dev
|
sudo apt install ffmpeg libavcodec-dev libavformat-dev libavutil-dev
|
||||||
```
|
```
|
||||||
|
|
||||||
**NOTE:**
|
**NOTE:**
|
||||||
|
|
||||||
* All package install shown with `apt` package manager, use appropriate package manager depending on the OS.
|
* All package install shown with `apt` package manager, use appropriate package manager depending on the OS.
|
||||||
|
|
||||||
* Ubuntu 22.04 - Install `libstdc++-12-dev`
|
* Ubuntu 22.04 - Install `libstdc++-12-dev`
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
sudo apt install libstdc++-12-dev
|
sudo apt install libstdc++-12-dev
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Prerequisites setup script for Linux
|
#### Prerequisites setup script for Linux
|
||||||
|
|
||||||
For the convenience of the developer, we provide the setup script [rocDecode-setup.py](rocDecode-setup.py) which will install all the dependencies required by this project.
|
For the convenience of the developer, we provide the setup script [rocDecode-setup.py](rocDecode-setup.py) which will install all the dependencies required by this project.
|
||||||
|
|
||||||
**Usage:**
|
**Usage:**
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
python rocDecode-setup.py --rocm_path [ ROCm Installation Path - optional (default:/opt/rocm)]
|
python rocDecode-setup.py --rocm_path [ ROCm Installation Path - optional (default:/opt/rocm)]
|
||||||
--developer [ Setup Developer Options - optional (default:ON) [options:ON/OFF]]
|
--developer [ Setup Developer Options - optional (default:ON) [options:ON/OFF]]
|
||||||
```
|
```
|
||||||
|
|
||||||
**NOTE:** This script only needs to be executed once.
|
**NOTE:** This script only needs to be executed once.
|
||||||
|
|
||||||
## Build and install instructions
|
## Build and install instructions
|
||||||
|
|
||||||
### Package install
|
### Package install
|
||||||
|
|
||||||
Install rocDecode runtime, development, and test packages.
|
Install rocDecode runtime, development, and test packages.
|
||||||
|
|
||||||
* Runtime package - `rocdecode` only provides the rocdecode library `librocdecode.so`
|
* Runtime package - `rocdecode` only provides the rocdecode library `librocdecode.so`
|
||||||
* Development package - `rocdecode-dev`/`rocdecode-devel` provides the library, header files, and samples
|
* Development package - `rocdecode-dev`/`rocdecode-devel` provides the library, header files, and samples
|
||||||
* Test package - `rocdecode-test` provides ctest to verify installation
|
* Test package - `rocdecode-test` provides ctest to verify installation
|
||||||
@@ -67,14 +77,19 @@ Install rocDecode runtime, development, and test packages.
|
|||||||
**NOTE:** Package install will auto install all dependencies.
|
**NOTE:** Package install will auto install all dependencies.
|
||||||
|
|
||||||
#### Ubuntu
|
#### Ubuntu
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
sudo apt install rocdecode rocdecode-dev rocdecode-test
|
sudo apt install rocdecode rocdecode-dev rocdecode-test
|
||||||
```
|
```
|
||||||
|
|
||||||
#### RHEL
|
#### RHEL
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
sudo yum install rocdecode rocdecode-devel rocdecode-test
|
sudo yum install rocdecode rocdecode-devel rocdecode-test
|
||||||
```
|
```
|
||||||
|
|
||||||
#### SLES
|
#### SLES
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
sudo zypper install rocdecode rocdecode-devel rocdecode-test
|
sudo zypper install rocdecode rocdecode-devel rocdecode-test
|
||||||
```
|
```
|
||||||
@@ -95,6 +110,7 @@ sudo make install
|
|||||||
```shell
|
```shell
|
||||||
make test
|
make test
|
||||||
```
|
```
|
||||||
|
|
||||||
**NOTE:** run tests with verbose option `make test ARGS="-VV"`
|
**NOTE:** run tests with verbose option `make test ARGS="-VV"`
|
||||||
|
|
||||||
* make package
|
* make package
|
||||||
@@ -141,11 +157,13 @@ The tool provides a few samples to decode videos [here](samples/). Please refer
|
|||||||
|
|
||||||
* [FFMPEG](https://ffmpeg.org/about.html) - required to run sample applications & make test
|
* [FFMPEG](https://ffmpeg.org/about.html) - required to run sample applications & make test
|
||||||
|
|
||||||
* On `Ubuntu`
|
* On `Ubuntu`
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
sudo apt install ffmpeg libavcodec-dev libavformat-dev libavutil-dev
|
sudo apt install ffmpeg libavcodec-dev libavformat-dev libavutil-dev
|
||||||
```
|
```
|
||||||
* On `RHEL`/`SLES` - install ffmpeg development packages manually or use `rocDecode-setup.py` script
|
|
||||||
|
* On `RHEL`/`SLES` - install ffmpeg development packages manually or use `rocDecode-setup.py` script
|
||||||
|
|
||||||
## Docker
|
## Docker
|
||||||
|
|
||||||
@@ -156,6 +174,7 @@ Docker files to build rocDecode containers are available [here](docker/)
|
|||||||
Run the steps below to build documentation locally.
|
Run the steps below to build documentation locally.
|
||||||
|
|
||||||
* Sphinx
|
* Sphinx
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
cd docs
|
cd docs
|
||||||
pip3 install -r sphinx/requirements.txt
|
pip3 install -r sphinx/requirements.txt
|
||||||
@@ -163,6 +182,7 @@ python3 -m sphinx -T -E -b html -d _build/doctrees -D language=en . _build/html
|
|||||||
```
|
```
|
||||||
|
|
||||||
* Doxygen
|
* Doxygen
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
doxygen .Doxyfile
|
doxygen .Doxyfile
|
||||||
```
|
```
|
||||||
@@ -170,11 +190,11 @@ doxygen .Doxyfile
|
|||||||
## Tested configurations
|
## Tested configurations
|
||||||
|
|
||||||
* Linux distribution
|
* Linux distribution
|
||||||
* Ubuntu - `20.04` / `22.04`
|
* Ubuntu - `20.04` / `22.04`
|
||||||
* RHEL - `8` / `9`
|
* RHEL - `8` / `9`
|
||||||
* SLES - `15-SP4`
|
* SLES - `15-SP4`
|
||||||
* ROCm:
|
* ROCm:
|
||||||
* rocm-core - `5.6.1.50601-93`
|
* rocm-core - `5.6.1.50601-93`
|
||||||
* amdgpu-core - `1:5.6.50601-1649308`
|
* amdgpu-core - `1:5.6.50601-1649308`
|
||||||
* FFMPEG - `4.2.7` / `4.4.2-0`
|
* FFMPEG - `4.2.7` / `4.4.2-0`
|
||||||
* rocDecode Setup Script - `V1.4`
|
* rocDecode Setup Script - `V1.4`
|
||||||
|
|||||||
@@ -1317,7 +1317,7 @@ HTML_FILE_EXTENSION = .html
|
|||||||
# of the possible markers and block names see the documentation.
|
# of the possible markers and block names see the documentation.
|
||||||
# This tag requires that the tag GENERATE_HTML is set to YES.
|
# This tag requires that the tag GENERATE_HTML is set to YES.
|
||||||
|
|
||||||
HTML_HEADER =
|
HTML_HEADER = ../_doxygen/header.html
|
||||||
|
|
||||||
# The HTML_FOOTER tag can be used to specify a user-defined HTML footer for each
|
# The HTML_FOOTER tag can be used to specify a user-defined HTML footer for each
|
||||||
# generated HTML page. If the tag is left blank doxygen will generate a standard
|
# generated HTML page. If the tag is left blank doxygen will generate a standard
|
||||||
@@ -1327,7 +1327,7 @@ HTML_HEADER =
|
|||||||
# that doxygen normally uses.
|
# that doxygen normally uses.
|
||||||
# This tag requires that the tag GENERATE_HTML is set to YES.
|
# This tag requires that the tag GENERATE_HTML is set to YES.
|
||||||
|
|
||||||
HTML_FOOTER =
|
HTML_FOOTER = ../_doxygen/footer.html
|
||||||
|
|
||||||
# The HTML_STYLESHEET tag can be used to specify a user-defined cascading style
|
# The HTML_STYLESHEET tag can be used to specify a user-defined cascading style
|
||||||
# sheet that is used by each HTML page. It can be used to fine-tune the look of
|
# sheet that is used by each HTML page. It can be used to fine-tune the look of
|
||||||
@@ -1339,7 +1339,7 @@ HTML_FOOTER =
|
|||||||
# obsolete.
|
# obsolete.
|
||||||
# This tag requires that the tag GENERATE_HTML is set to YES.
|
# This tag requires that the tag GENERATE_HTML is set to YES.
|
||||||
|
|
||||||
HTML_STYLESHEET =
|
HTML_STYLESHEET = ../_doxygen/stylesheet.css
|
||||||
|
|
||||||
# The HTML_EXTRA_STYLESHEET tag can be used to specify additional user-defined
|
# The HTML_EXTRA_STYLESHEET tag can be used to specify additional user-defined
|
||||||
# cascading style sheets that are included after the standard style sheets
|
# cascading style sheets that are included after the standard style sheets
|
||||||
@@ -1357,7 +1357,7 @@ HTML_STYLESHEET =
|
|||||||
# documentation.
|
# documentation.
|
||||||
# This tag requires that the tag GENERATE_HTML is set to YES.
|
# This tag requires that the tag GENERATE_HTML is set to YES.
|
||||||
|
|
||||||
HTML_EXTRA_STYLESHEET =
|
HTML_EXTRA_STYLESHEET = ../_doxygen/extra_stylesheet.css
|
||||||
|
|
||||||
# The HTML_EXTRA_FILES tag can be used to specify one or more extra images or
|
# The HTML_EXTRA_FILES tag can be used to specify one or more extra images or
|
||||||
# other source files which should be copied to the HTML output directory. Note
|
# other source files which should be copied to the HTML output directory. Note
|
||||||
|
|||||||
新增問題並參考
封鎖使用者