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

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

Issue 2320913003: Reland of Ignore Camera and Flip bits in CVO when parsing video rotation (Closed)
Patch Set: Created 4 years, 3 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 RtpDepacketizer::ParsedPayload parsed_payload; 87 RtpDepacketizer::ParsedPayload parsed_payload;
88 if (!depacketizer->Parse(&parsed_payload, payload, payload_data_length)) 88 if (!depacketizer->Parse(&parsed_payload, payload, payload_data_length))
89 return -1; 89 return -1;
90 90
91 rtp_header->frameType = parsed_payload.frame_type; 91 rtp_header->frameType = parsed_payload.frame_type;
92 rtp_header->type = parsed_payload.type; 92 rtp_header->type = parsed_payload.type;
93 rtp_header->type.Video.rotation = kVideoRotation_0; 93 rtp_header->type.Video.rotation = kVideoRotation_0;
94 94
95 // Retrieve the video rotation information. 95 // Retrieve the video rotation information.
96 if (rtp_header->header.extension.hasVideoRotation) { 96 if (rtp_header->header.extension.hasVideoRotation) {
97 rtp_header->type.Video.rotation = ConvertCVOByteToVideoRotation( 97 rtp_header->type.Video.rotation =
98 rtp_header->header.extension.videoRotation); 98 rtp_header->header.extension.videoRotation;
99 } 99 }
100 100
101 rtp_header->type.Video.playout_delay = 101 rtp_header->type.Video.playout_delay =
102 rtp_header->header.extension.playout_delay; 102 rtp_header->header.extension.playout_delay;
103 103
104 return data_callback_->OnReceivedPayloadData(parsed_payload.payload, 104 return data_callback_->OnReceivedPayloadData(parsed_payload.payload,
105 parsed_payload.payload_length, 105 parsed_payload.payload_length,
106 rtp_header) == 0 106 rtp_header) == 0
107 ? 0 107 ? 0
108 : -1; 108 : -1;
(...skipping 12 matching lines...) Expand all
121 RtpFeedback* callback, 121 RtpFeedback* callback,
122 int8_t payload_type, 122 int8_t payload_type,
123 const char payload_name[RTP_PAYLOAD_NAME_SIZE], 123 const char payload_name[RTP_PAYLOAD_NAME_SIZE],
124 const PayloadUnion& specific_payload) const { 124 const PayloadUnion& specific_payload) const {
125 // TODO(pbos): Remove as soon as audio can handle a changing payload type 125 // TODO(pbos): Remove as soon as audio can handle a changing payload type
126 // without this callback. 126 // without this callback.
127 return 0; 127 return 0;
128 } 128 }
129 129
130 } // namespace webrtc 130 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/rtp_header_extensions.cc ('k') | webrtc/modules/rtp_rtcp/source/rtp_sender_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698