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

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

Issue 1360173003: Remove last use of ACMAMRPackingFormat (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@util-codec-remove-amr
Patch Set: Created 5 years, 2 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
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 public: 43 public:
44 FileRecorderImpl(uint32_t instanceID, FileFormats fileFormat); 44 FileRecorderImpl(uint32_t instanceID, FileFormats fileFormat);
45 virtual ~FileRecorderImpl(); 45 virtual ~FileRecorderImpl();
46 46
47 // FileRecorder functions. 47 // FileRecorder functions.
48 virtual int32_t RegisterModuleFileCallback(FileCallback* callback); 48 virtual int32_t RegisterModuleFileCallback(FileCallback* callback);
49 virtual FileFormats RecordingFileFormat() const; 49 virtual FileFormats RecordingFileFormat() const;
50 virtual int32_t StartRecordingAudioFile( 50 virtual int32_t StartRecordingAudioFile(
51 const char* fileName, 51 const char* fileName,
52 const CodecInst& codecInst, 52 const CodecInst& codecInst,
53 uint32_t notificationTimeMs, 53 uint32_t notificationTimeMs) override;
54 ACMAMRPackingFormat amrFormat = AMRFileStorage);
55 virtual int32_t StartRecordingAudioFile( 54 virtual int32_t StartRecordingAudioFile(
56 OutStream& destStream, 55 OutStream& destStream,
57 const CodecInst& codecInst, 56 const CodecInst& codecInst,
58 uint32_t notificationTimeMs, 57 uint32_t notificationTimeMs) override;
59 ACMAMRPackingFormat amrFormat = AMRFileStorage);
60 virtual int32_t StopRecording(); 58 virtual int32_t StopRecording();
61 virtual bool IsRecording() const; 59 virtual bool IsRecording() const;
62 virtual int32_t codec_info(CodecInst& codecInst) const; 60 virtual int32_t codec_info(CodecInst& codecInst) const;
63 virtual int32_t RecordAudioToFile( 61 virtual int32_t RecordAudioToFile(
64 const AudioFrame& frame, 62 const AudioFrame& frame,
65 const TickTime* playoutTS = NULL); 63 const TickTime* playoutTS = NULL);
66 virtual int32_t StartRecordingVideoFile( 64 virtual int32_t StartRecordingVideoFile(
67 const char* fileName, 65 const char* fileName,
68 const CodecInst& audioCodecInst, 66 const CodecInst& audioCodecInst,
69 const VideoCodec& videoCodecInst, 67 const VideoCodec& videoCodecInst,
70 ACMAMRPackingFormat amrFormat = AMRFileStorage, 68 bool videoOnly = false) override
71 bool videoOnly = false)
72 { 69 {
73 return -1; 70 return -1;
74 } 71 }
75 virtual int32_t RecordVideoToFile(const VideoFrame& videoFrame) { 72 virtual int32_t RecordVideoToFile(const VideoFrame& videoFrame) {
76 return -1; 73 return -1;
77 } 74 }
78 75
79 protected: 76 protected:
80 int32_t WriteEncodedAudioData(const int8_t* audioBuffer, 77 int32_t WriteEncodedAudioData(const int8_t* audioBuffer,
81 size_t bufferLength); 78 size_t bufferLength);
82 79
83 int32_t SetUpAudioEncoder(); 80 int32_t SetUpAudioEncoder();
84 81
85 uint32_t _instanceID; 82 uint32_t _instanceID;
86 FileFormats _fileFormat; 83 FileFormats _fileFormat;
87 MediaFile* _moduleFile; 84 MediaFile* _moduleFile;
88 85
89 private: 86 private:
90 CodecInst codec_info_; 87 CodecInst codec_info_;
91 ACMAMRPackingFormat _amrFormat;
92
93 int8_t _audioBuffer[MAX_AUDIO_BUFFER_IN_BYTES]; 88 int8_t _audioBuffer[MAX_AUDIO_BUFFER_IN_BYTES];
94 AudioCoder _audioEncoder; 89 AudioCoder _audioEncoder;
95 Resampler _audioResampler; 90 Resampler _audioResampler;
96 }; 91 };
97 } // namespace webrtc 92 } // namespace webrtc
98 #endif // WEBRTC_MODULES_UTILITY_SOURCE_FILE_RECORDER_IMPL_H_ 93 #endif // WEBRTC_MODULES_UTILITY_SOURCE_FILE_RECORDER_IMPL_H_
OLDNEW
« no previous file with comments | « webrtc/modules/utility/interface/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