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

Side by Side Diff: webrtc/common_types.h

Issue 2743543004: Speculative fix for division by zero in Vp8EncoderImpl. (Closed)
Patch Set: Created 3 years, 9 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 619 matching lines...) Expand 10 before | Expand all | Expand 10 after
630 unsigned char plType; 630 unsigned char plType;
631 631
632 unsigned short width; 632 unsigned short width;
633 unsigned short height; 633 unsigned short height;
634 634
635 unsigned int startBitrate; // kilobits/sec. 635 unsigned int startBitrate; // kilobits/sec.
636 unsigned int maxBitrate; // kilobits/sec. 636 unsigned int maxBitrate; // kilobits/sec.
637 unsigned int minBitrate; // kilobits/sec. 637 unsigned int minBitrate; // kilobits/sec.
638 unsigned int targetBitrate; // kilobits/sec. 638 unsigned int targetBitrate; // kilobits/sec.
639 639
640 unsigned char maxFramerate; 640 uint32_t maxFramerate;
641 641
642 unsigned int qpMax; 642 unsigned int qpMax;
643 unsigned char numberOfSimulcastStreams; 643 unsigned char numberOfSimulcastStreams;
644 SimulcastStream simulcastStream[kMaxSimulcastStreams]; 644 SimulcastStream simulcastStream[kMaxSimulcastStreams];
645 SpatialLayer spatialLayers[kMaxSpatialLayers]; 645 SpatialLayer spatialLayers[kMaxSpatialLayers];
646 646
647 VideoCodecMode mode; 647 VideoCodecMode mode;
648 bool expect_encode_from_texture; 648 bool expect_encode_from_texture;
649 649
650 bool operator==(const VideoCodec& other) const = delete; 650 bool operator==(const VideoCodec& other) const = delete;
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
898 enum class RtcpMode { kOff, kCompound, kReducedSize }; 898 enum class RtcpMode { kOff, kCompound, kReducedSize };
899 899
900 enum NetworkState { 900 enum NetworkState {
901 kNetworkUp, 901 kNetworkUp,
902 kNetworkDown, 902 kNetworkDown,
903 }; 903 };
904 904
905 } // namespace webrtc 905 } // namespace webrtc
906 906
907 #endif // WEBRTC_COMMON_TYPES_H_ 907 #endif // WEBRTC_COMMON_TYPES_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/video_coding/media_optimization.cc » ('j') | webrtc/modules/video_coding/media_optimization.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698