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

Side by Side Diff: webrtc/modules/video_coding/codecs/vp8/vp8_impl.cc

Issue 1886113003: Add rotation to EncodedImage and make sure it is passed through encoders. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: IOS Created 4 years, 8 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 1002 matching lines...) Expand 10 before | Expand all | Expand 10 after
1013 } 1013 }
1014 PopulateCodecSpecific(&codec_specific, *pkt, stream_idx, 1014 PopulateCodecSpecific(&codec_specific, *pkt, stream_idx,
1015 input_image.timestamp(), 1015 input_image.timestamp(),
1016 only_predicting_from_key_frame); 1016 only_predicting_from_key_frame);
1017 break; 1017 break;
1018 } 1018 }
1019 } 1019 }
1020 encoded_images_[encoder_idx]._timeStamp = input_image.timestamp(); 1020 encoded_images_[encoder_idx]._timeStamp = input_image.timestamp();
1021 encoded_images_[encoder_idx].capture_time_ms_ = 1021 encoded_images_[encoder_idx].capture_time_ms_ =
1022 input_image.render_time_ms(); 1022 input_image.render_time_ms();
1023 encoded_images_[encoder_idx].rotation_ = input_image.rotation();
1023 1024
1024 int qp = -1; 1025 int qp = -1;
1025 vpx_codec_control(&encoders_[encoder_idx], VP8E_GET_LAST_QUANTIZER_64, &qp); 1026 vpx_codec_control(&encoders_[encoder_idx], VP8E_GET_LAST_QUANTIZER_64, &qp);
1026 temporal_layers_[stream_idx]->FrameEncoded( 1027 temporal_layers_[stream_idx]->FrameEncoded(
1027 encoded_images_[encoder_idx]._length, 1028 encoded_images_[encoder_idx]._length,
1028 encoded_images_[encoder_idx]._timeStamp, qp); 1029 encoded_images_[encoder_idx]._timeStamp, qp);
1029 if (send_stream_[stream_idx]) { 1030 if (send_stream_[stream_idx]) {
1030 if (encoded_images_[encoder_idx]._length > 0) { 1031 if (encoded_images_[encoder_idx]._length > 0) {
1031 TRACE_COUNTER_ID1("webrtc", "EncodedFrameSize", encoder_idx, 1032 TRACE_COUNTER_ID1("webrtc", "EncodedFrameSize", encoder_idx,
1032 encoded_images_[encoder_idx]._length); 1033 encoded_images_[encoder_idx]._length);
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
1409 return -1; 1410 return -1;
1410 } 1411 }
1411 if (vpx_codec_control(copy->decoder_, VP8_SET_REFERENCE, ref_frame_) != 1412 if (vpx_codec_control(copy->decoder_, VP8_SET_REFERENCE, ref_frame_) !=
1412 VPX_CODEC_OK) { 1413 VPX_CODEC_OK) {
1413 return -1; 1414 return -1;
1414 } 1415 }
1415 return 0; 1416 return 0;
1416 } 1417 }
1417 1418
1418 } // namespace webrtc 1419 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698