vp9_postproc.h 1.4 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 14 15
 */


#ifndef POSTPROC_H
#define POSTPROC_H

#include "vpx_ports/mem.h"
John Koleszar's avatar
John Koleszar committed
16 17 18 19 20 21 22
struct postproc_state {
  int           last_q;
  int           last_noise;
  char          noise[3072];
  DECLARE_ALIGNED(16, char, blackclamp[16]);
  DECLARE_ALIGNED(16, char, whiteclamp[16]);
  DECLARE_ALIGNED(16, char, bothclamp[16]);
John Koleszar's avatar
John Koleszar committed
23
};
24 25
#include "vp9_onyxc_int.h"
#include "vp9_ppflags.h"
26
int vp9_post_proc_frame(struct VP9Common *oci, YV12_BUFFER_CONFIG *dest,
27
                        vp9_ppflags_t *flags);
John Koleszar's avatar
John Koleszar committed
28 29


30
void vp9_de_noise(YV12_BUFFER_CONFIG         *source,
John Koleszar's avatar
John Koleszar committed
31 32 33
                  YV12_BUFFER_CONFIG         *post,
                  int                         q,
                  int                         low_var_thresh,
Jim Bankoski's avatar
Jim Bankoski committed
34
                  int                         flag);
Luca Barbato's avatar
Luca Barbato committed
35

36
void vp9_deblock(YV12_BUFFER_CONFIG         *source,
Luca Barbato's avatar
Luca Barbato committed
37 38 39
                 YV12_BUFFER_CONFIG         *post,
                 int                         q,
                 int                         low_var_thresh,
Jim Bankoski's avatar
Jim Bankoski committed
40
                 int                         flag);
John Koleszar's avatar
John Koleszar committed
41
#endif