dering.h 918 Bytes
Newer Older
1
2
3
#ifndef VP10_COMMON_DERING_H_
#define VP10_COMMON_DERING_H_

Yaowu Xu's avatar
Yaowu Xu committed
4
5
#include "av1/common/od_dering.h"
#include "av1/common/onyxc_int.h"
Yaowu Xu's avatar
Yaowu Xu committed
6
#include "aom/vpx_integer.h"
7
#include "./vpx_config.h"
Yaowu Xu's avatar
Yaowu Xu committed
8
#include "aom_ports/mem.h"
9
10
11
12
13
14
15
16
17

#ifdef __cplusplus
extern "C" {
#endif

#define DERING_LEVEL_BITS 6
#define MAX_DERING_LEVEL (1 << DERING_LEVEL_BITS)

#define DERING_REFINEMENT 1
18
19
#define DERING_REFINEMENT_BITS 2
#define DERING_REFINEMENT_LEVELS 4
20
21
22
23
24
25
26
27
28
29
30
31
32
33

int compute_level_from_index(int global_level, int gi);
int sb_all_skip(const VP10_COMMON *const cm, int mi_row, int mi_col);
void vp10_dering_frame(YV12_BUFFER_CONFIG *frame, VP10_COMMON *cm,
                       MACROBLOCKD *xd, int global_level);

int vp10_dering_search(YV12_BUFFER_CONFIG *frame, const YV12_BUFFER_CONFIG *ref,
                      VP10_COMMON *cm,
                      MACROBLOCKD *xd);

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