OLD | NEW |
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 21 matching lines...) Expand all Loading... |
32 virtual int32_t ReceivedDecodedReferenceFrame(const uint64_t pictureId) { | 32 virtual int32_t ReceivedDecodedReferenceFrame(const uint64_t pictureId) { |
33 return -1; | 33 return -1; |
34 } | 34 } |
35 | 35 |
36 virtual int32_t ReceivedDecodedFrame(const uint64_t pictureId) { return -1; } | 36 virtual int32_t ReceivedDecodedFrame(const uint64_t pictureId) { return -1; } |
37 }; | 37 }; |
38 | 38 |
39 class VideoDecoder { | 39 class VideoDecoder { |
40 public: | 40 public: |
41 enum DecoderType { | 41 enum DecoderType { |
| 42 kH264, |
42 kVp8, | 43 kVp8, |
43 kVp9, | 44 kVp9, |
44 kUnsupportedCodec, | 45 kUnsupportedCodec, |
45 }; | 46 }; |
46 | 47 |
47 static VideoDecoder* Create(DecoderType codec_type); | 48 static VideoDecoder* Create(DecoderType codec_type); |
48 | 49 |
49 virtual ~VideoDecoder() {} | 50 virtual ~VideoDecoder() {} |
50 | 51 |
51 virtual int32_t InitDecode(const VideoCodec* codec_settings, | 52 virtual int32_t InitDecode(const VideoCodec* codec_settings, |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 | 96 |
96 VideoCodec codec_settings_; | 97 VideoCodec codec_settings_; |
97 int32_t number_of_cores_; | 98 int32_t number_of_cores_; |
98 rtc::scoped_ptr<VideoDecoder> fallback_decoder_; | 99 rtc::scoped_ptr<VideoDecoder> fallback_decoder_; |
99 DecodedImageCallback* callback_; | 100 DecodedImageCallback* callback_; |
100 }; | 101 }; |
101 | 102 |
102 } // namespace webrtc | 103 } // namespace webrtc |
103 | 104 |
104 #endif // WEBRTC_VIDEO_DECODER_H_ | 105 #endif // WEBRTC_VIDEO_DECODER_H_ |
OLD | NEW |