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

Side by Side Diff: webrtc/modules/video_coding/codecs/vp9/vp9_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) 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 674 matching lines...) Expand 10 before | Expand all | Expand 10 after
685 } 685 }
686 RTC_DCHECK_LE(encoded_image_._length, encoded_image_._size); 686 RTC_DCHECK_LE(encoded_image_._length, encoded_image_._size);
687 687
688 CodecSpecificInfo codec_specific; 688 CodecSpecificInfo codec_specific;
689 PopulateCodecSpecific(&codec_specific, *pkt, input_image_->timestamp()); 689 PopulateCodecSpecific(&codec_specific, *pkt, input_image_->timestamp());
690 690
691 if (encoded_image_._length > 0) { 691 if (encoded_image_._length > 0) {
692 TRACE_COUNTER1("webrtc", "EncodedFrameSize", encoded_image_._length); 692 TRACE_COUNTER1("webrtc", "EncodedFrameSize", encoded_image_._length);
693 encoded_image_._timeStamp = input_image_->timestamp(); 693 encoded_image_._timeStamp = input_image_->timestamp();
694 encoded_image_.capture_time_ms_ = input_image_->render_time_ms(); 694 encoded_image_.capture_time_ms_ = input_image_->render_time_ms();
695 encoded_image_.rotation_ = input_image_->rotation();
695 encoded_image_._encodedHeight = raw_->d_h; 696 encoded_image_._encodedHeight = raw_->d_h;
696 encoded_image_._encodedWidth = raw_->d_w; 697 encoded_image_._encodedWidth = raw_->d_w;
697 int qp = -1; 698 int qp = -1;
698 vpx_codec_control(encoder_, VP8E_GET_LAST_QUANTIZER, &qp); 699 vpx_codec_control(encoder_, VP8E_GET_LAST_QUANTIZER, &qp);
699 encoded_image_.qp_ = qp; 700 encoded_image_.qp_ = qp;
700 encoded_complete_callback_->Encoded(encoded_image_, &codec_specific, 701 encoded_complete_callback_->Encoded(encoded_image_, &codec_specific,
701 &frag_info); 702 &frag_info);
702 } 703 }
703 return WEBRTC_VIDEO_CODEC_OK; 704 return WEBRTC_VIDEO_CODEC_OK;
704 } 705 }
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
979 frame_buffer_pool_.ClearPool(); 980 frame_buffer_pool_.ClearPool();
980 inited_ = false; 981 inited_ = false;
981 return WEBRTC_VIDEO_CODEC_OK; 982 return WEBRTC_VIDEO_CODEC_OK;
982 } 983 }
983 984
984 const char* VP9DecoderImpl::ImplementationName() const { 985 const char* VP9DecoderImpl::ImplementationName() const {
985 return "libvpx"; 986 return "libvpx";
986 } 987 }
987 988
988 } // namespace webrtc 989 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/video_coding/codecs/vp8/vp8_impl.cc ('k') | webrtc/modules/video_coding/generic_encoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698