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 1006 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1017 } | 1017 } |
1018 PopulateCodecSpecific(&codec_specific, *pkt, stream_idx, | 1018 PopulateCodecSpecific(&codec_specific, *pkt, stream_idx, |
1019 input_image.timestamp(), | 1019 input_image.timestamp(), |
1020 only_predicting_from_key_frame); | 1020 only_predicting_from_key_frame); |
1021 break; | 1021 break; |
1022 } | 1022 } |
1023 } | 1023 } |
1024 encoded_images_[encoder_idx]._timeStamp = input_image.timestamp(); | 1024 encoded_images_[encoder_idx]._timeStamp = input_image.timestamp(); |
1025 encoded_images_[encoder_idx].capture_time_ms_ = | 1025 encoded_images_[encoder_idx].capture_time_ms_ = |
1026 input_image.render_time_ms(); | 1026 input_image.render_time_ms(); |
| 1027 encoded_images_[encoder_idx].rotation_ = input_image.rotation(); |
1027 | 1028 |
1028 int qp = -1; | 1029 int qp = -1; |
1029 vpx_codec_control(&encoders_[encoder_idx], VP8E_GET_LAST_QUANTIZER_64, &qp); | 1030 vpx_codec_control(&encoders_[encoder_idx], VP8E_GET_LAST_QUANTIZER_64, &qp); |
1030 temporal_layers_[stream_idx]->FrameEncoded( | 1031 temporal_layers_[stream_idx]->FrameEncoded( |
1031 encoded_images_[encoder_idx]._length, | 1032 encoded_images_[encoder_idx]._length, |
1032 encoded_images_[encoder_idx]._timeStamp, qp); | 1033 encoded_images_[encoder_idx]._timeStamp, qp); |
1033 if (send_stream_[stream_idx]) { | 1034 if (send_stream_[stream_idx]) { |
1034 if (encoded_images_[encoder_idx]._length > 0) { | 1035 if (encoded_images_[encoder_idx]._length > 0) { |
1035 TRACE_COUNTER_ID1("webrtc", "EncodedFrameSize", encoder_idx, | 1036 TRACE_COUNTER_ID1("webrtc", "EncodedFrameSize", encoder_idx, |
1036 encoded_images_[encoder_idx]._length); | 1037 encoded_images_[encoder_idx]._length); |
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1413 return -1; | 1414 return -1; |
1414 } | 1415 } |
1415 if (vpx_codec_control(copy->decoder_, VP8_SET_REFERENCE, ref_frame_) != | 1416 if (vpx_codec_control(copy->decoder_, VP8_SET_REFERENCE, ref_frame_) != |
1416 VPX_CODEC_OK) { | 1417 VPX_CODEC_OK) { |
1417 return -1; | 1418 return -1; |
1418 } | 1419 } |
1419 return 0; | 1420 return 0; |
1420 } | 1421 } |
1421 | 1422 |
1422 } // namespace webrtc | 1423 } // namespace webrtc |
OLD | NEW |