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 882 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
893 break; | 893 break; |
894 } | 894 } |
895 } | 895 } |
896 encoded_images_[encoder_idx]._timeStamp = input_image.timestamp(); | 896 encoded_images_[encoder_idx]._timeStamp = input_image.timestamp(); |
897 encoded_images_[encoder_idx].capture_time_ms_ = | 897 encoded_images_[encoder_idx].capture_time_ms_ = |
898 input_image.render_time_ms(); | 898 input_image.render_time_ms(); |
899 encoded_images_[encoder_idx].rotation_ = input_image.rotation(); | 899 encoded_images_[encoder_idx].rotation_ = input_image.rotation(); |
900 encoded_images_[encoder_idx].content_type_ = | 900 encoded_images_[encoder_idx].content_type_ = |
901 (codec_.mode == kScreensharing) ? VideoContentType::SCREENSHARE | 901 (codec_.mode == kScreensharing) ? VideoContentType::SCREENSHARE |
902 : VideoContentType::UNSPECIFIED; | 902 : VideoContentType::UNSPECIFIED; |
903 encoded_images_[encoder_idx].timing_.is_timing_frame = false; | 903 encoded_images_[encoder_idx].timing_.flags = TimingFrameFlags::kInvalid; |
904 | 904 |
905 int qp = -1; | 905 int qp = -1; |
906 vpx_codec_control(&encoders_[encoder_idx], VP8E_GET_LAST_QUANTIZER_64, &qp); | 906 vpx_codec_control(&encoders_[encoder_idx], VP8E_GET_LAST_QUANTIZER_64, &qp); |
907 temporal_layers_[stream_idx]->FrameEncoded( | 907 temporal_layers_[stream_idx]->FrameEncoded( |
908 encoded_images_[encoder_idx]._length, qp); | 908 encoded_images_[encoder_idx]._length, qp); |
909 if (send_stream_[stream_idx]) { | 909 if (send_stream_[stream_idx]) { |
910 if (encoded_images_[encoder_idx]._length > 0) { | 910 if (encoded_images_[encoder_idx]._length > 0) { |
911 TRACE_COUNTER_ID1("webrtc", "EncodedFrameSize", encoder_idx, | 911 TRACE_COUNTER_ID1("webrtc", "EncodedFrameSize", encoder_idx, |
912 encoded_images_[encoder_idx]._length); | 912 encoded_images_[encoder_idx]._length); |
913 encoded_images_[encoder_idx]._encodedHeight = | 913 encoded_images_[encoder_idx]._encodedHeight = |
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1218 buffer_pool_.Release(); | 1218 buffer_pool_.Release(); |
1219 inited_ = false; | 1219 inited_ = false; |
1220 return WEBRTC_VIDEO_CODEC_OK; | 1220 return WEBRTC_VIDEO_CODEC_OK; |
1221 } | 1221 } |
1222 | 1222 |
1223 const char* VP8DecoderImpl::ImplementationName() const { | 1223 const char* VP8DecoderImpl::ImplementationName() const { |
1224 return "libvpx"; | 1224 return "libvpx"; |
1225 } | 1225 } |
1226 | 1226 |
1227 } // namespace webrtc | 1227 } // namespace webrtc |
OLD | NEW |