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 590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
601 int VP9EncoderImpl::SetChannelParameters(uint32_t packet_loss, int64_t rtt) { | 601 int VP9EncoderImpl::SetChannelParameters(uint32_t packet_loss, int64_t rtt) { |
602 return WEBRTC_VIDEO_CODEC_OK; | 602 return WEBRTC_VIDEO_CODEC_OK; |
603 } | 603 } |
604 | 604 |
605 int VP9EncoderImpl::RegisterEncodeCompleteCallback( | 605 int VP9EncoderImpl::RegisterEncodeCompleteCallback( |
606 EncodedImageCallback* callback) { | 606 EncodedImageCallback* callback) { |
607 encoded_complete_callback_ = callback; | 607 encoded_complete_callback_ = callback; |
608 return WEBRTC_VIDEO_CODEC_OK; | 608 return WEBRTC_VIDEO_CODEC_OK; |
609 } | 609 } |
610 | 610 |
| 611 const char* VP9EncoderImpl::ImplementationName() const { |
| 612 return "libvpx"; |
| 613 } |
| 614 |
611 VP9Decoder* VP9Decoder::Create() { | 615 VP9Decoder* VP9Decoder::Create() { |
612 return new VP9DecoderImpl(); | 616 return new VP9DecoderImpl(); |
613 } | 617 } |
614 | 618 |
615 VP9DecoderImpl::VP9DecoderImpl() | 619 VP9DecoderImpl::VP9DecoderImpl() |
616 : decode_complete_callback_(NULL), | 620 : decode_complete_callback_(NULL), |
617 inited_(false), | 621 inited_(false), |
618 decoder_(NULL), | 622 decoder_(NULL), |
619 key_frame_required_(true) { | 623 key_frame_required_(true) { |
620 memset(&codec_, 0, sizeof(codec_)); | 624 memset(&codec_, 0, sizeof(codec_)); |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
774 delete decoder_; | 778 delete decoder_; |
775 decoder_ = NULL; | 779 decoder_ = NULL; |
776 } | 780 } |
777 // Releases buffers from the pool. Any buffers not in use are deleted. Buffers | 781 // Releases buffers from the pool. Any buffers not in use are deleted. Buffers |
778 // still referenced externally are deleted once fully released, not returning | 782 // still referenced externally are deleted once fully released, not returning |
779 // to the pool. | 783 // to the pool. |
780 frame_buffer_pool_.ClearPool(); | 784 frame_buffer_pool_.ClearPool(); |
781 inited_ = false; | 785 inited_ = false; |
782 return WEBRTC_VIDEO_CODEC_OK; | 786 return WEBRTC_VIDEO_CODEC_OK; |
783 } | 787 } |
| 788 |
| 789 const char* VP9DecoderImpl::ImplementationName() const { |
| 790 return "libvpx"; |
| 791 } |
| 792 |
784 } // namespace webrtc | 793 } // namespace webrtc |
OLD | NEW |