| OLD | NEW |
| 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 26 matching lines...) Expand all Loading... |
| 37 DecodedImageCallback* callback) override; | 37 DecodedImageCallback* callback) override; |
| 38 | 38 |
| 39 int32_t Release() override; | 39 int32_t Release() override; |
| 40 | 40 |
| 41 const char* ImplementationName() const override; | 41 const char* ImplementationName() const override; |
| 42 | 42 |
| 43 static const char* kImplementationName; | 43 static const char* kImplementationName; |
| 44 | 44 |
| 45 private: | 45 private: |
| 46 VideoCodec config_; | 46 VideoCodec config_; |
| 47 VideoFrame frame_; | |
| 48 DecodedImageCallback* callback_; | 47 DecodedImageCallback* callback_; |
| 49 }; | 48 }; |
| 50 | 49 |
| 51 class FakeH264Decoder : public FakeDecoder { | 50 class FakeH264Decoder : public FakeDecoder { |
| 52 public: | 51 public: |
| 53 virtual ~FakeH264Decoder() {} | 52 virtual ~FakeH264Decoder() {} |
| 54 | 53 |
| 55 int32_t Decode(const EncodedImage& input, | 54 int32_t Decode(const EncodedImage& input, |
| 56 bool missing_frames, | 55 bool missing_frames, |
| 57 const RTPFragmentationHeader* fragmentation, | 56 const RTPFragmentationHeader* fragmentation, |
| (...skipping 10 matching lines...) Expand all Loading... |
| 68 const RTPFragmentationHeader* fragmentation, | 67 const RTPFragmentationHeader* fragmentation, |
| 69 const CodecSpecificInfo* codec_specific_info, | 68 const CodecSpecificInfo* codec_specific_info, |
| 70 int64_t render_time_ms) override { | 69 int64_t render_time_ms) override { |
| 71 return 0; | 70 return 0; |
| 72 } | 71 } |
| 73 }; | 72 }; |
| 74 } // namespace test | 73 } // namespace test |
| 75 } // namespace webrtc | 74 } // namespace webrtc |
| 76 | 75 |
| 77 #endif // WEBRTC_TEST_FAKE_DECODER_H_ | 76 #endif // WEBRTC_TEST_FAKE_DECODER_H_ |
| OLD | NEW |