diff options
author | Tim Kopp <tkopp@google.com> | 2014-07-22 14:00:11 -0700 |
---|---|---|
committer | Tim Kopp <tkopp@google.com> | 2014-07-22 14:10:16 -0700 |
commit | 1fe18acb920417792a6d2dba8f185b9c508aa4dc (patch) | |
tree | 6da9d85bcfc3b50cca7b8cdde5a9036d400a0ed1 /vp9/encoder | |
parent | dcb6aa8e41348c559faf6003dc8cc4c6ce914958 (diff) | |
download | libvpx-1fe18acb920417792a6d2dba8f185b9c508aa4dc.tar libvpx-1fe18acb920417792a6d2dba8f185b9c508aa4dc.tar.gz libvpx-1fe18acb920417792a6d2dba8f185b9c508aa4dc.tar.bz2 libvpx-1fe18acb920417792a6d2dba8f185b9c508aa4dc.zip |
VP9 denoiser bugfix in debugging code.
When OUTPUT_YUV_DENOISED is enabled the encoder outputs the uncompressed,
denoised video to a separate file. Moved the point at which the file is
written to in order to avoid an extra blank frame at the beginning of the video.
Change-Id: I805f6a912b18b3d9cae59b13c5b8108279439ce3
Diffstat (limited to 'vp9/encoder')
-rw-r--r-- | vp9/encoder/vp9_encoder.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/vp9/encoder/vp9_encoder.c b/vp9/encoder/vp9_encoder.c index 1815d5da3..5c5d99408 100644 --- a/vp9/encoder/vp9_encoder.c +++ b/vp9/encoder/vp9_encoder.c @@ -2226,15 +2226,6 @@ static void encode_frame_to_data_rate(VP9_COMP *cpi, set_speed_features(cpi); -#if CONFIG_DENOISING -#ifdef OUTPUT_YUV_DENOISED - if (cpi->oxcf.noise_sensitivity > 0) { - vp9_write_yuv_frame_420(&cpi->denoiser.running_avg_y[INTRA_FRAME], - yuv_denoised_file); - } -#endif -#endif - // Decide q and q bounds. q = vp9_rc_pick_q_and_bounds(cpi, &bottom_index, &top_index); @@ -2250,6 +2241,16 @@ static void encode_frame_to_data_rate(VP9_COMP *cpi, encode_with_recode_loop(cpi, size, dest, q, bottom_index, top_index); } +#if CONFIG_DENOISING +#ifdef OUTPUT_YUV_DENOISED + if (cpi->oxcf.noise_sensitivity > 0) { + vp9_write_yuv_frame_420(&cpi->denoiser.running_avg_y[INTRA_FRAME], + yuv_denoised_file); + } +#endif +#endif + + // Special case code to reduce pulsing when key frames are forced at a // fixed interval. Note the reconstruction error if it is the frame before // the force key frame |