/* * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing project authors may * be found in the AUTHORS file in the root of the source tree. */ #ifndef TEST_TESTSUPPORT_FRAME_WRITER_H_ #define TEST_TESTSUPPORT_FRAME_WRITER_H_ #include <stdio.h> #include <string> #include "api/video/video_frame.h" namespace webrtc { namespace test { // Handles writing of video files. class FrameWriter { … }; // Writes raw I420 frames in sequence. class YuvFrameWriterImpl : public FrameWriter { … }; // Writes raw I420 frames in sequence, but with Y4M file and frame headers for // more convenient playback in external media players. class Y4mFrameWriterImpl : public YuvFrameWriterImpl { … }; // LibJpeg is not available on iOS. This class will do nothing on iOS. class JpegFrameWriter { … }; } // namespace test } // namespace webrtc #endif // TEST_TESTSUPPORT_FRAME_WRITER_H_