diff options
author | Jingning Han <jingning@google.com> | 2015-08-12 01:57:15 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2015-08-12 01:57:15 +0000 |
commit | be6c031fb3b0ee940c852a6a2db63af4747ff022 (patch) | |
tree | bdefb7fb5f2b3fa276410f308c2c167f27fcf4c4 /vp10/common/vp9_postproc.h | |
parent | 70deaf00eb4a035247fd102337f949bff7b1f232 (diff) | |
parent | 3ee6db6c8110680c051fe7a4dca97bb27474ca00 (diff) | |
download | libvpx-be6c031fb3b0ee940c852a6a2db63af4747ff022.tar libvpx-be6c031fb3b0ee940c852a6a2db63af4747ff022.tar.gz libvpx-be6c031fb3b0ee940c852a6a2db63af4747ff022.tar.bz2 libvpx-be6c031fb3b0ee940c852a6a2db63af4747ff022.zip |
Merge "Fork VP9 and VP10 codebase"
Diffstat (limited to 'vp10/common/vp9_postproc.h')
-rw-r--r-- | vp10/common/vp9_postproc.h | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/vp10/common/vp9_postproc.h b/vp10/common/vp9_postproc.h new file mode 100644 index 000000000..212d37b00 --- /dev/null +++ b/vp10/common/vp9_postproc.h @@ -0,0 +1,53 @@ +/* + * Copyright (c) 2010 The WebM project authors. All Rights Reserved. + * + * Use of this source code is governed by a BSD-style license + * that can be found in the LICENSE file in the root of the source + * tree. An additional intellectual property rights grant can be found + * in the file PATENTS. All contributing project authors may + * be found in the AUTHORS file in the root of the source tree. + */ + + +#ifndef VP9_COMMON_VP9_POSTPROC_H_ +#define VP9_COMMON_VP9_POSTPROC_H_ + +#include "vpx_ports/mem.h" +#include "vpx_scale/yv12config.h" +#include "vp10/common/vp9_blockd.h" +#include "vp10/common/vp9_mfqe.h" +#include "vp10/common/vp9_ppflags.h" + +#ifdef __cplusplus +extern "C" { +#endif + +struct postproc_state { + int last_q; + int last_noise; + char noise[3072]; + int last_base_qindex; + int last_frame_valid; + MODE_INFO *prev_mip; + MODE_INFO *prev_mi; + DECLARE_ALIGNED(16, char, blackclamp[16]); + DECLARE_ALIGNED(16, char, whiteclamp[16]); + DECLARE_ALIGNED(16, char, bothclamp[16]); +}; + +struct VP9Common; + +#define MFQE_PRECISION 4 + +int vp10_post_proc_frame(struct VP9Common *cm, + YV12_BUFFER_CONFIG *dest, vp10_ppflags_t *flags); + +void vp10_denoise(const YV12_BUFFER_CONFIG *src, YV12_BUFFER_CONFIG *dst, int q); + +void vp10_deblock(const YV12_BUFFER_CONFIG *src, YV12_BUFFER_CONFIG *dst, int q); + +#ifdef __cplusplus +} // extern "C" +#endif + +#endif // VP9_COMMON_VP9_POSTPROC_H_ |