summaryrefslogtreecommitdiff
path: root/vp8
diff options
context:
space:
mode:
authorJerome Jiang <jianj@google.com>2017-08-14 13:57:51 -0700
committerJerome Jiang <jianj@google.com>2017-08-15 10:44:03 -0700
commita153080b5522da7cdb8040abaeeeba13c5af3ed6 (patch)
treeebcfae254c8e3f88a71f34d3fdbbef4fa0b96166 /vp8
parent2caff16151bc0450142aaab5bc44dcf7ef603e11 (diff)
downloadlibvpx-a153080b5522da7cdb8040abaeeeba13c5af3ed6.tar
libvpx-a153080b5522da7cdb8040abaeeeba13c5af3ed6.tar.gz
libvpx-a153080b5522da7cdb8040abaeeeba13c5af3ed6.tar.bz2
libvpx-a153080b5522da7cdb8040abaeeeba13c5af3ed6.zip
Clean up writing YUV files for debug purpose.
Change legacy vp8/9_write_yuv_frame to vpx_write_yuv_files. Delete some flags that can be enabled during build. To enable writing denoised YUV, use the following command line: CFLAGS='-DOUTPUT_YUV_DENOISED' ./configure --enable-vp9-temporal-denoising For skinmap, use CFLAGS='-DOUTPUT_YUV_SKINMAP' Change-Id: I236974ac8b3cf279d20c4dc7f6162d8b480b6528
Diffstat (limited to 'vp8')
-rw-r--r--vp8/encoder/onyx_if.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/vp8/encoder/onyx_if.c b/vp8/encoder/onyx_if.c
index 042d33ed0..f68fa22af 100644
--- a/vp8/encoder/onyx_if.c
+++ b/vp8/encoder/onyx_if.c
@@ -37,6 +37,7 @@
#include "vp8/common/threading.h"
#include "vpx_ports/system_state.h"
#include "vpx_ports/vpx_timer.h"
+#include "vpx_util/vpx_write_yuv_frame.h"
#if ARCH_ARM
#include "vpx_ports/arm.h"
#endif
@@ -3902,7 +3903,7 @@ static void encode_frame_to_data_rate(VP8_COMP *cpi, size_t *size,
#endif
#ifdef OUTPUT_YUV_SRC
- vp8_write_yuv_frame(yuv_file, cpi->Source);
+ vpx_write_yuv_frame(yuv_file, cpi->Source);
#endif
do {
@@ -4483,7 +4484,7 @@ static void encode_frame_to_data_rate(VP8_COMP *cpi, size_t *size,
update_reference_frames(cpi);
#ifdef OUTPUT_YUV_DENOISED
- vp8_write_yuv_frame(yuv_denoised_file,
+ vpx_write_yuv_frame(yuv_denoised_file,
&cpi->denoiser.yv12_running_avg[INTRA_FRAME]);
#endif
@@ -4832,7 +4833,7 @@ static void encode_frame_to_data_rate(VP8_COMP *cpi, size_t *size,
#endif
/* DEBUG */
- /* vp8_write_yuv_frame("encoder_recon.yuv", cm->frame_to_show); */
+ /* vpx_write_yuv_frame("encoder_recon.yuv", cm->frame_to_show); */
}
#if !CONFIG_REALTIME_ONLY
static void Pass2Encode(VP8_COMP *cpi, size_t *size, unsigned char *dest,