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

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

Issue 2986893002: Piggybacking simulcast id and ALR experiment id into video content type extension. (Closed)
Patch Set: Remove static initialization from VideoContentType and remove memoization in AlrDetector Created 3 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 908 matching lines...) Expand 10 before | Expand all | Expand 10 after
919 PopulateCodecSpecific(&codec_specific, tl_configs[stream_idx], *pkt, 919 PopulateCodecSpecific(&codec_specific, tl_configs[stream_idx], *pkt,
920 stream_idx, input_image.timestamp()); 920 stream_idx, input_image.timestamp());
921 break; 921 break;
922 } 922 }
923 } 923 }
924 encoded_images_[encoder_idx]._timeStamp = input_image.timestamp(); 924 encoded_images_[encoder_idx]._timeStamp = input_image.timestamp();
925 encoded_images_[encoder_idx].capture_time_ms_ = 925 encoded_images_[encoder_idx].capture_time_ms_ =
926 input_image.render_time_ms(); 926 input_image.render_time_ms();
927 encoded_images_[encoder_idx].rotation_ = input_image.rotation(); 927 encoded_images_[encoder_idx].rotation_ = input_image.rotation();
928 encoded_images_[encoder_idx].content_type_ = 928 encoded_images_[encoder_idx].content_type_ =
929 (codec_.mode == kScreensharing) ? VideoContentType::SCREENSHARE 929 (codec_.mode == kScreensharing) ? VideoContentType::Screenshare()
930 : VideoContentType::UNSPECIFIED; 930 : VideoContentType::Unspecified();
931 encoded_images_[encoder_idx].timing_.flags = TimingFrameFlags::kInvalid; 931 encoded_images_[encoder_idx].timing_.flags = TimingFrameFlags::kInvalid;
932 932
933 int qp = -1; 933 int qp = -1;
934 vpx_codec_control(&encoders_[encoder_idx], VP8E_GET_LAST_QUANTIZER_64, &qp); 934 vpx_codec_control(&encoders_[encoder_idx], VP8E_GET_LAST_QUANTIZER_64, &qp);
935 temporal_layers_[stream_idx]->FrameEncoded( 935 temporal_layers_[stream_idx]->FrameEncoded(
936 encoded_images_[encoder_idx]._length, qp); 936 encoded_images_[encoder_idx]._length, qp);
937 if (send_stream_[stream_idx]) { 937 if (send_stream_[stream_idx]) {
938 if (encoded_images_[encoder_idx]._length > 0) { 938 if (encoded_images_[encoder_idx]._length > 0) {
939 TRACE_COUNTER_ID1("webrtc", "EncodedFrameSize", encoder_idx, 939 TRACE_COUNTER_ID1("webrtc", "EncodedFrameSize", encoder_idx,
940 encoded_images_[encoder_idx]._length); 940 encoded_images_[encoder_idx]._length);
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
1250 buffer_pool_.Release(); 1250 buffer_pool_.Release();
1251 inited_ = false; 1251 inited_ = false;
1252 return WEBRTC_VIDEO_CODEC_OK; 1252 return WEBRTC_VIDEO_CODEC_OK;
1253 } 1253 }
1254 1254
1255 const char* VP8DecoderImpl::ImplementationName() const { 1255 const char* VP8DecoderImpl::ImplementationName() const {
1256 return "libvpx"; 1256 return "libvpx";
1257 } 1257 }
1258 1258
1259 } // namespace webrtc 1259 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698