10#include <gmock/gmock.h>
11#include <gtest/gtest.h>
23 for (
int i = 0; i < 3; ++i) {
24 if (
fabsf(arg[i] - expected[i]) >
eps) {
25 *result_listener <<
"component " << i <<
" should be " << expected[i];
49 IsNearFloat3(
make_float3(0.0f, 0.0f, 0.0f), 1.0f / 127.0f));
54 IsNearFloat3(
make_float3(0.1f, -0.2f, 0.3f), 1.0f / 127.0f));
#define CCL_NAMESPACE_END
TEST_F(FFmpegTest, libaom_av1_AV_PIX_FMT_YUV420P)
ccl_static_constexpr int MAX_COEFFICIENTS
ccl_device_forceinline void spherical_harmonics_rest_fill_zero(ccl_global PackedSphericalHarmonicsRest &packed_spherical_harmonics_rest)
ccl_device_forceinline float3 spherical_harmonics_rest_get_coefficient(const ccl_global PackedSphericalHarmonicsRest &packed_spherical_harmonics_rest, const int index)
ccl_device_forceinline void spherical_harmonics_rest_set_coefficient(ccl_global PackedSphericalHarmonicsRest &packed_spherical_harmonics_rest, const int index, const float3 value)
MATCHER_P2(IsNearFloat3, expected, eps, "")