OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2014 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 689 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
700 if (encoded_image_._length > 0) { | 700 if (encoded_image_._length > 0) { |
701 TRACE_COUNTER1("webrtc", "EncodedFrameSize", encoded_image_._length); | 701 TRACE_COUNTER1("webrtc", "EncodedFrameSize", encoded_image_._length); |
702 encoded_image_._timeStamp = input_image_->timestamp(); | 702 encoded_image_._timeStamp = input_image_->timestamp(); |
703 encoded_image_.capture_time_ms_ = input_image_->render_time_ms(); | 703 encoded_image_.capture_time_ms_ = input_image_->render_time_ms(); |
704 encoded_image_.rotation_ = input_image_->rotation(); | 704 encoded_image_.rotation_ = input_image_->rotation(); |
705 encoded_image_._encodedHeight = raw_->d_h; | 705 encoded_image_._encodedHeight = raw_->d_h; |
706 encoded_image_._encodedWidth = raw_->d_w; | 706 encoded_image_._encodedWidth = raw_->d_w; |
707 int qp = -1; | 707 int qp = -1; |
708 vpx_codec_control(encoder_, VP8E_GET_LAST_QUANTIZER, &qp); | 708 vpx_codec_control(encoder_, VP8E_GET_LAST_QUANTIZER, &qp); |
709 encoded_image_.qp_ = qp; | 709 encoded_image_.qp_ = qp; |
710 encoded_complete_callback_->Encoded(encoded_image_, &codec_specific, | 710 encoded_complete_callback_->OnEncodedImage(encoded_image_, &codec_specific, |
711 &frag_info); | 711 &frag_info); |
712 } | 712 } |
713 return WEBRTC_VIDEO_CODEC_OK; | 713 return WEBRTC_VIDEO_CODEC_OK; |
714 } | 714 } |
715 | 715 |
716 vpx_svc_ref_frame_config VP9EncoderImpl::GenerateRefsAndFlags( | 716 vpx_svc_ref_frame_config VP9EncoderImpl::GenerateRefsAndFlags( |
717 const SuperFrameRefSettings& settings) { | 717 const SuperFrameRefSettings& settings) { |
718 static const vpx_enc_frame_flags_t kAllFlags = | 718 static const vpx_enc_frame_flags_t kAllFlags = |
719 VP8_EFLAG_NO_REF_ARF | VP8_EFLAG_NO_REF_GF | VP8_EFLAG_NO_REF_LAST | | 719 VP8_EFLAG_NO_REF_ARF | VP8_EFLAG_NO_REF_GF | VP8_EFLAG_NO_REF_LAST | |
720 VP8_EFLAG_NO_UPD_LAST | VP8_EFLAG_NO_UPD_ARF | VP8_EFLAG_NO_UPD_GF; | 720 VP8_EFLAG_NO_UPD_LAST | VP8_EFLAG_NO_UPD_ARF | VP8_EFLAG_NO_UPD_GF; |
721 vpx_svc_ref_frame_config sf_conf = {}; | 721 vpx_svc_ref_frame_config sf_conf = {}; |
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
996 frame_buffer_pool_.ClearPool(); | 996 frame_buffer_pool_.ClearPool(); |
997 inited_ = false; | 997 inited_ = false; |
998 return WEBRTC_VIDEO_CODEC_OK; | 998 return WEBRTC_VIDEO_CODEC_OK; |
999 } | 999 } |
1000 | 1000 |
1001 const char* VP9DecoderImpl::ImplementationName() const { | 1001 const char* VP9DecoderImpl::ImplementationName() const { |
1002 return "libvpx"; | 1002 return "libvpx"; |
1003 } | 1003 } |
1004 | 1004 |
1005 } // namespace webrtc | 1005 } // namespace webrtc |
OLD | NEW |