2 * Copyright (c) 2015 The WebM project authors. All Rights Reserved.
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.
11 #include "vpx_dsp/skin_detection.h"
12 #include "vpx_util/vpx_write_yuv_frame.h"
14 void vpx_write_yuv_frame(FILE *yuv_file, YV12_BUFFER_CONFIG *s) {
15 #if defined(OUTPUT_YUV_SRC) || defined(OUTPUT_YUV_DENOISED) || \
16 defined(OUTPUT_YUV_SKINMAP) || defined(OUTPUT_YUV_SVC_SRC)
18 unsigned char *src = s->y_buffer;
19 int h = s->y_crop_height;
22 fwrite(src, s->y_width, 1, yuv_file);
27 h = s->uv_crop_height;
30 fwrite(src, s->uv_width, 1, yuv_file);
35 h = s->uv_crop_height;
38 fwrite(src, s->uv_width, 1, yuv_file);