Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(448)

Side by Side Diff: webrtc/modules/utility/source/file_recorder_impl.h

Issue 2033433004: Remove the unused video stuff in FilePlayer and FileRecorder (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 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 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 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 // This file contains a class that can write audio and/or video to file in 11 // This file contains a class that can write audio to file in
12 // multiple file formats. The unencoded input data is written to file in the 12 // multiple file formats. The unencoded input data is written to file in the
13 // encoded format specified. 13 // encoded format specified.
14 14
15 #ifndef WEBRTC_MODULES_UTILITY_SOURCE_FILE_RECORDER_IMPL_H_ 15 #ifndef WEBRTC_MODULES_UTILITY_SOURCE_FILE_RECORDER_IMPL_H_
16 #define WEBRTC_MODULES_UTILITY_SOURCE_FILE_RECORDER_IMPL_H_ 16 #define WEBRTC_MODULES_UTILITY_SOURCE_FILE_RECORDER_IMPL_H_
17 17
18 #include <list> 18 #include <list>
19 19
20 #include "webrtc/base/platform_thread.h" 20 #include "webrtc/base/platform_thread.h"
21 #include "webrtc/common_audio/resampler/include/resampler.h" 21 #include "webrtc/common_audio/resampler/include/resampler.h"
(...skipping 29 matching lines...) Expand all
51 const CodecInst& codecInst, 51 const CodecInst& codecInst,
52 uint32_t notificationTimeMs) override; 52 uint32_t notificationTimeMs) override;
53 int32_t StartRecordingAudioFile( 53 int32_t StartRecordingAudioFile(
54 OutStream& destStream, 54 OutStream& destStream,
55 const CodecInst& codecInst, 55 const CodecInst& codecInst,
56 uint32_t notificationTimeMs) override; 56 uint32_t notificationTimeMs) override;
57 int32_t StopRecording() override; 57 int32_t StopRecording() override;
58 bool IsRecording() const override; 58 bool IsRecording() const override;
59 int32_t codec_info(CodecInst& codecInst) const override; 59 int32_t codec_info(CodecInst& codecInst) const override;
60 int32_t RecordAudioToFile(const AudioFrame& frame) override; 60 int32_t RecordAudioToFile(const AudioFrame& frame) override;
61 int32_t StartRecordingVideoFile(
62 const char* fileName,
63 const CodecInst& audioCodecInst,
64 const VideoCodec& videoCodecInst,
65 bool videoOnly = false) override
66 {
67 return -1;
68 }
69 int32_t RecordVideoToFile(const VideoFrame& videoFrame) override {
70 return -1;
71 }
72 61
73 protected: 62 protected:
74 int32_t WriteEncodedAudioData(const int8_t* audioBuffer, 63 int32_t WriteEncodedAudioData(const int8_t* audioBuffer,
75 size_t bufferLength); 64 size_t bufferLength);
76 65
77 int32_t SetUpAudioEncoder(); 66 int32_t SetUpAudioEncoder();
78 67
79 uint32_t _instanceID; 68 uint32_t _instanceID;
80 FileFormats _fileFormat; 69 FileFormats _fileFormat;
81 MediaFile* _moduleFile; 70 MediaFile* _moduleFile;
82 71
83 private: 72 private:
84 CodecInst codec_info_; 73 CodecInst codec_info_;
85 int8_t _audioBuffer[MAX_AUDIO_BUFFER_IN_BYTES]; 74 int8_t _audioBuffer[MAX_AUDIO_BUFFER_IN_BYTES];
86 AudioCoder _audioEncoder; 75 AudioCoder _audioEncoder;
87 Resampler _audioResampler; 76 Resampler _audioResampler;
88 }; 77 };
89 } // namespace webrtc 78 } // namespace webrtc
90 #endif // WEBRTC_MODULES_UTILITY_SOURCE_FILE_RECORDER_IMPL_H_ 79 #endif // WEBRTC_MODULES_UTILITY_SOURCE_FILE_RECORDER_IMPL_H_
OLDNEW
« no previous file with comments | « webrtc/modules/utility/include/file_recorder.h ('k') | webrtc/modules/utility/source/file_recorder_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698