#include "test/testsupport/video_frame_writer.h"
#include <cmath>
#include <cstdlib>
#include <limits>
#include <memory>
#include <utility>
#include "api/scoped_refptr.h"
#include "api/video/i420_buffer.h"
#include "common_video/libyuv/include/webrtc_libyuv.h"
#include "rtc_base/logging.h"
namespace webrtc {
namespace test {
namespace {
rtc::Buffer ExtractI420BufferWithSize(const VideoFrame& frame,
int width,
int height) { … }
}
Y4mVideoFrameWriterImpl::Y4mVideoFrameWriterImpl(std::string output_file_name,
int width,
int height,
int fps)
: … { … }
bool Y4mVideoFrameWriterImpl::WriteFrame(const webrtc::VideoFrame& frame) { … }
void Y4mVideoFrameWriterImpl::Close() { … }
YuvVideoFrameWriterImpl::YuvVideoFrameWriterImpl(std::string output_file_name,
int width,
int height)
: … { … }
bool YuvVideoFrameWriterImpl::WriteFrame(const webrtc::VideoFrame& frame) { … }
void YuvVideoFrameWriterImpl::Close() { … }
}
}