summaryrefslogtreecommitdiff
path: root/vp9/encoder/vp9_denoiser.h
diff options
context:
space:
mode:
authorTim Kopp <tkopp@google.com>2014-06-17 12:51:39 -0700
committerTim Kopp <tkopp@google.com>2014-06-27 08:56:09 -0700
commit52462bf7a8abd1af60105ef6e3e7e5886766985d (patch)
treebf820bd8f275a81514307d288076d845373e70e1 /vp9/encoder/vp9_denoiser.h
parentcb51192b5106e5e2c0570ace106b7a12c6cbc2cd (diff)
downloadlibvpx-52462bf7a8abd1af60105ef6e3e7e5886766985d.tar
libvpx-52462bf7a8abd1af60105ef6e3e7e5886766985d.tar.gz
libvpx-52462bf7a8abd1af60105ef6e3e7e5886766985d.tar.bz2
libvpx-52462bf7a8abd1af60105ef6e3e7e5886766985d.zip
VP9 denoiser: implemented update_frame_stats()
Also added reset_frame_stats() Change-Id: I8e6ca00dbd5fa85cd39485d81c9343c0ff207d6c
Diffstat (limited to 'vp9/encoder/vp9_denoiser.h')
-rw-r--r--vp9/encoder/vp9_denoiser.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/vp9/encoder/vp9_denoiser.h b/vp9/encoder/vp9_denoiser.h
index 18b9766a5..78559896b 100644
--- a/vp9/encoder/vp9_denoiser.h
+++ b/vp9/encoder/vp9_denoiser.h
@@ -26,6 +26,14 @@ enum vp9_denoiser_decision {
typedef struct vp9_denoiser {
YV12_BUFFER_CONFIG running_avg_y[MAX_REF_FRAMES];
YV12_BUFFER_CONFIG mc_running_avg_y;
+
+ unsigned int zero_mv_sse;
+ unsigned int best_sse;
+ int increase_denoising;
+ PREDICTION_MODE best_sse_inter_mode;
+ int_mv best_sse_mv;
+ MV_REFERENCE_FRAME best_reference_frame;
+ MV_REFERENCE_FRAME best_zeromv_reference_frame;
} VP9_DENOISER;
void vp9_denoiser_update_frame_info(VP9_DENOISER *denoiser,
@@ -38,7 +46,10 @@ void vp9_denoiser_update_frame_info(VP9_DENOISER *denoiser,
void vp9_denoiser_denoise(VP9_DENOISER *denoiser, MACROBLOCK *mb,
int mi_row, int mi_col, BLOCK_SIZE bs);
-void vp9_denoiser_update_frame_stats();
+void vp9_denoiser_reset_frame_stats(VP9_DENOISER *denoiser);
+
+void vp9_denoiser_update_frame_stats(VP9_DENOISER *denoiser, MB_MODE_INFO *mbmi,
+ unsigned int sse, PREDICTION_MODE mode);
int vp9_denoiser_alloc(VP9_DENOISER *denoiser, int width, int height,
int ssx, int ssy, int border);