1 /*
2  *  Copyright (c) 2017 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 
11 #include "rtc_base/checks.h"
12 #include "rtc_base/logging.h"
13 #include "test/testsupport/frame_writer.h"
14 
15 namespace webrtc {
16 namespace test {
17 
JpegFrameWriter(const std::string &)18 JpegFrameWriter::JpegFrameWriter(const std::string& /*output_filename*/) {}
19 
WriteFrame(const VideoFrame &,int)20 bool JpegFrameWriter::WriteFrame(const VideoFrame& /*input_frame*/,
21                                  int /*quality*/) {
22   RTC_LOG(LS_WARNING)
23       << "Libjpeg isn't available on IOS. Jpeg frame writer is not "
24          "supported. No frame will be saved.";
25   // Don't fail.
26   return true;
27 }
28 
29 }  // namespace test
30 }  // namespace webrtc
31