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

Side by Side Diff: webrtc/modules/rtp_rtcp/source/rtp_sender_audio.h

Issue 2089773002: Add EncodedImageCallback::OnEncodedImage(). (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: . Created 4 years, 4 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 16 matching lines...) Expand all
27 RTPSenderAudio(Clock* clock, RTPSender* rtp_sender); 27 RTPSenderAudio(Clock* clock, RTPSender* rtp_sender);
28 virtual ~RTPSenderAudio(); 28 virtual ~RTPSenderAudio();
29 29
30 int32_t RegisterAudioPayload(const char payloadName[RTP_PAYLOAD_NAME_SIZE], 30 int32_t RegisterAudioPayload(const char payloadName[RTP_PAYLOAD_NAME_SIZE],
31 int8_t payload_type, 31 int8_t payload_type,
32 uint32_t frequency, 32 uint32_t frequency,
33 size_t channels, 33 size_t channels,
34 uint32_t rate, 34 uint32_t rate,
35 RtpUtility::Payload** payload); 35 RtpUtility::Payload** payload);
36 36
37 int32_t SendAudio(FrameType frame_type, 37 bool SendAudio(FrameType frame_type,
38 int8_t payload_type, 38 int8_t payload_type,
39 uint32_t capture_timestamp, 39 uint32_t capture_timestamp,
40 const uint8_t* payload_data, 40 const uint8_t* payload_data,
41 size_t payload_size, 41 size_t payload_size,
42 const RTPFragmentationHeader* fragmentation); 42 const RTPFragmentationHeader* fragmentation);
43 43
44 // set audio packet size, used to determine when it's time to send a DTMF 44 // set audio packet size, used to determine when it's time to send a DTMF
45 // packet in silence (CNG) 45 // packet in silence (CNG)
46 int32_t SetAudioPacketSize(uint16_t packet_size_samples); 46 int32_t SetAudioPacketSize(uint16_t packet_size_samples);
47 47
48 // Store the audio level in dBov for 48 // Store the audio level in dBov for
49 // header-extension-for-audio-level-indication. 49 // header-extension-for-audio-level-indication.
50 // Valid range is [0,100]. Actual value is negative. 50 // Valid range is [0,100]. Actual value is negative.
51 int32_t SetAudioLevel(uint8_t level_dbov); 51 int32_t SetAudioLevel(uint8_t level_dbov);
52 52
53 // Send a DTMF tone using RFC 2833 (4733) 53 // Send a DTMF tone using RFC 2833 (4733)
54 int32_t SendTelephoneEvent(uint8_t key, uint16_t time_ms, uint8_t level); 54 int32_t SendTelephoneEvent(uint8_t key, uint16_t time_ms, uint8_t level);
55 55
56 int AudioFrequency() const; 56 int AudioFrequency() const;
57 57
58 // Set payload type for Redundant Audio Data RFC 2198 58 // Set payload type for Redundant Audio Data RFC 2198
59 int32_t SetRED(int8_t payload_type); 59 int32_t SetRED(int8_t payload_type);
60 60
61 // Get payload type for Redundant Audio Data RFC 2198 61 // Get payload type for Redundant Audio Data RFC 2198
62 int32_t RED(int8_t* payload_type) const; 62 int32_t RED(int8_t* payload_type) const;
63 63
64 protected: 64 protected:
65 int32_t SendTelephoneEventPacket( 65 bool SendTelephoneEventPacket(
66 bool ended, 66 bool ended,
67 int8_t dtmf_payload_type, 67 int8_t dtmf_payload_type,
68 uint32_t dtmf_timestamp, 68 uint32_t dtmf_timestamp,
69 uint16_t duration, 69 uint16_t duration,
70 bool marker_bit); // set on first packet in talk burst 70 bool marker_bit); // set on first packet in talk burst
71 71
72 bool MarkerBit(FrameType frame_type, int8_t payload_type); 72 bool MarkerBit(FrameType frame_type, int8_t payload_type);
73 73
74 private: 74 private:
75 Clock* const clock_; 75 Clock* const clock_;
(...skipping 26 matching lines...) Expand all
102 102
103 // Audio level indication. 103 // Audio level indication.
104 // (https://datatracker.ietf.org/doc/draft-lennox-avt-rtp-audio-level-exthdr/) 104 // (https://datatracker.ietf.org/doc/draft-lennox-avt-rtp-audio-level-exthdr/)
105 uint8_t audio_level_dbov_ GUARDED_BY(send_audio_critsect_); 105 uint8_t audio_level_dbov_ GUARDED_BY(send_audio_critsect_);
106 OneTimeEvent first_packet_sent_; 106 OneTimeEvent first_packet_sent_;
107 }; 107 };
108 108
109 } // namespace webrtc 109 } // namespace webrtc
110 110
111 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_SENDER_AUDIO_H_ 111 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_SENDER_AUDIO_H_
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/rtp_sender.cc ('k') | webrtc/modules/rtp_rtcp/source/rtp_sender_audio.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698