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

Side by Side Diff: webrtc/modules/utility/include/file_recorder.h

Issue 1888593004: Delete all use of tick_util.h. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebase. Created 4 years, 7 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 #ifndef WEBRTC_MODULES_UTILITY_INCLUDE_FILE_RECORDER_H_ 11 #ifndef WEBRTC_MODULES_UTILITY_INCLUDE_FILE_RECORDER_H_
12 #define WEBRTC_MODULES_UTILITY_INCLUDE_FILE_RECORDER_H_ 12 #define WEBRTC_MODULES_UTILITY_INCLUDE_FILE_RECORDER_H_
13 13
14 #include "webrtc/common_types.h" 14 #include "webrtc/common_types.h"
15 #include "webrtc/engine_configurations.h" 15 #include "webrtc/engine_configurations.h"
16 #include "webrtc/modules/include/module_common_types.h" 16 #include "webrtc/modules/include/module_common_types.h"
17 #include "webrtc/modules/media_file/media_file_defines.h" 17 #include "webrtc/modules/media_file/media_file_defines.h"
18 #include "webrtc/system_wrappers/include/tick_util.h"
19 #include "webrtc/typedefs.h" 18 #include "webrtc/typedefs.h"
20 #include "webrtc/video_frame.h" 19 #include "webrtc/video_frame.h"
21 20
22 namespace webrtc { 21 namespace webrtc {
23 22
24 class FileRecorder 23 class FileRecorder
25 { 24 {
26 public: 25 public:
27 26
28 // Note: will return NULL for unsupported formats. 27 // Note: will return NULL for unsupported formats.
(...skipping 22 matching lines...) Expand all
51 virtual int32_t StopRecording() = 0; 50 virtual int32_t StopRecording() = 0;
52 51
53 // Return true if recording. 52 // Return true if recording.
54 // Note: this API is for both audio and video. 53 // Note: this API is for both audio and video.
55 virtual bool IsRecording() const = 0; 54 virtual bool IsRecording() const = 0;
56 55
57 virtual int32_t codec_info(CodecInst& codecInst) const = 0; 56 virtual int32_t codec_info(CodecInst& codecInst) const = 0;
58 57
59 // Write frame to file. Frame should contain 10ms of un-ecoded audio data. 58 // Write frame to file. Frame should contain 10ms of un-ecoded audio data.
60 virtual int32_t RecordAudioToFile( 59 virtual int32_t RecordAudioToFile(
61 const AudioFrame& frame, 60 const AudioFrame& frame) = 0;
62 const TickTime* playoutTS = NULL) = 0;
63 61
64 // Open/create the file specified by fileName for writing audio/video data 62 // Open/create the file specified by fileName for writing audio/video data
65 // (relative path is allowed). audioCodecInst specifies the encoding of the 63 // (relative path is allowed). audioCodecInst specifies the encoding of the
66 // audio data. videoCodecInst specifies the encoding of the video data. 64 // audio data. videoCodecInst specifies the encoding of the video data.
67 // Only video data will be recorded if videoOnly is true. amrFormat 65 // Only video data will be recorded if videoOnly is true. amrFormat
68 // specifies the amr/amrwb storage format. 66 // specifies the amr/amrwb storage format.
69 // Note: the file format is AVI. 67 // Note: the file format is AVI.
70 virtual int32_t StartRecordingVideoFile( 68 virtual int32_t StartRecordingVideoFile(
71 const char* fileName, 69 const char* fileName,
72 const CodecInst& audioCodecInst, 70 const CodecInst& audioCodecInst,
73 const VideoCodec& videoCodecInst, 71 const VideoCodec& videoCodecInst,
74 bool videoOnly = false) = 0; 72 bool videoOnly = false) = 0;
75 73
76 // Record the video frame in videoFrame to AVI file. 74 // Record the video frame in videoFrame to AVI file.
77 virtual int32_t RecordVideoToFile(const VideoFrame& videoFrame) = 0; 75 virtual int32_t RecordVideoToFile(const VideoFrame& videoFrame) = 0;
78 76
79 protected: 77 protected:
80 virtual ~FileRecorder() {} 78 virtual ~FileRecorder() {}
81 79
82 }; 80 };
83 } // namespace webrtc 81 } // namespace webrtc
84 #endif // WEBRTC_MODULES_UTILITY_INCLUDE_FILE_RECORDER_H_ 82 #endif // WEBRTC_MODULES_UTILITY_INCLUDE_FILE_RECORDER_H_
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/ssrc_database.cc ('k') | webrtc/modules/utility/source/file_player_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698