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 791 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
802 int VP9EncoderImpl::SetChannelParameters(uint32_t packet_loss, int64_t rtt) { | 802 int VP9EncoderImpl::SetChannelParameters(uint32_t packet_loss, int64_t rtt) { |
803 return WEBRTC_VIDEO_CODEC_OK; | 803 return WEBRTC_VIDEO_CODEC_OK; |
804 } | 804 } |
805 | 805 |
806 int VP9EncoderImpl::RegisterEncodeCompleteCallback( | 806 int VP9EncoderImpl::RegisterEncodeCompleteCallback( |
807 EncodedImageCallback* callback) { | 807 EncodedImageCallback* callback) { |
808 encoded_complete_callback_ = callback; | 808 encoded_complete_callback_ = callback; |
809 return WEBRTC_VIDEO_CODEC_OK; | 809 return WEBRTC_VIDEO_CODEC_OK; |
810 } | 810 } |
811 | 811 |
| 812 const char* VP9EncoderImpl::ImplementationName() const { |
| 813 return "libvpx"; |
| 814 } |
| 815 |
812 VP9Decoder* VP9Decoder::Create() { | 816 VP9Decoder* VP9Decoder::Create() { |
813 return new VP9DecoderImpl(); | 817 return new VP9DecoderImpl(); |
814 } | 818 } |
815 | 819 |
816 VP9DecoderImpl::VP9DecoderImpl() | 820 VP9DecoderImpl::VP9DecoderImpl() |
817 : decode_complete_callback_(NULL), | 821 : decode_complete_callback_(NULL), |
818 inited_(false), | 822 inited_(false), |
819 decoder_(NULL), | 823 decoder_(NULL), |
820 key_frame_required_(true) { | 824 key_frame_required_(true) { |
821 memset(&codec_, 0, sizeof(codec_)); | 825 memset(&codec_, 0, sizeof(codec_)); |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
973 delete decoder_; | 977 delete decoder_; |
974 decoder_ = NULL; | 978 decoder_ = NULL; |
975 } | 979 } |
976 // Releases buffers from the pool. Any buffers not in use are deleted. Buffers | 980 // Releases buffers from the pool. Any buffers not in use are deleted. Buffers |
977 // still referenced externally are deleted once fully released, not returning | 981 // still referenced externally are deleted once fully released, not returning |
978 // to the pool. | 982 // to the pool. |
979 frame_buffer_pool_.ClearPool(); | 983 frame_buffer_pool_.ClearPool(); |
980 inited_ = false; | 984 inited_ = false; |
981 return WEBRTC_VIDEO_CODEC_OK; | 985 return WEBRTC_VIDEO_CODEC_OK; |
982 } | 986 } |
| 987 |
| 988 const char* VP9DecoderImpl::ImplementationName() const { |
| 989 return "libvpx"; |
| 990 } |
| 991 |
983 } // namespace webrtc | 992 } // namespace webrtc |
OLD | NEW |