libvmaf
Loading...
Searching...
No Matches
barten_csf_tools.h File Reference
#include <math.h>
#include "common/macros.h"
#include <errno.h>
Include dependency graph for barten_csf_tools.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define BARTEN_CSF_TOOLS_H_
#define CLAMP(x, low, high)

Macro Definition Documentation

◆ BARTEN_CSF_TOOLS_H_

#define BARTEN_CSF_TOOLS_H_

Copyright 2016-2023 Netflix, Inc.

Licensed under the BSD+Patent License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

https://opensource.org/licenses/BSDplusPatent

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

◆ CLAMP

#define CLAMP ( x,
low,
high )
Value:
(((x) > (high)) ? (high) : (((x) < (low)) ? (low) : (x)))