Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(297)

Side by Side Diff: webrtc/modules/video_coding/codecs/vp9/vp9_impl.cc

Issue 1406903002: Expose codec implementation names in stats. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: remove conflict marker Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 793 matching lines...) Expand 10 before | Expand all | Expand 10 after
804 int VP9EncoderImpl::SetChannelParameters(uint32_t packet_loss, int64_t rtt) { 804 int VP9EncoderImpl::SetChannelParameters(uint32_t packet_loss, int64_t rtt) {
805 return WEBRTC_VIDEO_CODEC_OK; 805 return WEBRTC_VIDEO_CODEC_OK;
806 } 806 }
807 807
808 int VP9EncoderImpl::RegisterEncodeCompleteCallback( 808 int VP9EncoderImpl::RegisterEncodeCompleteCallback(
809 EncodedImageCallback* callback) { 809 EncodedImageCallback* callback) {
810 encoded_complete_callback_ = callback; 810 encoded_complete_callback_ = callback;
811 return WEBRTC_VIDEO_CODEC_OK; 811 return WEBRTC_VIDEO_CODEC_OK;
812 } 812 }
813 813
814 const char* VP9EncoderImpl::ImplementationName() const {
815 return "libvpx";
816 }
817
814 VP9Decoder* VP9Decoder::Create() { 818 VP9Decoder* VP9Decoder::Create() {
815 return new VP9DecoderImpl(); 819 return new VP9DecoderImpl();
816 } 820 }
817 821
818 VP9DecoderImpl::VP9DecoderImpl() 822 VP9DecoderImpl::VP9DecoderImpl()
819 : decode_complete_callback_(NULL), 823 : decode_complete_callback_(NULL),
820 inited_(false), 824 inited_(false),
821 decoder_(NULL), 825 decoder_(NULL),
822 key_frame_required_(true) { 826 key_frame_required_(true) {
823 memset(&codec_, 0, sizeof(codec_)); 827 memset(&codec_, 0, sizeof(codec_));
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
977 delete decoder_; 981 delete decoder_;
978 decoder_ = NULL; 982 decoder_ = NULL;
979 } 983 }
980 // Releases buffers from the pool. Any buffers not in use are deleted. Buffers 984 // Releases buffers from the pool. Any buffers not in use are deleted. Buffers
981 // still referenced externally are deleted once fully released, not returning 985 // still referenced externally are deleted once fully released, not returning
982 // to the pool. 986 // to the pool.
983 frame_buffer_pool_.ClearPool(); 987 frame_buffer_pool_.ClearPool();
984 inited_ = false; 988 inited_ = false;
985 return WEBRTC_VIDEO_CODEC_OK; 989 return WEBRTC_VIDEO_CODEC_OK;
986 } 990 }
991
992 const char* VP9DecoderImpl::ImplementationName() const {
993 return "libvpx";
994 }
995
987 } // namespace webrtc 996 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698