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

Side by Side Diff: webrtc/modules/rtp_rtcp/source/rtp_format_video_generic.cc

Issue 2614503002: Reland of Rename RTPVideoHeader.isFirstPacket to .is_first_packet_in_frame. (Closed)
Patch Set: Add base/deprecation.h include. Created 3 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2014 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 return false; 98 return false;
99 } 99 }
100 100
101 uint8_t generic_header = *payload_data++; 101 uint8_t generic_header = *payload_data++;
102 --payload_data_length; 102 --payload_data_length;
103 103
104 parsed_payload->frame_type = 104 parsed_payload->frame_type =
105 ((generic_header & RtpFormatVideoGeneric::kKeyFrameBit) != 0) 105 ((generic_header & RtpFormatVideoGeneric::kKeyFrameBit) != 0)
106 ? kVideoFrameKey 106 ? kVideoFrameKey
107 : kVideoFrameDelta; 107 : kVideoFrameDelta;
108 parsed_payload->type.Video.isFirstPacket = 108 parsed_payload->type.Video.is_first_packet_in_frame =
109 (generic_header & RtpFormatVideoGeneric::kFirstPacketBit) != 0; 109 (generic_header & RtpFormatVideoGeneric::kFirstPacketBit) != 0;
110 parsed_payload->type.Video.codec = kRtpVideoGeneric; 110 parsed_payload->type.Video.codec = kRtpVideoGeneric;
111 parsed_payload->type.Video.width = 0; 111 parsed_payload->type.Video.width = 0;
112 parsed_payload->type.Video.height = 0; 112 parsed_payload->type.Video.height = 0;
113 113
114 parsed_payload->payload = payload_data; 114 parsed_payload->payload = payload_data;
115 parsed_payload->payload_length = payload_data_length; 115 parsed_payload->payload_length = payload_data_length;
116 return true; 116 return true;
117 } 117 }
118 } // namespace webrtc 118 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/rtp_format_h264_unittest.cc ('k') | webrtc/modules/rtp_rtcp/source/rtp_format_vp8.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698