blob: 7baa061247d77b77303220c4fd76aceab670191b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
/*
* Copyright (c) 2021, Hunter Salyer <thefalsehonesty@gmail.com>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/Types.h>
namespace Video::VP9 {
class MV {
public:
MV() = default;
MV(u32 row, u32 col);
u32 row() const { return m_row; }
void set_row(u32 row) { m_row = row; }
u32 col() const { return m_col; }
void set_col(u32 col) { m_col = col; }
MV& operator=(MV const& other);
MV& operator=(i32 value);
MV operator+(MV const& other) const;
private:
u32 m_row { 0 };
u32 m_col { 0 };
};
}
|