docs: add doxygen (#1004)

This commit is contained in:
ReenigneArcher
2023-03-07 20:26:03 -05:00
committed by GitHub
parent a1e6f441e4
commit 31885434f2
76 changed files with 3375 additions and 221 deletions

View File

@@ -0,0 +1,85 @@
src
===
We are in process of improving the source code documentation. Code should be documented using Doxygen syntax.
Some examples exist in `main.h` and `main.cpp`. In order for documentation within the code to appear in the
rendered docs, the definition of the object must be in a header file, although the documentation itself can (and
should) be in the source file.
Example Documentation Blocks
----------------------------
**file.h**
.. code-block:: cpp
// functions
int main(int argc, char *argv[]);
**file.cpp** (with markdown)
.. code-block:: cpp
/**
* @brief Main application entry point.
* @param argc The number of arguments.
* @param argv The arguments.
*
* EXAMPLES:
* ```cpp
* main(1, const char* args[] = {"hello", "markdown", nullptr});
* ```
*/
int main(int argc, char *argv[]) {
// do stuff
}
**file.cpp** (with ReStructuredText)
.. code-block:: cpp
/**
* @brief Main application entry point.
* @param argc The number of arguments.
* @param argv The arguments.
* @rst
* EXAMPLES:
*
* .. code-block:: cpp
* main(1, const char* args[] = {"hello", "rst", nullptr});
* @endrst
*/
int main(int argc, char *argv[]) {
// do stuff
}
Code
----
.. toctree::
:maxdepth: 2
:caption: src
src/main
src/audio
src/cbs
src/config
src/confighttp
src/crypto
src/httpcommon
src/input
src/move_by_copy
src/network
src/nvhttp
src/process
src/round_robin
src/rtsp
src/stream
src/sync
src/task_pool
src/thread_pool
src/thread_safe
src/upnp
src/utility
src/uuid
src/video
src/platform

View File

@@ -0,0 +1,4 @@
audio
=====
.. doxygenfile:: audio.h

View File

@@ -0,0 +1,4 @@
cbs
===
.. doxygenfile:: cbs.h

View File

@@ -0,0 +1,4 @@
config
======
.. doxygenfile:: config.h

View File

@@ -0,0 +1,4 @@
confighttp
==========
.. doxygenfile:: confighttp.h

View File

@@ -0,0 +1,4 @@
crypto
======
.. doxygenfile:: crypto.h

View File

@@ -0,0 +1,4 @@
httpcommon
==========
.. doxygenfile:: httpcommon.h

View File

@@ -0,0 +1,4 @@
input
=====
.. doxygenfile:: input.h

View File

@@ -0,0 +1,4 @@
main
====
.. doxygenfile:: main.h

View File

@@ -0,0 +1,4 @@
move_by_copy
============
.. doxygenfile:: move_by_copy.h

View File

@@ -0,0 +1,4 @@
network
=======
.. doxygenfile:: network.h

View File

@@ -0,0 +1,4 @@
nvhttp
======
.. doxygenfile:: nvhttp.h

View File

@@ -0,0 +1,10 @@
platform
========
.. toctree::
:maxdepth: 1
platform/common
platform/linux
platform/macos
platform/windows

View File

@@ -0,0 +1,4 @@
common
======
.. Todo:: Add common.h

View File

@@ -0,0 +1,12 @@
linux
=====
.. toctree::
:maxdepth: 1
linux/cuda
linux/graphics
linux/misc
linux/vaapi
linux/wayland
linux/x11grab

View File

@@ -0,0 +1,4 @@
cuda
====
.. Todo:: Add cuda.h

View File

@@ -0,0 +1,4 @@
graphics
========
.. Todo:: Add graphics.h

View File

@@ -0,0 +1,4 @@
misc
====
.. Todo:: Add misc.h

View File

@@ -0,0 +1,4 @@
vaapi
=====
.. Todo:: Add vaapi.h

View File

@@ -0,0 +1,4 @@
wayland
=======
.. Todo:: Add wayland.h

View File

@@ -0,0 +1,4 @@
x11grab
=======
.. Todo:: Add x11grab.h

View File

@@ -0,0 +1,11 @@
macos
=====
.. toctree::
:maxdepth: 1
macos/av_audio
macos/av_img_t
macos/av_video
macos/misc
macos/nv12_zero_device

View File

@@ -0,0 +1,4 @@
av_audio
========
.. Todo:: Add av_audio.h

View File

@@ -0,0 +1,4 @@
av_img_t
========
.. Todo:: Add av_img_t.h

View File

@@ -0,0 +1,4 @@
av_video
========
.. Todo:: Add av_video.h

View File

@@ -0,0 +1,4 @@
misc
====
.. Todo:: Add misc.h

View File

@@ -0,0 +1,4 @@
nv12_zero_device
================
.. Todo:: Add nv12_zero_device.h

View File

@@ -0,0 +1,9 @@
windows
=======
.. toctree::
:maxdepth: 1
windows/display
windows/misc
windows/PolicyConfig

View File

@@ -0,0 +1,4 @@
PolicyConfig
============
.. Todo:: Add PolicyConfig.h

View File

@@ -0,0 +1,4 @@
display
=======
.. Todo:: Add display.h

View File

@@ -0,0 +1,4 @@
misc
====
.. Todo:: Add misc.h

View File

@@ -0,0 +1,4 @@
process
=======
.. doxygenfile:: process.h

View File

@@ -0,0 +1,4 @@
round_robin
===========
.. doxygenfile:: round_robin.h

View File

@@ -0,0 +1,4 @@
rtsp
====
.. doxygenfile:: rtsp.h

View File

@@ -0,0 +1,4 @@
stream
======
.. doxygenfile:: stream.h

View File

@@ -0,0 +1,4 @@
sync
====
.. doxygenfile:: sync.h

View File

@@ -0,0 +1,4 @@
tasl_pool
=========
.. doxygenfile:: task_pool.h

View File

@@ -0,0 +1,4 @@
thread_pool
===========
.. doxygenfile:: thread_pool.h

View File

@@ -0,0 +1,4 @@
thread_safe
===========
.. doxygenfile:: thread_safe.h

View File

@@ -0,0 +1,4 @@
upnp
====
.. doxygenfile:: upnp.h

View File

@@ -0,0 +1,4 @@
utility
=======
.. Todo:: Add utility.h

View File

@@ -0,0 +1,4 @@
uuid
====
.. doxygenfile:: uuid.h

View File

@@ -0,0 +1,4 @@
video
=====
.. doxygenfile:: video.h