blob: 2feee27427f719d8d8e394361c773be7c1d04349 [file] [log] [blame]
niklase@google.com470e71d2011-07-07 08:21:25 +00001/*
stefan@webrtc.org07b45a52012-02-02 08:37:48 +00002 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
niklase@google.com470e71d2011-07-07 08:21:25 +00003 *
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
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020011#ifndef VIDEO_VIDEO_STREAM_ENCODER_H_
12#define VIDEO_VIDEO_STREAM_ENCODER_H_
niklase@google.com470e71d2011-07-07 08:21:25 +000013
Yuwei Huangd9f99c12017-10-24 15:40:52 -070014#include <atomic>
sprangc5d62e22017-04-02 23:53:04 -070015#include <map>
kwiberg27f982b2016-03-01 11:52:33 -080016#include <memory>
perkj376b1922016-05-02 11:35:24 -070017#include <string>
mflodman@webrtc.org02270cd2015-02-06 13:10:19 +000018#include <vector>
mflodman@webrtc.orgd6ec3862012-10-25 11:30:29 +000019
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020020#include "api/video/video_rotation.h"
21#include "api/video_codecs/video_encoder.h"
Niels Möllerc6ce9c52018-05-11 11:15:30 +020022#include "api/video/video_sink_interface.h"
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020023#include "call/call.h"
Mirko Bonadei71207422017-09-15 13:58:09 +020024#include "common_types.h" // NOLINT(build/include)
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020025#include "common_video/include/video_bitrate_allocator.h"
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020026#include "modules/video_coding/include/video_coding_defines.h"
27#include "modules/video_coding/utility/quality_scaler.h"
28#include "modules/video_coding/video_coding_impl.h"
29#include "rtc_base/criticalsection.h"
30#include "rtc_base/event.h"
31#include "rtc_base/sequenced_task_checker.h"
32#include "rtc_base/task_queue.h"
Mirko Bonadei71207422017-09-15 13:58:09 +020033#include "typedefs.h" // NOLINT(build/include)
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020034#include "video/overuse_frame_detector.h"
35#include "call/video_send_stream.h"
niklase@google.com470e71d2011-07-07 08:21:25 +000036
37namespace webrtc {
mflodman@webrtc.org84d17832011-12-01 17:02:23 +000038
pbos@webrtc.org273a4142014-12-01 15:23:21 +000039class SendStatisticsProxy;
sprang1a646ee2016-12-01 06:34:11 -080040class VideoBitrateAllocationObserver;
niklase@google.com470e71d2011-07-07 08:21:25 +000041
Sebastian Jansson652dc912018-04-19 17:09:15 +020042class VideoStreamEncoderInterface : public rtc::VideoSinkInterface<VideoFrame> {
mflodman@webrtc.org84d17832011-12-01 17:02:23 +000043 public:
Per512ecb32016-09-23 15:52:06 +020044 // Interface for receiving encoded video frames and notifications about
45 // configuration changes.
46 class EncoderSink : public EncodedImageCallback {
47 public:
48 virtual void OnEncoderConfigurationChanged(
49 std::vector<VideoStream> streams,
50 int min_transmit_bitrate_bps) = 0;
51 };
Sebastian Jansson652dc912018-04-19 17:09:15 +020052 virtual void SetSource(
53 rtc::VideoSourceInterface<VideoFrame>* source,
54 const VideoSendStream::DegradationPreference& degradation_preference) = 0;
55 virtual void SetSink(EncoderSink* sink, bool rotation_applied) = 0;
Per512ecb32016-09-23 15:52:06 +020056
Sebastian Jansson652dc912018-04-19 17:09:15 +020057 virtual void SetStartBitrate(int start_bitrate_bps) = 0;
58 virtual void SendKeyFrame() = 0;
59 virtual void OnBitrateUpdated(uint32_t bitrate_bps,
60 uint8_t fraction_lost,
61 int64_t round_trip_time_ms) = 0;
62
63 virtual void SetBitrateObserver(
64 VideoBitrateAllocationObserver* bitrate_observer) = 0;
65 virtual void ConfigureEncoder(VideoEncoderConfig config,
Niels Möllerf1338562018-04-26 09:51:47 +020066 size_t max_data_payload_length) = 0;
Sebastian Jansson652dc912018-04-19 17:09:15 +020067 virtual void Stop() = 0;
68
69 protected:
70 ~VideoStreamEncoderInterface() = default;
71};
72// VideoStreamEncoder represent a video encoder that accepts raw video frames as
73// input and produces an encoded bit stream.
74// Usage:
75// Instantiate.
76// Call SetSink.
77// Call SetSource.
78// Call ConfigureEncoder with the codec settings.
79// Call Stop() when done.
80class VideoStreamEncoder : public VideoStreamEncoderInterface,
81 private EncodedImageCallback,
82 // Protected only to provide access to tests.
83 protected AdaptationObserverInterface {
84 public:
asapersson09f05612017-05-15 23:40:18 -070085 // Number of resolution and framerate reductions (-1: disabled).
86 struct AdaptCounts {
87 int resolution = 0;
88 int fps = 0;
89 };
90
mflodmancc3d4422017-08-03 08:27:51 -070091 VideoStreamEncoder(uint32_t number_of_cores,
92 SendStatisticsProxy* stats_proxy,
93 const VideoSendStream::Config::EncoderSettings& settings,
94 rtc::VideoSinkInterface<VideoFrame>* pre_encode_callback,
mflodmancc3d4422017-08-03 08:27:51 -070095 std::unique_ptr<OveruseFrameDetector> overuse_detector);
96 ~VideoStreamEncoder();
niklase@google.com470e71d2011-07-07 08:21:25 +000097
perkj803d97f2016-11-01 11:45:46 -070098 // Sets the source that will provide I420 video frames.
99 // |degradation_preference| control whether or not resolution or frame rate
100 // may be reduced.
Sebastian Jansson652dc912018-04-19 17:09:15 +0200101 void SetSource(rtc::VideoSourceInterface<VideoFrame>* source,
102 const VideoSendStream::DegradationPreference&
103 degradation_preference) override;
perkj803d97f2016-11-01 11:45:46 -0700104
105 // Sets the |sink| that gets the encoded frames. |rotation_applied| means
106 // that the source must support rotation. Only set |rotation_applied| if the
107 // remote side does not support the rotation extension.
Sebastian Jansson652dc912018-04-19 17:09:15 +0200108 void SetSink(EncoderSink* sink, bool rotation_applied) override;
mflodman@webrtc.org02270cd2015-02-06 13:10:19 +0000109
perkj26091b12016-09-01 01:17:40 -0700110 // TODO(perkj): Can we remove VideoCodec.startBitrate ?
Sebastian Jansson652dc912018-04-19 17:09:15 +0200111 void SetStartBitrate(int start_bitrate_bps) override;
mflodman@webrtc.org9ec883e2012-03-05 17:12:41 +0000112
Sebastian Jansson652dc912018-04-19 17:09:15 +0200113 void SetBitrateObserver(
114 VideoBitrateAllocationObserver* bitrate_observer) override;
sprang1a646ee2016-12-01 06:34:11 -0800115
Per512ecb32016-09-23 15:52:06 +0200116 void ConfigureEncoder(VideoEncoderConfig config,
Niels Möllerf1338562018-04-26 09:51:47 +0200117 size_t max_data_payload_length) override;
niklase@google.com470e71d2011-07-07 08:21:25 +0000118
perkj26091b12016-09-01 01:17:40 -0700119 // Permanently stop encoding. After this method has returned, it is
120 // guaranteed that no encoded frames will be delivered to the sink.
Sebastian Jansson652dc912018-04-19 17:09:15 +0200121 void Stop() override;
perkj26091b12016-09-01 01:17:40 -0700122
Sebastian Jansson652dc912018-04-19 17:09:15 +0200123 void SendKeyFrame() override;
mflodman@webrtc.orgd6ec3862012-10-25 11:30:29 +0000124
mflodman86aabb22016-03-11 15:44:32 +0100125 void OnBitrateUpdated(uint32_t bitrate_bps,
stefan@webrtc.orgedeea912014-12-08 19:46:23 +0000126 uint8_t fraction_lost,
Sebastian Jansson652dc912018-04-19 17:09:15 +0200127 int64_t round_trip_time_ms) override;
pwestin@webrtc.org49888ce2012-04-27 05:25:53 +0000128
perkj803d97f2016-11-01 11:45:46 -0700129 protected:
kthelgason876222f2016-11-29 01:44:11 -0800130 // Used for testing. For example the |ScalingObserverInterface| methods must
131 // be called on |encoder_queue_|.
perkj803d97f2016-11-01 11:45:46 -0700132 rtc::TaskQueue* encoder_queue() { return &encoder_queue_; }
133
Niels Möllerd692ef92017-10-04 15:28:55 +0200134 // AdaptationObserverInterface implementation.
perkj803d97f2016-11-01 11:45:46 -0700135 // These methods are protected for easier testing.
sprangb1ca0732017-02-01 08:38:12 -0800136 void AdaptUp(AdaptReason reason) override;
137 void AdaptDown(AdaptReason reason) override;
perkj803d97f2016-11-01 11:45:46 -0700138
mflodman@webrtc.org84d17832011-12-01 17:02:23 +0000139 private:
perkja49cbd32016-09-16 07:53:41 -0700140 class VideoSourceProxy;
perkj26091b12016-09-01 01:17:40 -0700141
kthelgason93f16d72017-01-16 06:15:23 -0800142 class VideoFrameInfo {
143 public:
perkjfa10b552016-10-02 23:45:26 -0700144 VideoFrameInfo(int width,
145 int height,
perkjfa10b552016-10-02 23:45:26 -0700146 bool is_texture)
147 : width(width),
148 height(height),
perkjfa10b552016-10-02 23:45:26 -0700149 is_texture(is_texture) {}
150 int width;
151 int height;
perkjfa10b552016-10-02 23:45:26 -0700152 bool is_texture;
kthelgason93f16d72017-01-16 06:15:23 -0800153 int pixel_count() const { return width * height; }
perkjfa10b552016-10-02 23:45:26 -0700154 };
155
Pera48ddb72016-09-29 11:48:50 +0200156 void ConfigureEncoderOnTaskQueue(VideoEncoderConfig config,
Niels Möllerf1338562018-04-26 09:51:47 +0200157 size_t max_data_payload_length);
Niels Möllera8b15082018-02-07 13:42:09 +0100158 void ReconfigureEncoder() RTC_RUN_ON(&encoder_queue_);
perkj26091b12016-09-01 01:17:40 -0700159
kthelgason2bc68642017-02-07 07:02:22 -0800160 void ConfigureQualityScaler();
161
perkja49cbd32016-09-16 07:53:41 -0700162 // Implements VideoSinkInterface.
163 void OnFrame(const VideoFrame& video_frame) override;
Ilya Nikolaevskiyd79314f2017-10-23 10:45:37 +0200164 void OnDiscardedFrame() override;
perkja49cbd32016-09-16 07:53:41 -0700165
Sebastian Janssona3177052018-04-10 13:05:49 +0200166 void MaybeEncodeVideoFrame(const VideoFrame& frame,
167 int64_t time_when_posted_in_ms);
168
perkjd52063f2016-09-07 06:32:18 -0700169 void EncodeVideoFrame(const VideoFrame& frame,
170 int64_t time_when_posted_in_ms);
Sebastian Janssona3177052018-04-10 13:05:49 +0200171 // Indicates wether frame should be dropped because the pixel count is too
172 // large for the current bitrate configuration.
173 bool DropDueToSize(uint32_t pixel_count) const RTC_RUN_ON(&encoder_queue_);
perkj26091b12016-09-01 01:17:40 -0700174
175 // Implements EncodedImageCallback.
176 EncodedImageCallback::Result OnEncodedImage(
177 const EncodedImage& encoded_image,
178 const CodecSpecificInfo* codec_specific_info,
179 const RTPFragmentationHeader* fragmentation) override;
180
Ilya Nikolaevskiyd79314f2017-10-23 10:45:37 +0200181 void OnDroppedFrame(EncodedImageCallback::DropReason reason) override;
kthelgason876222f2016-11-29 01:44:11 -0800182
perkj26091b12016-09-01 01:17:40 -0700183 bool EncoderPaused() const;
184 void TraceFrameDropStart();
185 void TraceFrameDropEnd();
186
asapersson09f05612017-05-15 23:40:18 -0700187 // Class holding adaptation information.
188 class AdaptCounter final {
189 public:
190 AdaptCounter();
191 ~AdaptCounter();
192
193 // Get number of adaptation downscales for |reason|.
194 AdaptCounts Counts(int reason) const;
195
196 std::string ToString() const;
197
asaperssonf7e294d2017-06-13 23:25:22 -0700198 void IncrementFramerate(int reason);
199 void IncrementResolution(int reason);
200 void DecrementFramerate(int reason);
201 void DecrementResolution(int reason);
202 void DecrementFramerate(int reason, int cur_fps);
asapersson09f05612017-05-15 23:40:18 -0700203
204 // Gets the total number of downgrades (for all adapt reasons).
205 int FramerateCount() const;
206 int ResolutionCount() const;
asapersson09f05612017-05-15 23:40:18 -0700207
208 // Gets the total number of downgrades for |reason|.
209 int FramerateCount(int reason) const;
210 int ResolutionCount(int reason) const;
211 int TotalCount(int reason) const;
212
213 private:
214 std::string ToString(const std::vector<int>& counters) const;
215 int Count(const std::vector<int>& counters) const;
asaperssonf7e294d2017-06-13 23:25:22 -0700216 void MoveCount(std::vector<int>* counters, int from_reason);
asapersson09f05612017-05-15 23:40:18 -0700217
218 // Degradation counters holding number of framerate/resolution reductions
219 // per adapt reason.
220 std::vector<int> fps_counters_;
221 std::vector<int> resolution_counters_;
222 };
223
danilchapa37de392017-09-09 04:17:22 -0700224 AdaptCounter& GetAdaptCounter() RTC_RUN_ON(&encoder_queue_);
225 const AdaptCounter& GetConstAdaptCounter() RTC_RUN_ON(&encoder_queue_);
226 void UpdateAdaptationStats(AdaptReason reason) RTC_RUN_ON(&encoder_queue_);
227 AdaptCounts GetActiveCounts(AdaptReason reason) RTC_RUN_ON(&encoder_queue_);
sprangc5d62e22017-04-02 23:53:04 -0700228
perkj26091b12016-09-01 01:17:40 -0700229 rtc::Event shutdown_event_;
stefan@webrtc.orgbfacda62013-03-27 16:36:01 +0000230
pbos@webrtc.orgb238d122013-04-09 13:41:51 +0000231 const uint32_t number_of_cores_;
kthelgason2bc68642017-02-07 07:02:22 -0800232 // Counts how many frames we've dropped in the initial rampup phase.
233 int initial_rampup_;
perkja49cbd32016-09-16 07:53:41 -0700234
Åsa Perssona945aee2018-04-24 16:53:25 +0200235 const bool quality_scaling_experiment_enabled_;
236
perkja49cbd32016-09-16 07:53:41 -0700237 const std::unique_ptr<VideoSourceProxy> source_proxy_;
Per512ecb32016-09-23 15:52:06 +0200238 EncoderSink* sink_;
perkj26091b12016-09-01 01:17:40 -0700239 const VideoSendStream::Config::EncoderSettings settings_;
niklase@google.com470e71d2011-07-07 08:21:25 +0000240
Niels Möller1e062892018-02-07 10:18:32 +0100241 vcm::VideoSender video_sender_ RTC_GUARDED_BY(&encoder_queue_);
Niels Möllera8b15082018-02-07 13:42:09 +0100242 const std::unique_ptr<OveruseFrameDetector> overuse_detector_
243 RTC_PT_GUARDED_BY(&encoder_queue_);
Niels Möller1e062892018-02-07 10:18:32 +0100244 std::unique_ptr<QualityScaler> quality_scaler_
Niels Möllera8b15082018-02-07 13:42:09 +0100245 RTC_GUARDED_BY(&encoder_queue_)
246 RTC_PT_GUARDED_BY(&encoder_queue_);
pwestin@webrtc.org49888ce2012-04-27 05:25:53 +0000247
Peter Boström7083e112015-09-22 16:28:51 +0200248 SendStatisticsProxy* const stats_proxy_;
perkj26091b12016-09-01 01:17:40 -0700249 rtc::VideoSinkInterface<VideoFrame>* const pre_encode_callback_;
perkja49cbd32016-09-16 07:53:41 -0700250 // |thread_checker_| checks that public methods that are related to lifetime
mflodmancc3d4422017-08-03 08:27:51 -0700251 // of VideoStreamEncoder are called on the same thread.
perkja49cbd32016-09-16 07:53:41 -0700252 rtc::ThreadChecker thread_checker_;
mflodman@webrtc.org84d17832011-12-01 17:02:23 +0000253
Niels Möller1e062892018-02-07 10:18:32 +0100254 VideoEncoderConfig encoder_config_ RTC_GUARDED_BY(&encoder_queue_);
Niels Möller4db138e2018-04-19 09:04:13 +0200255 std::unique_ptr<VideoEncoder> encoder_ RTC_GUARDED_BY(&encoder_queue_)
256 RTC_PT_GUARDED_BY(&encoder_queue_);
Erik Språng08127a92016-11-16 16:41:30 +0100257 std::unique_ptr<VideoBitrateAllocator> rate_allocator_
Niels Möllera8b15082018-02-07 13:42:09 +0100258 RTC_GUARDED_BY(&encoder_queue_)
259 RTC_PT_GUARDED_BY(&encoder_queue_);
sprangfda496a2017-06-15 04:21:07 -0700260 // The maximum frame rate of the current codec configuration, as determined
261 // at the last ReconfigureEncoder() call.
Niels Möller1e062892018-02-07 10:18:32 +0100262 int max_framerate_ RTC_GUARDED_BY(&encoder_queue_);
mflodman@webrtc.org84d17832011-12-01 17:02:23 +0000263
perkjfa10b552016-10-02 23:45:26 -0700264 // Set when ConfigureEncoder has been called in order to lazy reconfigure the
265 // encoder on the next frame.
Niels Möller1e062892018-02-07 10:18:32 +0100266 bool pending_encoder_reconfiguration_ RTC_GUARDED_BY(&encoder_queue_);
Niels Möller4db138e2018-04-19 09:04:13 +0200267 // Set when configuration must create a new encoder object, e.g.,
268 // because of a codec change.
269 bool pending_encoder_creation_ RTC_GUARDED_BY(&encoder_queue_);
Niels Möller1e062892018-02-07 10:18:32 +0100270 rtc::Optional<VideoFrameInfo> last_frame_info_
271 RTC_GUARDED_BY(&encoder_queue_);
272 int crop_width_ RTC_GUARDED_BY(&encoder_queue_);
273 int crop_height_ RTC_GUARDED_BY(&encoder_queue_);
274 uint32_t encoder_start_bitrate_bps_ RTC_GUARDED_BY(&encoder_queue_);
275 size_t max_data_payload_length_ RTC_GUARDED_BY(&encoder_queue_);
Niels Möller1e062892018-02-07 10:18:32 +0100276 uint32_t last_observed_bitrate_bps_ RTC_GUARDED_BY(&encoder_queue_);
277 bool encoder_paused_and_dropped_frame_ RTC_GUARDED_BY(&encoder_queue_);
perkj26091b12016-09-01 01:17:40 -0700278 Clock* const clock_;
asapersson09f05612017-05-15 23:40:18 -0700279 // Counters used for deciding if the video resolution or framerate is
280 // currently restricted, and if so, why, on a per degradation preference
281 // basis.
sprangc5d62e22017-04-02 23:53:04 -0700282 // TODO(sprang): Replace this with a state holding a relative overuse measure
283 // instead, that can be translated into suitable down-scale or fps limit.
asapersson09f05612017-05-15 23:40:18 -0700284 std::map<const VideoSendStream::DegradationPreference, AdaptCounter>
Niels Möller1e062892018-02-07 10:18:32 +0100285 adapt_counters_ RTC_GUARDED_BY(&encoder_queue_);
asapersson09f05612017-05-15 23:40:18 -0700286 // Set depending on degradation preferences.
sprangb1ca0732017-02-01 08:38:12 -0800287 VideoSendStream::DegradationPreference degradation_preference_
Niels Möller1e062892018-02-07 10:18:32 +0100288 RTC_GUARDED_BY(&encoder_queue_);
perkj803d97f2016-11-01 11:45:46 -0700289
sprang84a37592017-02-10 07:04:27 -0800290 struct AdaptationRequest {
291 // The pixel count produced by the source at the time of the adaptation.
292 int input_pixel_count_;
sprangc5d62e22017-04-02 23:53:04 -0700293 // Framerate received from the source at the time of the adaptation.
294 int framerate_fps_;
sprang84a37592017-02-10 07:04:27 -0800295 // Indicates if request was to adapt up or down.
296 enum class Mode { kAdaptUp, kAdaptDown } mode_;
297 };
298 // Stores a snapshot of the last adaptation request triggered by an AdaptUp
299 // or AdaptDown signal.
300 rtc::Optional<AdaptationRequest> last_adaptation_request_
Niels Möller1e062892018-02-07 10:18:32 +0100301 RTC_GUARDED_BY(&encoder_queue_);
perkj803d97f2016-11-01 11:45:46 -0700302
303 rtc::RaceChecker incoming_frame_race_checker_
danilchapa37de392017-09-09 04:17:22 -0700304 RTC_GUARDED_BY(incoming_frame_race_checker_);
Yuwei Huangd9f99c12017-10-24 15:40:52 -0700305 std::atomic<int> posted_frames_waiting_for_encode_;
perkj26091b12016-09-01 01:17:40 -0700306 // Used to make sure incoming time stamp is increasing for every frame.
danilchapa37de392017-09-09 04:17:22 -0700307 int64_t last_captured_timestamp_ RTC_GUARDED_BY(incoming_frame_race_checker_);
perkj26091b12016-09-01 01:17:40 -0700308 // Delta used for translating between NTP and internal timestamps.
danilchapa37de392017-09-09 04:17:22 -0700309 const int64_t delta_ntp_internal_ms_
310 RTC_GUARDED_BY(incoming_frame_race_checker_);
perkj26091b12016-09-01 01:17:40 -0700311
danilchapa37de392017-09-09 04:17:22 -0700312 int64_t last_frame_log_ms_ RTC_GUARDED_BY(incoming_frame_race_checker_);
Niels Möller1e062892018-02-07 10:18:32 +0100313 int captured_frame_count_ RTC_GUARDED_BY(&encoder_queue_);
314 int dropped_frame_count_ RTC_GUARDED_BY(&encoder_queue_);
Sebastian Janssona3177052018-04-10 13:05:49 +0200315 rtc::Optional<VideoFrame> pending_frame_ RTC_GUARDED_BY(&encoder_queue_);
316 int64_t pending_frame_post_time_us_ RTC_GUARDED_BY(&encoder_queue_);
asapersson6ffb67d2016-09-12 00:10:45 -0700317
danilchapa37de392017-09-09 04:17:22 -0700318 VideoBitrateAllocationObserver* bitrate_observer_
Niels Möller1e062892018-02-07 10:18:32 +0100319 RTC_GUARDED_BY(&encoder_queue_);
danilchapa37de392017-09-09 04:17:22 -0700320 rtc::Optional<int64_t> last_parameters_update_ms_
Niels Möller1e062892018-02-07 10:18:32 +0100321 RTC_GUARDED_BY(&encoder_queue_);
sprang1a646ee2016-12-01 06:34:11 -0800322
perkj26091b12016-09-01 01:17:40 -0700323 // All public methods are proxied to |encoder_queue_|. It must must be
324 // destroyed first to make sure no tasks are run that use other members.
325 rtc::TaskQueue encoder_queue_;
perkja49cbd32016-09-16 07:53:41 -0700326
mflodmancc3d4422017-08-03 08:27:51 -0700327 RTC_DISALLOW_COPY_AND_ASSIGN(VideoStreamEncoder);
niklase@google.com470e71d2011-07-07 08:21:25 +0000328};
mflodman@webrtc.org84d17832011-12-01 17:02:23 +0000329
330} // namespace webrtc
331
Mirko Bonadei92ea95e2017-09-15 06:47:31 +0200332#endif // VIDEO_VIDEO_STREAM_ENCODER_H_