Skip to content

Commit

Permalink
Add documentation for VmafConfiguration, including link to n_subsampl…
Browse files Browse the repository at this point in the history
…e issue
  • Loading branch information
nilfm99 committed Feb 2, 2024
1 parent b6548d4 commit 6629dbe
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions libvmaf/include/libvmaf/libvmaf.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,31 @@ enum VmafPoolingMethod {
VMAF_POOL_METHOD_NB
};

/**
* @struct VmafConfiguration
* @brief Configuration needed to initialize a `VmafContext`
*
* @param log_level How verbose the logger is.
*
* @param n_threads How many threads can be used to run
* feature extractors concurrently.
*
* @param n_subsample Compute scores only every N frames.
* Note that setting an even value for N can lead to
* inaccurate results. For more detail, see
* https://github.com/Netflix/vmaf/issues/1214
*
* @param cpumask Restrict permitted CPU instruction sets.
* if cpumask & 1: disable SSE2
* if cpumask & 2: disable SSE3/SSSE3
* if cpumask & 4: disable SSE4.1
* if cpumask & 8: disable AVX2
* if cpumask & 16: disable AVX512
* if cpumask & 32: disable AVX512ICL
*
* @param gpumask Restrict permitted GPU operations.
* if gpumask: disable CUDA
*/
typedef struct VmafConfiguration {
enum VmafLogLevel log_level;
unsigned n_threads;
Expand Down

0 comments on commit 6629dbe

Please sign in to comment.