postproc.h 1.79 KB
Newer Older
John Koleszar's avatar
John Koleszar committed
1
/*
2
 *  Copyright (c) 2010 The WebM project authors. All Rights Reserved.
John Koleszar's avatar
John Koleszar committed
3
 *
4
 *  Use of this source code is governed by a BSD-style license
5
6
 *  that can be found in the LICENSE file in the root of the source
 *  tree. An additional intellectual property rights grant can be found
7
 *  in the file PATENTS.  All contributing project authors may
8
 *  be found in the AUTHORS file in the root of the source tree.
John Koleszar's avatar
John Koleszar committed
9
10
11
 */


12
13
#ifndef VP8_COMMON_POSTPROC_H_
#define VP8_COMMON_POSTPROC_H_
John Koleszar's avatar
John Koleszar committed
14
15
16
17
18
19
20

#include "vpx_ports/mem.h"
struct postproc_state
{
    int           last_q;
    int           last_noise;
    char          noise[3072];
21
    int           last_base_qindex;
22
    int           last_frame_valid;
John Koleszar's avatar
John Koleszar committed
23
24
25
26
27
28
    DECLARE_ALIGNED(16, char, blackclamp[16]);
    DECLARE_ALIGNED(16, char, whiteclamp[16]);
    DECLARE_ALIGNED(16, char, bothclamp[16]);
};
#include "onyxc_int.h"
#include "ppflags.h"
29
30
31
32

#ifdef __cplusplus
extern "C" {
#endif
John Koleszar's avatar
John Koleszar committed
33
int vp8_post_proc_frame(struct VP8Common *oci, YV12_BUFFER_CONFIG *dest,
34
                        vp8_ppflags_t *flags);
John Koleszar's avatar
John Koleszar committed
35
36


37
38
void vp8_de_noise(struct VP8Common           *oci,
                  YV12_BUFFER_CONFIG         *source,
John Koleszar's avatar
John Koleszar committed
39
40
41
                  YV12_BUFFER_CONFIG         *post,
                  int                         q,
                  int                         low_var_thresh,
John Koleszar's avatar
John Koleszar committed
42
                  int                         flag);
Luca Barbato's avatar
Luca Barbato committed
43

44
45
void vp8_deblock(struct VP8Common           *oci,
                 YV12_BUFFER_CONFIG         *source,
Luca Barbato's avatar
Luca Barbato committed
46
47
48
                 YV12_BUFFER_CONFIG         *post,
                 int                         q,
                 int                         low_var_thresh,
John Koleszar's avatar
John Koleszar committed
49
                 int                         flag);
Johann's avatar
Johann committed
50
51
52
53

#define MFQE_PRECISION 4

void vp8_multiframe_quality_enhance(struct VP8Common *cm);
54
55
56
57
#ifdef __cplusplus
}  // extern "C"
#endif

58
#endif  // VP8_COMMON_POSTPROC_H_