OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |