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

Unified Diff: webrtc/common_types.h

Issue 1606613003: Remove extra_options from VideoCodec. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: compile Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/call/congestion_controller.cc ('k') | webrtc/modules/video_coding/codec_database.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/common_types.h
diff --git a/webrtc/common_types.h b/webrtc/common_types.h
index 444ef928d981685ea977f15e8170e5fad5c13ee0..8de1659364859baeb5352f144d33eefa81bd6784 100644
--- a/webrtc/common_types.h
+++ b/webrtc/common_types.h
@@ -569,6 +569,7 @@ enum VP8ResilienceMode {
// within a frame.
};
+class TemporalLayersFactory;
// VP8 specific
struct VideoCodecVP8 {
bool pictureLossIndicationOn;
@@ -581,23 +582,7 @@ struct VideoCodecVP8 {
bool automaticResizeOn;
bool frameDroppingOn;
int keyFrameInterval;
-
- bool operator==(const VideoCodecVP8& other) const {
- return pictureLossIndicationOn == other.pictureLossIndicationOn &&
- feedbackModeOn == other.feedbackModeOn &&
- complexity == other.complexity &&
- resilience == other.resilience &&
- numberOfTemporalLayers == other.numberOfTemporalLayers &&
- denoisingOn == other.denoisingOn &&
- errorConcealmentOn == other.errorConcealmentOn &&
- automaticResizeOn == other.automaticResizeOn &&
- frameDroppingOn == other.frameDroppingOn &&
- keyFrameInterval == other.keyFrameInterval;
- }
-
- bool operator!=(const VideoCodecVP8& other) const {
- return !(*this == other);
- }
+ const TemporalLayersFactory* tl_factory;
};
// VP9 specific.
@@ -655,20 +640,6 @@ struct SimulcastStream {
unsigned int targetBitrate; // kilobits/sec.
unsigned int minBitrate; // kilobits/sec.
unsigned int qpMax; // minimum quality
-
- bool operator==(const SimulcastStream& other) const {
- return width == other.width &&
- height == other.height &&
- numberOfTemporalLayers == other.numberOfTemporalLayers &&
- maxBitrate == other.maxBitrate &&
- targetBitrate == other.targetBitrate &&
- minBitrate == other.minBitrate &&
- qpMax == other.qpMax;
- }
-
- bool operator!=(const SimulcastStream& other) const {
- return !(*this == other);
- }
};
struct SpatialLayer {
@@ -708,37 +679,8 @@ struct VideoCodec {
VideoCodecMode mode;
- // When using an external encoder/decoder this allows to pass
- // extra options without requiring webrtc to be aware of them.
- Config* extra_options;
-
- bool operator==(const VideoCodec& other) const {
- bool ret = codecType == other.codecType &&
- (STR_CASE_CMP(plName, other.plName) == 0) &&
- plType == other.plType &&
- width == other.width &&
- height == other.height &&
- startBitrate == other.startBitrate &&
- maxBitrate == other.maxBitrate &&
- minBitrate == other.minBitrate &&
- targetBitrate == other.targetBitrate &&
- maxFramerate == other.maxFramerate &&
- qpMax == other.qpMax &&
- numberOfSimulcastStreams == other.numberOfSimulcastStreams &&
- mode == other.mode;
- if (ret && codecType == kVideoCodecVP8) {
- ret &= (codecSpecific.VP8 == other.codecSpecific.VP8);
- }
-
- for (unsigned char i = 0; i < other.numberOfSimulcastStreams && ret; ++i) {
- ret &= (simulcastStream[i] == other.simulcastStream[i]);
- }
- return ret;
- }
-
- bool operator!=(const VideoCodec& other) const {
- return !(*this == other);
- }
+ bool operator==(const VideoCodec& other) const = delete;
+ bool operator!=(const VideoCodec& other) const = delete;
};
// Bandwidth over-use detector options. These are used to drive
« no previous file with comments | « webrtc/call/congestion_controller.cc ('k') | webrtc/modules/video_coding/codec_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698