This library implements Film Grain Synthesis based on SMPTE-RDD5 [frequency-filtering method]. Following are the features of the library
- Bit exact implementation of film grain synthesis as per RDD5 [frequency-filtering method] with extensions to support up to 10-bit and 4k resolutions
- Optimized on ARM and Intel platforms
- Library is multi thread enabled
- Validated with AVC, HEVC and VVC decoders on android smartphone and browser framework
- Repository contains source and header files for film grain synthesis along with sample application files
- cmake >= 3.25
- gcc >= 4.8.5 / clang toolchain (For x86-64 and aarch64 Linux builds)
- Visual Studio (For Windows builds)
- To download all submodules -
libfgsPath=<Path to libfgs repo> cd ${libfgsPath} git submodule update --init --recursive
- Create a buildtree
libfgsPath=<Path to libfgs repo>
buildTree=<Name of buildTree folder>
installPath=<Path to install folder>
cd ${libfgsPath}
cmake . -B ${buildTree} -DCMAKE_INSTALL_BINDIR:STRING=${installPath}
- Build using buildtree
cmake --build ${buildTree}
- Install (Installs to 'bin' folder)
cmake --install ${buildTree}
- Command to run the executable
./fgsapp <path of configuration file>
- Create a buildtree
toolchainPath=<Path to aarch64 toolchain>
libfgsPath=<Path to libfgs repo>
buildTree=<Name of buildTree folder>
installPath=<Path to install folder>
cd ${libfgsPath}
PATH=${toolchainPath}:${PATH} cmake . -B ${buildTree}\
-DCMAKE_TOOLCHAIN_FILE=./cmake/toolchains/aarch64_toolchain.cmake\
-DCMAKE_INSTALL_BINDIR:STRING=${installPath}
- Build using buildtree
cmake --build ${buildTree}
- Install (Installs to 'bin' folder)
cmake --install ${buildTree}
- Command to run the executable
./fgsapp <path of configuration file>
- Open git bash
- Create a buildtree
libfgsPath=<Path to libfgs repo>
buildTree=<Name of buildTree folder>
installPath=<Path to install folder>
cd ${libfgsPath}
cmake . -B ${buildTree} -A x64\
-DCMAKE_INSTALL_BINDIR:STRING=${installPath}
- Build using buildtree
cmake --build ${buildTree} -- -p:Configuration="Release"
- Install (Installs to 'bin' folder)
cmake --install ${buildTree}
- Command to run the executable
./fgsapp.exe <path of configuration file>
Please refer to the guidelines for the following processes
- Reporting issues
- Creating Pull Request
- Commit message standards
A BSD 3-Clause-Clear license is applicable. Refer to the LICENSE file together with the LICENSE2 file.