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

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: Fix merge mistake. 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 1006 matching lines...) Expand 10 before | Expand all | Expand 10 after
1017 } 1017 }
1018 PopulateCodecSpecific(&codec_specific, *pkt, stream_idx, 1018 PopulateCodecSpecific(&codec_specific, *pkt, stream_idx,
1019 input_image.timestamp(), 1019 input_image.timestamp(),
1020 only_predicting_from_key_frame); 1020 only_predicting_from_key_frame);
1021 break; 1021 break;
1022 } 1022 }
1023 } 1023 }
1024 encoded_images_[encoder_idx]._timeStamp = input_image.timestamp(); 1024 encoded_images_[encoder_idx]._timeStamp = input_image.timestamp();
1025 encoded_images_[encoder_idx].capture_time_ms_ = 1025 encoded_images_[encoder_idx].capture_time_ms_ =
1026 input_image.render_time_ms(); 1026 input_image.render_time_ms();
1027 encoded_images_[encoder_idx].rotation_ = input_image.rotation();
1027 1028
1028 int qp = -1; 1029 int qp = -1;
1029 vpx_codec_control(&encoders_[encoder_idx], VP8E_GET_LAST_QUANTIZER_64, &qp); 1030 vpx_codec_control(&encoders_[encoder_idx], VP8E_GET_LAST_QUANTIZER_64, &qp);
1030 temporal_layers_[stream_idx]->FrameEncoded( 1031 temporal_layers_[stream_idx]->FrameEncoded(
1031 encoded_images_[encoder_idx]._length, 1032 encoded_images_[encoder_idx]._length,
1032 encoded_images_[encoder_idx]._timeStamp, qp); 1033 encoded_images_[encoder_idx]._timeStamp, qp);
1033 if (send_stream_[stream_idx]) { 1034 if (send_stream_[stream_idx]) {
1034 if (encoded_images_[encoder_idx]._length > 0) { 1035 if (encoded_images_[encoder_idx]._length > 0) {
1035 TRACE_COUNTER_ID1("webrtc", "EncodedFrameSize", encoder_idx, 1036 TRACE_COUNTER_ID1("webrtc", "EncodedFrameSize", encoder_idx,
1036 encoded_images_[encoder_idx]._length); 1037 encoded_images_[encoder_idx]._length);
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
1413 return -1; 1414 return -1;
1414 } 1415 }
1415 if (vpx_codec_control(copy->decoder_, VP8_SET_REFERENCE, ref_frame_) != 1416 if (vpx_codec_control(copy->decoder_, VP8_SET_REFERENCE, ref_frame_) !=
1416 VPX_CODEC_OK) { 1417 VPX_CODEC_OK) {
1417 return -1; 1418 return -1;
1418 } 1419 }
1419 return 0; 1420 return 0;
1420 } 1421 }
1421 1422
1422 } // namespace webrtc 1423 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698