blob: 97b80ea830b428ecb631a15aaa03f9026c2bbdff [file] [log] [blame]
Paulina Hensmanb671d462018-09-14 11:32:00 +02001/*
2 * Copyright (c) 2018 The WebRTC 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 RTC_TOOLS_VIDEO_FILE_WRITER_H_
11#define RTC_TOOLS_VIDEO_FILE_WRITER_H_
12
Paulina Hensmanb671d462018-09-14 11:32:00 +020013#include <string>
14
Yves Gerey3e707812018-11-28 16:47:49 +010015#include "rtc_base/scoped_ref_ptr.h"
Paulina Hensmanb671d462018-09-14 11:32:00 +020016#include "rtc_tools/video_file_reader.h"
17
18namespace webrtc {
19namespace test {
20
21// Writes video to file, determining YUV or Y4M format from the file extension.
22void WriteVideoToFile(const rtc::scoped_refptr<Video>& video,
23 const std::string& file_name,
24 int fps);
25
26} // namespace test
27} // namespace webrtc
28
29#endif // RTC_TOOLS_VIDEO_FILE_WRITER_H_