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

Side by Side Diff: webrtc/test/fake_decoder.h

Issue 1406903002: Expose codec implementation names in stats. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years, 2 months 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) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 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 21 matching lines...) Expand all
32 const RTPFragmentationHeader* fragmentation, 32 const RTPFragmentationHeader* fragmentation,
33 const CodecSpecificInfo* codec_specific_info, 33 const CodecSpecificInfo* codec_specific_info,
34 int64_t render_time_ms) override; 34 int64_t render_time_ms) override;
35 35
36 int32_t RegisterDecodeCompleteCallback( 36 int32_t RegisterDecodeCompleteCallback(
37 DecodedImageCallback* callback) override; 37 DecodedImageCallback* callback) override;
38 38
39 int32_t Release() override; 39 int32_t Release() override;
40 int32_t Reset() override; 40 int32_t Reset() override;
41 41
42 const char* ImplementationName() const override;
43
44 static const char* kImplementationName;
42 private: 45 private:
stefan-webrtc 2015/10/16 07:47:03 newline above
pbos-webrtc 2015/10/16 13:12:05 Done.
43 VideoCodec config_; 46 VideoCodec config_;
44 VideoFrame frame_; 47 VideoFrame frame_;
45 DecodedImageCallback* callback_; 48 DecodedImageCallback* callback_;
46 }; 49 };
47 50
48 class FakeH264Decoder : public FakeDecoder { 51 class FakeH264Decoder : public FakeDecoder {
49 public: 52 public:
50 virtual ~FakeH264Decoder() {} 53 virtual ~FakeH264Decoder() {}
51 54
52 int32_t Decode(const EncodedImage& input, 55 int32_t Decode(const EncodedImage& input,
(...skipping 12 matching lines...) Expand all
65 const RTPFragmentationHeader* fragmentation, 68 const RTPFragmentationHeader* fragmentation,
66 const CodecSpecificInfo* codec_specific_info, 69 const CodecSpecificInfo* codec_specific_info,
67 int64_t render_time_ms) override { 70 int64_t render_time_ms) override {
68 return 0; 71 return 0;
69 } 72 }
70 }; 73 };
71 } // namespace test 74 } // namespace test
72 } // namespace webrtc 75 } // namespace webrtc
73 76
74 #endif // WEBRTC_VIDEO_ENGINE_TEST_COMMON_FAKE_DECODER_H_ 77 #endif // WEBRTC_VIDEO_ENGINE_TEST_COMMON_FAKE_DECODER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698