chromium/media/base/video_transformation_unittest.cc

// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/40285824): Remove this and convert code to safer constructs.
#pragma allow_unsafe_buffers
#endif
#include "media/base/video_transformation.h"
#include <math.h>
#include "testing/gtest/include/gtest/gtest.h"

namespace media {

namespace {

enum class Flip {};

// Rotation by angle Θ is represented in the matrix as:
// [ cos(Θ), -sin(Θ)]
// [ sin(Θ),  cos(Θ)]
// a vertical flip is represented by the cosine's having opposite signs
// and a horizontal flip is represented by the sine's having the same sign.
constexpr void FromAngle(double angle_degrees, int32_t* matrix, Flip flip) {}

}  // namespace

class VideoTransformationTest : public testing::Test {};

TEST_F(VideoTransformationTest, ComputeRotationAngles) {}

}  // namespace media