#ifndef LIBGAV1_SRC_MOTION_VECTOR_H_
#define LIBGAV1_SRC_MOTION_VECTOR_H_
#include <algorithm>
#include <array>
#include <cstdint>
#include "src/buffer_pool.h"
#include "src/obu_parser.h"
#include "src/tile.h"
#include "src/utils/array_2d.h"
#include "src/utils/constants.h"
#include "src/utils/types.h"
namespace libgav1 {
constexpr bool IsGlobalMvBlock(const BlockParameters& bp,
GlobalMotionTransformationType type) { … }
void FindMvStack(const Tile::Block& block, bool is_compound,
MvContexts* contexts);
void FindWarpSamples(const Tile::Block& block, int* num_warp_samples,
int* num_samples_scanned,
int candidates[kMaxLeastSquaresSamples][4]);
void SetupMotionField(
const ObuFrameHeader& frame_header, const RefCountedBuffer& current_frame,
const std::array<RefCountedBufferPtr, kNumReferenceFrameTypes>&
reference_frames,
int row4x4_start, int row4x4_end, int column4x4_start, int column4x4_end,
TemporalMotionField* motion_field);
}
#endif