vp9_postproc.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  2. * Copyright (c) 2010 The WebM project authors. All Rights Reserved.
  3. *
  4. * Use of this source code is governed by a BSD-style license
  5. * that can be found in the LICENSE file in the root of the source
  6. * 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.
  9. */
  10. #ifndef VP9_COMMON_VP9_POSTPROC_H_
  11. #define VP9_COMMON_VP9_POSTPROC_H_
  12. #include "vpx_ports/mem.h"
  13. #include "vpx_scale/yv12config.h"
  14. #include "vp9/common/vp9_blockd.h"
  15. #include "vp9/common/vp9_mfqe.h"
  16. #include "vp9/common/vp9_ppflags.h"
  17. #ifdef __cplusplus
  18. extern "C" {
  19. #endif
  20. struct postproc_state {
  21. int last_q;
  22. int last_noise;
  23. int last_base_qindex;
  24. int last_frame_valid;
  25. MODE_INFO *prev_mip;
  26. MODE_INFO *prev_mi;
  27. int clamp;
  28. uint8_t *limits;
  29. int8_t *generated_noise;
  30. };
  31. struct VP9Common;
  32. #define MFQE_PRECISION 4
  33. int vp9_post_proc_frame(struct VP9Common *cm, YV12_BUFFER_CONFIG *dest,
  34. vp9_ppflags_t *flags);
  35. void vp9_denoise(const YV12_BUFFER_CONFIG *src, YV12_BUFFER_CONFIG *dst, int q,
  36. uint8_t *limits);
  37. void vp9_deblock(const YV12_BUFFER_CONFIG *src, YV12_BUFFER_CONFIG *dst, int q,
  38. uint8_t *limits);
  39. #ifdef __cplusplus
  40. } // extern "C"
  41. #endif
  42. #endif // VP9_COMMON_VP9_POSTPROC_H_