Files
ladybird/Userland/Libraries/LibVideo/VP9/MV.cpp
Zaggy1024 af0584ea53 LibVideo: Remove MV class's copy assignment overload
This was unnecessary, as the implicit one works correctly.
2022-10-09 20:32:40 -06:00

30 lines
428 B
C++

/*
* Copyright (c) 2021, Hunter Salyer <thefalsehonesty@gmail.com>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include "MV.h"
namespace Video::VP9 {
MV::MV(u32 row, u32 col)
: m_row(row)
, m_col(col)
{
}
MV& MV::operator=(i32 value)
{
m_row = value;
m_col = value;
return *this;
}
MV MV::operator+(MV const& other) const
{
return MV(this->row() + other.row(), this->col() + other.col());
}
}