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

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: fix rebase 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 791 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « webrtc/modules/video_coding/codecs/vp9/vp9_impl.h ('k') | webrtc/modules/video_coding/generic_decoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698