Paulina Hensman | b671d46 | 2018-09-14 11:32:00 +0200 | [diff] [blame] | 1 | /* |
| 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 | |
| 13 | #include <cstdio> |
| 14 | #include <string> |
| 15 | |
| 16 | #include "rtc_base/refcount.h" |
| 17 | #include "rtc_tools/video_file_reader.h" |
| 18 | |
| 19 | namespace webrtc { |
| 20 | namespace test { |
| 21 | |
| 22 | // Writes video to file, determining YUV or Y4M format from the file extension. |
| 23 | void WriteVideoToFile(const rtc::scoped_refptr<Video>& video, |
| 24 | const std::string& file_name, |
| 25 | int fps); |
| 26 | |
| 27 | } // namespace test |
| 28 | } // namespace webrtc |
| 29 | |
| 30 | #endif // RTC_TOOLS_VIDEO_FILE_WRITER_H_ |