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

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

Issue 2911193002: Implement timing frames. (Closed)
Patch Set: Fixing tests pass 3 Created 3 years, 6 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 859 matching lines...) Expand 10 before | Expand all | Expand 10 after
870 break; 870 break;
871 } 871 }
872 } 872 }
873 encoded_images_[encoder_idx]._timeStamp = input_image.timestamp(); 873 encoded_images_[encoder_idx]._timeStamp = input_image.timestamp();
874 encoded_images_[encoder_idx].capture_time_ms_ = 874 encoded_images_[encoder_idx].capture_time_ms_ =
875 input_image.render_time_ms(); 875 input_image.render_time_ms();
876 encoded_images_[encoder_idx].rotation_ = input_image.rotation(); 876 encoded_images_[encoder_idx].rotation_ = input_image.rotation();
877 encoded_images_[encoder_idx].content_type_ = 877 encoded_images_[encoder_idx].content_type_ =
878 (codec_.mode == kScreensharing) ? VideoContentType::SCREENSHARE 878 (codec_.mode == kScreensharing) ? VideoContentType::SCREENSHARE
879 : VideoContentType::UNSPECIFIED; 879 : VideoContentType::UNSPECIFIED;
880 encoded_images_[encoder_idx].timing_.is_timing_frame = false;
880 881
881 int qp = -1; 882 int qp = -1;
882 vpx_codec_control(&encoders_[encoder_idx], VP8E_GET_LAST_QUANTIZER_64, &qp); 883 vpx_codec_control(&encoders_[encoder_idx], VP8E_GET_LAST_QUANTIZER_64, &qp);
883 temporal_layers_[stream_idx]->FrameEncoded( 884 temporal_layers_[stream_idx]->FrameEncoded(
884 encoded_images_[encoder_idx]._length, qp); 885 encoded_images_[encoder_idx]._length, qp);
885 if (send_stream_[stream_idx]) { 886 if (send_stream_[stream_idx]) {
886 if (encoded_images_[encoder_idx]._length > 0) { 887 if (encoded_images_[encoder_idx]._length > 0) {
887 TRACE_COUNTER_ID1("webrtc", "EncodedFrameSize", encoder_idx, 888 TRACE_COUNTER_ID1("webrtc", "EncodedFrameSize", encoder_idx,
888 encoded_images_[encoder_idx]._length); 889 encoded_images_[encoder_idx]._length);
889 encoded_images_[encoder_idx]._encodedHeight = 890 encoded_images_[encoder_idx]._encodedHeight =
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
1148 buffer_pool_.Release(); 1149 buffer_pool_.Release();
1149 inited_ = false; 1150 inited_ = false;
1150 return WEBRTC_VIDEO_CODEC_OK; 1151 return WEBRTC_VIDEO_CODEC_OK;
1151 } 1152 }
1152 1153
1153 const char* VP8DecoderImpl::ImplementationName() const { 1154 const char* VP8DecoderImpl::ImplementationName() const {
1154 return "libvpx"; 1155 return "libvpx";
1155 } 1156 }
1156 1157
1157 } // namespace webrtc 1158 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698