andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2012 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 | #ifndef WEBRTC_VIDEO_ENGINE_VIE_ENCODER_H_ |
| 12 | #define WEBRTC_VIDEO_ENGINE_VIE_ENCODER_H_ |
| 13 | |
mflodman@webrtc.org | b6d9cfc | 2012-10-25 11:30:29 | [diff] [blame] | 14 | #include <list> |
| 15 | #include <map> |
mflodman@webrtc.org | c51222c | 2015-02-06 13:10:19 | [diff] [blame] | 16 | #include <vector> |
mflodman@webrtc.org | b6d9cfc | 2012-10-25 11:30:29 | [diff] [blame] | 17 | |
mflodman@webrtc.org | 867d288 | 2015-02-10 08:58:16 | [diff] [blame] | 18 | #include "webrtc/base/scoped_ptr.h" |
pbos@webrtc.org | d54aa96 | 2014-09-24 06:05:00 | [diff] [blame] | 19 | #include "webrtc/base/thread_annotations.h" |
pbos@webrtc.org | 281cff8 | 2013-05-17 13:44:48 | [diff] [blame] | 20 | #include "webrtc/common_types.h" |
stefan@webrtc.org | 3ada29b | 2015-03-04 12:24:26 | [diff] [blame] | 21 | #include "webrtc/modules/bitrate_controller/include/bitrate_allocator.h" |
pbos@webrtc.org | 281cff8 | 2013-05-17 13:44:48 | [diff] [blame] | 22 | #include "webrtc/modules/bitrate_controller/include/bitrate_controller.h" |
| 23 | #include "webrtc/modules/rtp_rtcp/interface/rtp_rtcp_defines.h" |
| 24 | #include "webrtc/modules/video_coding/main/interface/video_coding_defines.h" |
| 25 | #include "webrtc/modules/video_processing/main/interface/video_processing.h" |
pbos@webrtc.org | 281cff8 | 2013-05-17 13:44:48 | [diff] [blame] | 26 | #include "webrtc/typedefs.h" |
pbos@webrtc.org | 24e2089 | 2013-10-28 16:32:01 | [diff] [blame] | 27 | #include "webrtc/frame_callback.h" |
mflodman@webrtc.org | de41287 | 2015-02-20 12:45:40 | [diff] [blame] | 28 | #include "webrtc/system_wrappers/interface/scoped_refptr.h" |
pbos@webrtc.org | 281cff8 | 2013-05-17 13:44:48 | [diff] [blame] | 29 | #include "webrtc/video_engine/vie_defines.h" |
pbos@webrtc.org | 281cff8 | 2013-05-17 13:44:48 | [diff] [blame] | 30 | #include "webrtc/video_engine/vie_frame_provider_base.h" |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 | [diff] [blame] | 31 | |
| 32 | namespace webrtc { |
| 33 | |
andresp@webrtc.org | ac6d919 | 2013-05-13 10:50:50 | [diff] [blame] | 34 | class Config; |
mflodman@webrtc.org | bf76ae2 | 2013-07-23 11:35:00 | [diff] [blame] | 35 | class CriticalSectionWrapper; |
sprang@webrtc.org | 2e98d45 | 2013-11-26 11:41:59 | [diff] [blame] | 36 | class EncodedImageCallback; |
pwestin@webrtc.org | 5e87b5f | 2012-11-13 21:12:39 | [diff] [blame] | 37 | class PacedSender; |
mflodman@webrtc.org | c51222c | 2015-02-06 13:10:19 | [diff] [blame] | 38 | class PayloadRouter; |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 | [diff] [blame] | 39 | class ProcessThread; |
| 40 | class QMVideoSettingsCallback; |
pbos@webrtc.org | ee9497c | 2014-12-01 15:23:21 | [diff] [blame] | 41 | class SendStatisticsProxy; |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 | [diff] [blame] | 42 | class ViEBitrateObserver; |
| 43 | class ViEEffectFilter; |
| 44 | class ViEEncoderObserver; |
mflodman@webrtc.org | bf76ae2 | 2013-07-23 11:35:00 | [diff] [blame] | 45 | class VideoCodingModule; |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 | [diff] [blame] | 46 | |
| 47 | class ViEEncoder |
| 48 | : public RtcpIntraFrameObserver, |
pbos@webrtc.org | 34c89ae | 2015-02-26 13:15:22 | [diff] [blame] | 49 | public VideoEncoderRateObserver, |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 | [diff] [blame] | 50 | public VCMPacketizationCallback, |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 | [diff] [blame] | 51 | public VCMSendStatisticsCallback, |
| 52 | public ViEFrameCallback { |
| 53 | public: |
| 54 | friend class ViEBitrateObserver; |
| 55 | |
mflodman@webrtc.org | 80ea58d | 2015-02-26 12:57:47 | [diff] [blame] | 56 | ViEEncoder(int32_t channel_id, |
pbos@webrtc.org | 67879bc | 2013-04-09 13:41:51 | [diff] [blame] | 57 | uint32_t number_of_cores, |
andresp@webrtc.org | ac6d919 | 2013-05-13 10:50:50 | [diff] [blame] | 58 | const Config& config, |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 | [diff] [blame] | 59 | ProcessThread& module_process_thread, |
Stefan Holmer | ca55fa1 | 2015-03-26 10:11:06 | [diff] [blame] | 60 | PacedSender* pacer, |
stefan@webrtc.org | 3ada29b | 2015-03-04 12:24:26 | [diff] [blame] | 61 | BitrateAllocator* bitrate_allocator, |
pbos@webrtc.org | cbcd7bf | 2015-02-13 08:00:06 | [diff] [blame] | 62 | BitrateController* bitrate_controller, |
| 63 | bool disable_default_encoder); |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 | [diff] [blame] | 64 | ~ViEEncoder(); |
| 65 | |
| 66 | bool Init(); |
| 67 | |
mflodman@webrtc.org | aca8c5e | 2015-02-17 10:15:06 | [diff] [blame] | 68 | // This function is assumed to be called before any frames are delivered and |
| 69 | // only once. |
| 70 | // Ideally this would be done in Init, but the dependencies between ViEEncoder |
| 71 | // and ViEChannel makes it really hard to do in a good way. |
mflodman@webrtc.org | 52be6c2 | 2015-02-25 13:50:10 | [diff] [blame] | 72 | void StartThreadsAndSetSharedMembers( |
| 73 | scoped_refptr<PayloadRouter> send_payload_router, |
| 74 | VCMProtectionCallback* vcm_protection_callback); |
mflodman@webrtc.org | aca8c5e | 2015-02-17 10:15:06 | [diff] [blame] | 75 | |
| 76 | // This function must be called before the corresponding ViEChannel is |
| 77 | // deleted. |
mflodman@webrtc.org | 52be6c2 | 2015-02-25 13:50:10 | [diff] [blame] | 78 | void StopThreadsAndRemoveSharedMembers(); |
mflodman@webrtc.org | c51222c | 2015-02-06 13:10:19 | [diff] [blame] | 79 | |
stefan@webrtc.org | dca71b2 | 2013-03-27 16:36:01 | [diff] [blame] | 80 | void SetNetworkTransmissionState(bool is_transmitting); |
| 81 | |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 | [diff] [blame] | 82 | // Returns the id of the owning channel. |
| 83 | int Owner() const; |
| 84 | |
| 85 | // Drops incoming packets before they get to the encoder. |
| 86 | void Pause(); |
| 87 | void Restart(); |
| 88 | |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 | [diff] [blame] | 89 | // Codec settings. |
pbos@webrtc.org | 67879bc | 2013-04-09 13:41:51 | [diff] [blame] | 90 | uint8_t NumberOfCodecs(); |
| 91 | int32_t GetCodec(uint8_t list_index, VideoCodec* video_codec); |
| 92 | int32_t RegisterExternalEncoder(VideoEncoder* encoder, |
| 93 | uint8_t pl_type, |
| 94 | bool internal_source); |
| 95 | int32_t DeRegisterExternalEncoder(uint8_t pl_type); |
| 96 | int32_t SetEncoder(const VideoCodec& video_codec); |
| 97 | int32_t GetEncoder(VideoCodec* video_codec); |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 | [diff] [blame] | 98 | |
pbos@webrtc.org | 67879bc | 2013-04-09 13:41:51 | [diff] [blame] | 99 | int32_t GetCodecConfigParameters( |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 | [diff] [blame] | 100 | unsigned char config_parameters[kConfigParameterSize], |
| 101 | unsigned char& config_parameters_size); |
| 102 | |
| 103 | // Scale or crop/pad image. |
pbos@webrtc.org | 67879bc | 2013-04-09 13:41:51 | [diff] [blame] | 104 | int32_t ScaleInputImage(bool enable); |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 | [diff] [blame] | 105 | |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 | [diff] [blame] | 106 | // Implementing ViEFrameCallback. |
kjellander@webrtc.org | 860ac53 | 2015-03-04 12:58:35 | [diff] [blame] | 107 | void DeliverFrame(int id, |
Magnus Jedvert | 63d65b0 | 2015-04-07 12:07:41 | [diff] [blame] | 108 | const I420VideoFrame& video_frame, |
kjellander@webrtc.org | 860ac53 | 2015-03-04 12:58:35 | [diff] [blame] | 109 | const std::vector<uint32_t>& csrcs) override; |
| 110 | void DelayChanged(int id, int frame_delay) override; |
| 111 | int GetPreferedFrameSettings(int* width, |
| 112 | int* height, |
| 113 | int* frame_rate) override; |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 | [diff] [blame] | 114 | |
kjellander@webrtc.org | 860ac53 | 2015-03-04 12:58:35 | [diff] [blame] | 115 | void ProviderDestroyed(int id) override { return; } |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 | [diff] [blame] | 116 | |
pbos@webrtc.org | 67879bc | 2013-04-09 13:41:51 | [diff] [blame] | 117 | int32_t SendKeyFrame(); |
| 118 | int32_t SendCodecStatistics(uint32_t* num_key_frames, |
| 119 | uint32_t* num_delta_frames); |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 | [diff] [blame] | 120 | |
pbos@webrtc.org | 7131030 | 2015-03-18 14:40:03 | [diff] [blame] | 121 | uint32_t LastObservedBitrateBps() const; |
pbos@webrtc.org | 67879bc | 2013-04-09 13:41:51 | [diff] [blame] | 122 | int CodecTargetBitrate(uint32_t* bitrate) const; |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 | [diff] [blame] | 123 | // Loss protection. |
mflodman@webrtc.org | 52be6c2 | 2015-02-25 13:50:10 | [diff] [blame] | 124 | int32_t UpdateProtectionMethod(bool nack, bool fec); |
wu@webrtc.org | 7fc75bb | 2013-08-15 23:38:54 | [diff] [blame] | 125 | bool nack_enabled() const { return nack_enabled_; } |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 | [diff] [blame] | 126 | |
mikhal@webrtc.org | 9d6fcb3 | 2013-02-15 23:22:18 | [diff] [blame] | 127 | // Buffering mode. |
| 128 | void SetSenderBufferingMode(int target_delay_ms); |
mikhal@webrtc.org | 0c66de6 | 2013-02-10 18:42:55 | [diff] [blame] | 129 | |
pbos@webrtc.org | 34c89ae | 2015-02-26 13:15:22 | [diff] [blame] | 130 | // Implements VideoEncoderRateObserver. |
| 131 | void OnSetRates(uint32_t bitrate_bps, int framerate) override; |
| 132 | |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 | [diff] [blame] | 133 | // Implements VCMPacketizationCallback. |
kjellander@webrtc.org | 860ac53 | 2015-03-04 12:58:35 | [diff] [blame] | 134 | int32_t SendData(uint8_t payload_type, |
| 135 | const EncodedImage& encoded_image, |
| 136 | const RTPFragmentationHeader& fragmentation_header, |
| 137 | const RTPVideoHeader* rtp_video_hdr) override; |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 | [diff] [blame] | 138 | |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 | [diff] [blame] | 139 | // Implements VideoSendStatisticsCallback. |
kjellander@webrtc.org | 860ac53 | 2015-03-04 12:58:35 | [diff] [blame] | 140 | int32_t SendStatistics(const uint32_t bit_rate, |
| 141 | const uint32_t frame_rate) override; |
henrike@webrtc.org | 9cd0bbc | 2014-09-11 22:45:54 | [diff] [blame] | 142 | |
pbos@webrtc.org | 67879bc | 2013-04-09 13:41:51 | [diff] [blame] | 143 | int32_t RegisterCodecObserver(ViEEncoderObserver* observer); |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 | [diff] [blame] | 144 | |
| 145 | // Implements RtcpIntraFrameObserver. |
kjellander@webrtc.org | 860ac53 | 2015-03-04 12:58:35 | [diff] [blame] | 146 | void OnReceivedIntraFrameRequest(uint32_t ssrc) override; |
| 147 | void OnReceivedSLI(uint32_t ssrc, uint8_t picture_id) override; |
| 148 | void OnReceivedRPSI(uint32_t ssrc, uint64_t picture_id) override; |
| 149 | void OnLocalSsrcChanged(uint32_t old_ssrc, uint32_t new_ssrc) override; |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 | [diff] [blame] | 150 | |
mflodman@webrtc.org | b6d9cfc | 2012-10-25 11:30:29 | [diff] [blame] | 151 | // Sets SSRCs for all streams. |
| 152 | bool SetSsrcs(const std::list<unsigned int>& ssrcs); |
| 153 | |
pbos@webrtc.org | 3f83f9c | 2014-03-13 12:52:27 | [diff] [blame] | 154 | void SetMinTransmitBitrate(int min_transmit_bitrate_kbps); |
| 155 | |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 | [diff] [blame] | 156 | // Effect filter. |
pbos@webrtc.org | 67879bc | 2013-04-09 13:41:51 | [diff] [blame] | 157 | int32_t RegisterEffectFilter(ViEEffectFilter* effect_filter); |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 | [diff] [blame] | 158 | |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 | [diff] [blame] | 159 | // Enables recording of debugging information. |
henrike@webrtc.org | 9cd0bbc | 2014-09-11 22:45:54 | [diff] [blame] | 160 | int StartDebugRecording(const char* fileNameUTF8); |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 | [diff] [blame] | 161 | |
| 162 | // Disables recording of debugging information. |
henrike@webrtc.org | 9cd0bbc | 2014-09-11 22:45:54 | [diff] [blame] | 163 | int StopDebugRecording(); |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 | [diff] [blame] | 164 | |
henrik.lundin@webrtc.org | 4590177 | 2013-11-18 12:18:43 | [diff] [blame] | 165 | // Lets the sender suspend video when the rate drops below |
henrik.lundin@webrtc.org | 39079d1 | 2013-10-02 13:34:26 | [diff] [blame] | 166 | // |threshold_bps|, and turns back on when the rate goes back up above |
| 167 | // |threshold_bps| + |window_bps|. |
henrike@webrtc.org | 9cd0bbc | 2014-09-11 22:45:54 | [diff] [blame] | 168 | void SuspendBelowMinBitrate(); |
henrik.lundin@webrtc.org | 39079d1 | 2013-10-02 13:34:26 | [diff] [blame] | 169 | |
sprang@webrtc.org | 2e98d45 | 2013-11-26 11:41:59 | [diff] [blame] | 170 | // New-style callbacks, used by VideoSendStream. |
pbos@webrtc.org | 63301bd | 2013-10-21 10:34:43 | [diff] [blame] | 171 | void RegisterPreEncodeCallback(I420FrameCallback* pre_encode_callback); |
| 172 | void DeRegisterPreEncodeCallback(); |
sprang@webrtc.org | 2e98d45 | 2013-11-26 11:41:59 | [diff] [blame] | 173 | void RegisterPostEncodeImageCallback( |
| 174 | EncodedImageCallback* post_encode_callback); |
| 175 | void DeRegisterPostEncodeImageCallback(); |
pbos@webrtc.org | 63301bd | 2013-10-21 10:34:43 | [diff] [blame] | 176 | |
pbos@webrtc.org | ee9497c | 2014-12-01 15:23:21 | [diff] [blame] | 177 | void RegisterSendStatisticsProxy(SendStatisticsProxy* send_statistics_proxy); |
| 178 | |
mflodman@webrtc.org | ff9854b | 2012-10-25 13:06:22 | [diff] [blame] | 179 | int channel_id() const { return channel_id_; } |
sprang@webrtc.org | 2e98d45 | 2013-11-26 11:41:59 | [diff] [blame] | 180 | |
Stefan Holmer | ca55fa1 | 2015-03-26 10:11:06 | [diff] [blame] | 181 | int GetPaddingNeededBps(int bitrate_bps) const; |
| 182 | |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 | [diff] [blame] | 183 | protected: |
| 184 | // Called by BitrateObserver. |
stefan@webrtc.org | a5f17c8 | 2014-12-08 19:46:23 | [diff] [blame] | 185 | void OnNetworkChanged(uint32_t bitrate_bps, |
| 186 | uint8_t fraction_lost, |
pkasting@chromium.org | a3166c4 | 2015-01-12 21:51:21 | [diff] [blame] | 187 | int64_t round_trip_time_ms); |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 | [diff] [blame] | 188 | |
| 189 | private: |
stefan@webrtc.org | fedbe8b | 2014-07-09 14:46:31 | [diff] [blame] | 190 | bool EncoderPaused() const EXCLUSIVE_LOCKS_REQUIRED(data_cs_); |
sprang@webrtc.org | 9a8c28f | 2014-11-04 16:27:16 | [diff] [blame] | 191 | void TraceFrameDropStart() EXCLUSIVE_LOCKS_REQUIRED(data_cs_); |
| 192 | void TraceFrameDropEnd() EXCLUSIVE_LOCKS_REQUIRED(data_cs_); |
stefan@webrtc.org | dca71b2 | 2013-03-27 16:36:01 | [diff] [blame] | 193 | |
asapersson@webrtc.org | ed94bc8 | 2014-11-03 14:40:38 | [diff] [blame] | 194 | void UpdateHistograms(); |
| 195 | |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 | [diff] [blame] | 196 | const int channel_id_; |
pbos@webrtc.org | 67879bc | 2013-04-09 13:41:51 | [diff] [blame] | 197 | const uint32_t number_of_cores_; |
pbos@webrtc.org | cbcd7bf | 2015-02-13 08:00:06 | [diff] [blame] | 198 | const bool disable_default_encoder_; |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 | [diff] [blame] | 199 | |
mflodman | 2335164 | 2015-04-14 19:28:08 | [diff] [blame] | 200 | const rtc::scoped_ptr<VideoProcessingModule> vpm_; |
| 201 | const rtc::scoped_ptr<QMVideoSettingsCallback> qm_callback_; |
| 202 | const rtc::scoped_ptr<VideoCodingModule> vcm_; |
mflodman@webrtc.org | de41287 | 2015-02-20 12:45:40 | [diff] [blame] | 203 | scoped_refptr<PayloadRouter> send_payload_router_; |
mflodman@webrtc.org | 52be6c2 | 2015-02-25 13:50:10 | [diff] [blame] | 204 | |
mflodman@webrtc.org | 867d288 | 2015-02-10 08:58:16 | [diff] [blame] | 205 | rtc::scoped_ptr<CriticalSectionWrapper> callback_cs_; |
| 206 | rtc::scoped_ptr<CriticalSectionWrapper> data_cs_; |
| 207 | rtc::scoped_ptr<BitrateObserver> bitrate_observer_; |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 | [diff] [blame] | 208 | |
Stefan Holmer | ca55fa1 | 2015-03-26 10:11:06 | [diff] [blame] | 209 | PacedSender* const pacer_; |
stefan@webrtc.org | 3ada29b | 2015-03-04 12:24:26 | [diff] [blame] | 210 | BitrateAllocator* const bitrate_allocator_; |
| 211 | BitrateController* const bitrate_controller_; |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 | [diff] [blame] | 212 | |
Noah Richards | 14cb949 | 2015-04-15 16:14:12 | [diff] [blame^] | 213 | // The time we last received an input frame or encoded frame. This is used to |
| 214 | // track when video is stopped long enough that we also want to stop sending |
| 215 | // padding. |
| 216 | int64_t time_of_last_frame_activity_ms_ GUARDED_BY(data_cs_); |
stefan@webrtc.org | fedbe8b | 2014-07-09 14:46:31 | [diff] [blame] | 217 | bool send_padding_ GUARDED_BY(data_cs_); |
pbos@webrtc.org | 3f83f9c | 2014-03-13 12:52:27 | [diff] [blame] | 218 | int min_transmit_bitrate_kbps_ GUARDED_BY(data_cs_); |
pbos@webrtc.org | 7131030 | 2015-03-18 14:40:03 | [diff] [blame] | 219 | uint32_t last_observed_bitrate_bps_ GUARDED_BY(data_cs_); |
stefan@webrtc.org | fedbe8b | 2014-07-09 14:46:31 | [diff] [blame] | 220 | int target_delay_ms_ GUARDED_BY(data_cs_); |
| 221 | bool network_is_transmitting_ GUARDED_BY(data_cs_); |
| 222 | bool encoder_paused_ GUARDED_BY(data_cs_); |
| 223 | bool encoder_paused_and_dropped_frame_ GUARDED_BY(data_cs_); |
| 224 | std::map<unsigned int, int64_t> time_last_intra_request_ms_ |
| 225 | GUARDED_BY(data_cs_); |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 | [diff] [blame] | 226 | |
| 227 | bool fec_enabled_; |
| 228 | bool nack_enabled_; |
| 229 | |
pbos@webrtc.org | 3f83f9c | 2014-03-13 12:52:27 | [diff] [blame] | 230 | ViEEncoderObserver* codec_observer_ GUARDED_BY(callback_cs_); |
stefan@webrtc.org | fedbe8b | 2014-07-09 14:46:31 | [diff] [blame] | 231 | ViEEffectFilter* effect_filter_ GUARDED_BY(callback_cs_); |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 | [diff] [blame] | 232 | ProcessThread& module_process_thread_; |
| 233 | |
stefan@webrtc.org | fedbe8b | 2014-07-09 14:46:31 | [diff] [blame] | 234 | bool has_received_sli_ GUARDED_BY(data_cs_); |
| 235 | uint8_t picture_id_sli_ GUARDED_BY(data_cs_); |
| 236 | bool has_received_rpsi_ GUARDED_BY(data_cs_); |
| 237 | uint64_t picture_id_rpsi_ GUARDED_BY(data_cs_); |
| 238 | std::map<unsigned int, int> ssrc_streams_ GUARDED_BY(data_cs_); |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 | [diff] [blame] | 239 | |
stefan@webrtc.org | fedbe8b | 2014-07-09 14:46:31 | [diff] [blame] | 240 | bool video_suspended_ GUARDED_BY(data_cs_); |
| 241 | I420FrameCallback* pre_encode_callback_ GUARDED_BY(callback_cs_); |
asapersson@webrtc.org | ed94bc8 | 2014-11-03 14:40:38 | [diff] [blame] | 242 | const int64_t start_ms_; |
pbos@webrtc.org | ee9497c | 2014-12-01 15:23:21 | [diff] [blame] | 243 | |
pbos@webrtc.org | 34c89ae | 2015-02-26 13:15:22 | [diff] [blame] | 244 | SendStatisticsProxy* send_statistics_proxy_ GUARDED_BY(callback_cs_); |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 | [diff] [blame] | 245 | }; |
| 246 | |
| 247 | } // namespace webrtc |
| 248 | |
| 249 | #endif // WEBRTC_VIDEO_ENGINE_VIE_ENCODER_H_ |