OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 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 |
11 #include "webrtc/media/engine/internaldecoderfactory.h" | 11 #include "webrtc/media/engine/internaldecoderfactory.h" |
12 | 12 |
13 #include <utility> | 13 #include <utility> |
14 | 14 |
15 #include "webrtc/base/logging.h" | |
16 #include "webrtc/modules/video_coding/codecs/h264/include/h264.h" | 15 #include "webrtc/modules/video_coding/codecs/h264/include/h264.h" |
17 #include "webrtc/modules/video_coding/codecs/vp8/include/vp8.h" | 16 #include "webrtc/modules/video_coding/codecs/vp8/include/vp8.h" |
18 #include "webrtc/modules/video_coding/codecs/vp9/include/vp9.h" | 17 #include "webrtc/modules/video_coding/codecs/vp9/include/vp9.h" |
| 18 #include "webrtc/rtc_base/logging.h" |
19 | 19 |
20 namespace cricket { | 20 namespace cricket { |
21 | 21 |
22 namespace { | 22 namespace { |
23 | 23 |
24 // Video decoder class to be used for unknown codecs. Doesn't support decoding | 24 // Video decoder class to be used for unknown codecs. Doesn't support decoding |
25 // but logs messages to LS_ERROR. | 25 // but logs messages to LS_ERROR. |
26 class NullVideoDecoder : public webrtc::VideoDecoder { | 26 class NullVideoDecoder : public webrtc::VideoDecoder { |
27 public: | 27 public: |
28 int32_t InitDecode(const webrtc::VideoCodec* codec_settings, | 28 int32_t InitDecode(const webrtc::VideoCodec* codec_settings, |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 return new NullVideoDecoder(); | 81 return new NullVideoDecoder(); |
82 } | 82 } |
83 } | 83 } |
84 | 84 |
85 void InternalDecoderFactory::DestroyVideoDecoder( | 85 void InternalDecoderFactory::DestroyVideoDecoder( |
86 webrtc::VideoDecoder* decoder) { | 86 webrtc::VideoDecoder* decoder) { |
87 delete decoder; | 87 delete decoder; |
88 } | 88 } |
89 | 89 |
90 } // namespace cricket | 90 } // namespace cricket |
OLD | NEW |