encodemv.h 1.25 KB
Newer Older
Jingning Han's avatar
Jingning Han committed
1
/*
Yaowu Xu's avatar
Yaowu Xu committed
2
 * Copyright (c) 2016, Alliance for Open Media. All rights reserved
Jingning Han's avatar
Jingning Han committed
3
 *
Yaowu Xu's avatar
Yaowu Xu committed
4
5
6
7
8
9
 * This source code is subject to the terms of the BSD 2 Clause License and
 * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
 * was not distributed with this source code in the LICENSE file, you can
 * obtain it at www.aomedia.org/license/software. If the Alliance for Open
 * Media Patent License 1.0 was not distributed with this source code in the
 * PATENTS file, you can obtain it at www.aomedia.org/license/patent.
Jingning Han's avatar
Jingning Han committed
10
11
 */

Yaowu Xu's avatar
Yaowu Xu committed
12
13
#ifndef AV1_ENCODER_ENCODEMV_H_
#define AV1_ENCODER_ENCODEMV_H_
Jingning Han's avatar
Jingning Han committed
14

15
#include "av1/encoder/encoder.h"
Jingning Han's avatar
Jingning Han committed
16
17
18
19
20

#ifdef __cplusplus
extern "C" {
#endif

Yaowu Xu's avatar
Yaowu Xu committed
21
void av1_entropy_mv_init(void);
Jingning Han's avatar
Jingning Han committed
22

Yaowu Xu's avatar
Yaowu Xu committed
23
24
void aom_write_nmv_probs(AV1_COMMON *cm, int usehp, aom_writer *w,
                         nmv_context_counts *const counts);
Jingning Han's avatar
Jingning Han committed
25

Yaowu Xu's avatar
Yaowu Xu committed
26
void av1_encode_mv(AV1_COMP *cpi, aom_writer *w, const MV *mv, const MV *ref,
27
#if CONFIG_REF_MV
Yaowu Xu's avatar
Yaowu Xu committed
28
                   int is_compound,
29
#endif
Yaowu Xu's avatar
Yaowu Xu committed
30
                   const nmv_context *mvctx, int usehp);
Jingning Han's avatar
Jingning Han committed
31

Yaowu Xu's avatar
Yaowu Xu committed
32
33
void av1_build_nmv_cost_table(int *mvjoint, int *mvcost[2],
                              const nmv_context *mvctx, int usehp);
Jingning Han's avatar
Jingning Han committed
34

Yaowu Xu's avatar
Yaowu Xu committed
35
void av1_update_mv_count(ThreadData *td);
Jingning Han's avatar
Jingning Han committed
36
37
38
39
40

#ifdef __cplusplus
}  // extern "C"
#endif

Yaowu Xu's avatar
Yaowu Xu committed
41
#endif  // AV1_ENCODER_ENCODEMV_H_