| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 int32_t FakeDecoder::RegisterDecodeCompleteCallback( | 47 int32_t FakeDecoder::RegisterDecodeCompleteCallback( |
| 48 DecodedImageCallback* callback) { | 48 DecodedImageCallback* callback) { |
| 49 callback_ = callback; | 49 callback_ = callback; |
| 50 return WEBRTC_VIDEO_CODEC_OK; | 50 return WEBRTC_VIDEO_CODEC_OK; |
| 51 } | 51 } |
| 52 | 52 |
| 53 int32_t FakeDecoder::Release() { | 53 int32_t FakeDecoder::Release() { |
| 54 return WEBRTC_VIDEO_CODEC_OK; | 54 return WEBRTC_VIDEO_CODEC_OK; |
| 55 } | 55 } |
| 56 | 56 |
| 57 int32_t FakeDecoder::Reset() { | |
| 58 return WEBRTC_VIDEO_CODEC_OK; | |
| 59 } | |
| 60 | |
| 61 const char* FakeDecoder::kImplementationName = "fake_decoder"; | 57 const char* FakeDecoder::kImplementationName = "fake_decoder"; |
| 62 const char* FakeDecoder::ImplementationName() const { | 58 const char* FakeDecoder::ImplementationName() const { |
| 63 return kImplementationName; | 59 return kImplementationName; |
| 64 } | 60 } |
| 65 | 61 |
| 66 int32_t FakeH264Decoder::Decode(const EncodedImage& input, | 62 int32_t FakeH264Decoder::Decode(const EncodedImage& input, |
| 67 bool missing_frames, | 63 bool missing_frames, |
| 68 const RTPFragmentationHeader* fragmentation, | 64 const RTPFragmentationHeader* fragmentation, |
| 69 const CodecSpecificInfo* codec_specific_info, | 65 const CodecSpecificInfo* codec_specific_info, |
| 70 int64_t render_time_ms) { | 66 int64_t render_time_ms) { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 84 } | 80 } |
| 85 return FakeDecoder::Decode(input, | 81 return FakeDecoder::Decode(input, |
| 86 missing_frames, | 82 missing_frames, |
| 87 fragmentation, | 83 fragmentation, |
| 88 codec_specific_info, | 84 codec_specific_info, |
| 89 render_time_ms); | 85 render_time_ms); |
| 90 } | 86 } |
| 91 | 87 |
| 92 } // namespace test | 88 } // namespace test |
| 93 } // namespace webrtc | 89 } // namespace webrtc |
| OLD | NEW |