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

Side by Side Diff: webrtc/common_types.h

Issue 2459633002: Add functionality for parsing H264 profile-level-id (Closed)
Patch Set: Use array reference argument to constexpr functions Created 4 years, 1 month 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
« no previous file with comments | « no previous file | webrtc/common_video/BUILD.gn » ('j') | webrtc/common_video/common_video.gyp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 480 matching lines...) Expand 10 before | Expand all | Expand 10 after
491 enum { kMaxSpatialLayers = 5 }; 491 enum { kMaxSpatialLayers = 5 };
492 enum { kMaxTemporalStreams = 4 }; 492 enum { kMaxTemporalStreams = 4 };
493 493
494 enum VideoCodecComplexity { 494 enum VideoCodecComplexity {
495 kComplexityNormal = 0, 495 kComplexityNormal = 0,
496 kComplexityHigh = 1, 496 kComplexityHigh = 1,
497 kComplexityHigher = 2, 497 kComplexityHigher = 2,
498 kComplexityMax = 3 498 kComplexityMax = 3
499 }; 499 };
500 500
501 enum VideoCodecProfile { kProfileBase = 0x00, kProfileMain = 0x01 };
502
503 enum VP8ResilienceMode { 501 enum VP8ResilienceMode {
504 kResilienceOff, // The stream produced by the encoder requires a 502 kResilienceOff, // The stream produced by the encoder requires a
505 // recovery frame (typically a key frame) to be 503 // recovery frame (typically a key frame) to be
506 // decodable after a packet loss. 504 // decodable after a packet loss.
507 kResilientStream, // A stream produced by the encoder is resilient to 505 kResilientStream, // A stream produced by the encoder is resilient to
508 // packet losses, but packets within a frame subsequent 506 // packet losses, but packets within a frame subsequent
509 // to a loss can't be decoded. 507 // to a loss can't be decoded.
510 kResilientFrames // Same as kResilientStream but with added resilience 508 kResilientFrames // Same as kResilientStream but with added resilience
511 // within a frame. 509 // within a frame.
512 }; 510 };
(...skipping 23 matching lines...) Expand all
536 bool frameDroppingOn; 534 bool frameDroppingOn;
537 int keyFrameInterval; 535 int keyFrameInterval;
538 bool adaptiveQpMode; 536 bool adaptiveQpMode;
539 bool automaticResizeOn; 537 bool automaticResizeOn;
540 unsigned char numberOfSpatialLayers; 538 unsigned char numberOfSpatialLayers;
541 bool flexibleMode; 539 bool flexibleMode;
542 }; 540 };
543 541
544 // H264 specific. 542 // H264 specific.
545 struct VideoCodecH264 { 543 struct VideoCodecH264 {
546 VideoCodecProfile profile;
547 bool frameDroppingOn; 544 bool frameDroppingOn;
548 int keyFrameInterval; 545 int keyFrameInterval;
549 // These are NULL/0 if not externally negotiated. 546 // These are NULL/0 if not externally negotiated.
550 const uint8_t* spsData; 547 const uint8_t* spsData;
551 size_t spsLen; 548 size_t spsLen;
552 const uint8_t* ppsData; 549 const uint8_t* ppsData;
553 size_t ppsLen; 550 size_t ppsLen;
554 }; 551 };
555 552
556 // Video codec types 553 // Video codec types
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
840 enum class RtcpMode { kOff, kCompound, kReducedSize }; 837 enum class RtcpMode { kOff, kCompound, kReducedSize };
841 838
842 enum NetworkState { 839 enum NetworkState {
843 kNetworkUp, 840 kNetworkUp,
844 kNetworkDown, 841 kNetworkDown,
845 }; 842 };
846 843
847 } // namespace webrtc 844 } // namespace webrtc
848 845
849 #endif // WEBRTC_COMMON_TYPES_H_ 846 #endif // WEBRTC_COMMON_TYPES_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/common_video/BUILD.gn » ('j') | webrtc/common_video/common_video.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698