1 /*
2  * Copyright (c) 2016, Alliance for Open Media. All rights reserved
3  *
4  * This source code is subject to the terms of the BSD 2 Clause License and
5  * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
6  * was not distributed with this source code in the LICENSE file, you can
7  * obtain it at https://www.aomedia.org/license/software-license. If the Alliance for Open
8  * Media Patent License 1.0 was not distributed with this source code in the
9  * PATENTS file, you can obtain it at https://www.aomedia.org/license/patent-license.
10  */
11 #ifndef AOM_AV1_ENCODER_CORNER_MATCH_H_
12 #define AOM_AV1_ENCODER_CORNER_MATCH_H_
13 
14 #include <stdio.h>
15 #include <stdlib.h>
16 #include <memory.h>
17 
18 #define MATCH_SZ 13
19 #define MATCH_SZ_BY2 ((MATCH_SZ - 1) / 2)
20 #define MATCH_SZ_SQ (MATCH_SZ * MATCH_SZ)
21 
22 typedef struct {
23     int x, y;
24     int rx, ry;
25 } Correspondence;
26 
27 int svt_av1_determine_correspondence(unsigned char *frm, int *frm_corners, int num_frm_corners,
28                                      unsigned char *ref, int *ref_corners, int num_ref_corners,
29                                      int width, int height, int frm_stride, int ref_stride,
30                                      int *correspondence_pts);
31 
32 #endif // AOM_AV1_ENCODER_CORNER_MATCH_H_
33