• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 www.aomedia.org/license/software. 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 www.aomedia.org/license/patent.
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 determine_correspondence(unsigned char *frm, int *frm_corners,
28                              int num_frm_corners, unsigned char *ref,
29                              int *ref_corners, int num_ref_corners, int width,
30                              int height, int frm_stride, int ref_stride,
31                              int *correspondence_pts);
32 
33 #endif  // AOM_AV1_ENCODER_CORNER_MATCH_H_
34