blob: 974af403d692040d6a56d546a23c05a64c5aba08 [file] [log] [blame]
Per Kjellander841c9122018-10-04 16:40:281/*
2 * Copyright (c) 2018 The WebRTC project authors. All Rights Reserved.
3 *
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
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11#ifndef TEST_FAKE_VP8_DECODER_H_
12#define TEST_FAKE_VP8_DECODER_H_
13
14#include "modules/video_coding/include/video_codec_interface.h"
15#include "system_wrappers/include/clock.h"
16
17namespace webrtc {
18namespace test {
19
20class FakeVp8Decoder : public VideoDecoder {
21 public:
22 FakeVp8Decoder();
23 ~FakeVp8Decoder() override {}
24
25 int32_t InitDecode(const VideoCodec* config,
26 int32_t number_of_cores) override;
27
28 int32_t Decode(const EncodedImage& input,
29 bool missing_frames,
30 const CodecSpecificInfo* codec_specific_info,
31 int64_t render_time_ms) override;
32
33 int32_t RegisterDecodeCompleteCallback(
34 DecodedImageCallback* callback) override;
35
36 int32_t Release() override;
37
38 const char* ImplementationName() const override;
39
40 static const char* kImplementationName;
41
42 private:
43 DecodedImageCallback* callback_;
44 int width_;
45 int height_;
46};
47
48} // namespace test
49} // namespace webrtc
50
51#endif // TEST_FAKE_VP8_DECODER_H_