Add member VideoEncoderConfig::SdpVideoFormat.

In preparation for moving creation of encoders to VideoStreamEncoder;
then this field is needed for calling
VideoEncoderFactory::CreateVideoEncoder.

Bug: webrtc:8830
Change-Id: Ie107a93596e22a5e7b9a9147bd85a93cf84b15a3
Reviewed-on: https://webrtc-review.googlesource.com/70221
Reviewed-by: Erik Språng <sprang@webrtc.org>
Commit-Queue: Niels Moller <nisse@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#22894}
This commit is contained in:
Niels Möller 2018-04-17 12:51:59 +02:00 committed by Commit Bot
parent cbaa254641
commit 6dfc8d6ef3
2 changed files with 5 additions and 0 deletions

View File

@ -48,6 +48,7 @@ std::string VideoStream::ToString() const {
VideoEncoderConfig::VideoEncoderConfig()
: codec_type(kVideoCodecUnknown),
video_format("Unset"),
content_type(ContentType::kRealtimeVideo),
encoder_specific_settings(nullptr),
min_transmit_bitrate_bps(0),

View File

@ -15,6 +15,7 @@
#include <vector>
#include "api/optional.h"
#include "api/video_codecs/sdp_video_format.h"
#include "common_types.h" // NOLINT(build/include)
#include "rtc_base/basictypes.h"
#include "rtc_base/refcount.h"
@ -126,7 +127,10 @@ class VideoEncoderConfig {
~VideoEncoderConfig();
std::string ToString() const;
// TODO(nisse): Consolidate on one of these.
VideoCodecType codec_type;
SdpVideoFormat video_format;
rtc::scoped_refptr<VideoStreamFactoryInterface> video_stream_factory;
std::vector<SpatialLayer> spatial_layers;
ContentType content_type;