You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**VFilter** C++ library provides interface as well defines data structures for various video filters implementations. The **VFilter** interface represents video filter module which has video frames as input and output. The **VFilter.h** file contains declaration of data structures: [VFilterCommand](#vfiltercommand-enum) enum, [VFilterParam](#vfilterparam-enum) enum, [VFilterParams class declaration](#vfilterparams-class-declaration) class and [VFilter](#vfilter-interface-class-declaration) class declaration. The library depends on [Frame](https://github.com/ConstantRobotics-Ltd/Frame) library (describes data structures for video frames, Apache 2.0 license) and [ConfigReader](https://github.com/ConstantRobotics-Ltd/ConfigReader) library (provides methods to read/write JSON config files, Apache 2.0 license). The library uses C++17 standard and doesn't have third-party dependencies to be installed in OS. The library is licensed under the **Apache 2.0** license.
45
+
**VFilter** C++ library provides interface as well defines data structures for various video filters implementations. The **VFilter** interface represents video filter module which has video frames as input and output. The **VFilter.h** file contains declaration of data structures: [VFilterCommand](#vfiltercommand-enum) enum, [VFilterParam](#vfilterparam-enum) enum, [VFilterParams](#vfilterparams-class-declaration) class and [VFilter](#vfilter-interface-class-declaration) class declaration. The library depends on [Frame](https://rapidpixel.constantrobotics.com/docs/service-libraries/frame.html) library (describes data structures for video frames, source code included, Apache 2.0 license) and [ConfigReader](https://rapidpixel.constantrobotics.com/docs/service-libraries/config-reader.html) library (provides methods to read/write JSON config files, source code included, Apache 2.0 license). The library uses C++17 standard and doesn't have third-party dependencies to be installed in OS. The library is licensed under the **Apache 2.0** license.
46
46
47
47
48
48
@@ -56,6 +56,7 @@
56
56
| 1.1.0 | 22.02.2024 | - Added setMask(...) method.<br />- Added initVFilter(...) to initialize video filter.<br />- Documentation updated. |
57
57
| 1.1.1 | 25.02.2024 | - Parameter processingTimeMcSec excluded from JSON to read / write. |
58
58
| 1.1.2 | 24.03.2024 | - Frame class updated.<br />- ConfigReader class updated.<br />- Documentation updated. |
The library supplied by source code only. The user would be given a set of files in the form of a CMake project (repository). The repository structure is shown below:
65
66
66
67
```xml
67
-
CMakeLists.txt ------------------ Main CMake file of the library.
68
-
3rdparty ------------------------ Folder with third-party libraries.
69
-
CMakeLists.txt -------------- CMake file which includes third-party libraries.
70
-
ConfigReader ---------------- Source code of the ConfigReader library.
71
-
Frame ----------------------- Source code of the Frame library.
72
-
src ----------------------------- Folder with source code of the library.
73
-
CMakeLists.txt -------------- CMake file of the library.
74
-
VFilter.cpp ----------------- Source code file of the library.
75
-
VFilter.h ------------------- Header file which includes VFilter class declaration.
76
-
VFilterVersion.h ------------ Header file which includes version of the library.
77
-
VFilterVersion.h.in --------- CMake service file to generate version file.
78
-
test ---------------------------- Folder for internal tests of library.
79
-
CMakeLists.txt -------------- CMake file for tests application.
| frame | Reference to [Frame](https://github.com/ConstantRobotics-Ltd/Frame) object. Particular video filter implementation must keep original video frame resolution (width and height), **sourceId** and **frameId** fields. |
261
+
| frame | Reference to [Frame](https://rapidpixel.constantrobotics.com/docs/service-libraries/frame.html) object. Particular video filter implementation must keep original video frame resolution (width and height), **sourceId** and **frameId** fields. |
261
262
262
263
**Returns:** TRUE if frame processed or FALSE if not. If filter disabled the method should return TRUE without video frame processing.
| mask | Filter mask is [Frame](https://github.com/ConstantRobotics-Ltd/Frame) object with GRAY pixel format. Filter omits image segments, where filter mask pixel values equal 0. |
277
+
| mask | Filter mask is [Frame](https://rapidpixel.constantrobotics.com/docs/service-libraries/frame.html) object with GRAY pixel format. Filter omits image segments, where filter mask pixel values equal 0. |
277
278
278
279
**Returns:** TRUE if the filter mask was set or FALSE if not.
279
280
@@ -610,7 +611,7 @@ params2.decode(buffer, size);
610
611
611
612
## Read params from JSON file and write to JSON file
612
613
613
-
**VFilter** depends on open source [ConfigReader](https://github.com/ConstantRobotics-Ltd/ConfigReader) library which provides method to read params from JSON file and to write params to JSON file. Example of writing and reading params to JSON file:
614
+
**VFilter** depends on open source [ConfigReader](https://rapidpixel.constantrobotics.com/docs/service-libraries/config-reader.html) library which provides method to read params from JSON file and to write params to JSON file. Example of writing and reading params to JSON file:
0 commit comments