Index: webrtc/modules/video_coding/codecs/h264/h264_decoder_impl.h |
diff --git a/webrtc/modules/video_coding/codecs/h264/h264_decoder_impl.h b/webrtc/modules/video_coding/codecs/h264/h264_decoder_impl.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..3d2f6fdcfba9231ba6c1731056ffb75bdd153131 |
--- /dev/null |
+++ b/webrtc/modules/video_coding/codecs/h264/h264_decoder_impl.h |
@@ -0,0 +1,54 @@ |
+/* |
+ * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. |
+ * |
+ * Use of this source code is governed by a BSD-style license |
+ * that can be found in the LICENSE file in the root of the source |
+ * tree. An additional intellectual property rights grant can be found |
+ * in the file PATENTS. All contributing project authors may |
+ * be found in the AUTHORS file in the root of the source tree. |
+ * |
+ */ |
+ |
+#ifndef WEBRTC_MODULES_VIDEO_CODING_CODECS_H264_DECODER_IMPL_H_ |
+#define WEBRTC_MODULES_VIDEO_CODING_CODECS_H264_DECODER_IMPL_H_ |
+ |
+#include "webrtc/modules/video_coding/codecs/h264/include/h264.h" |
+ |
+class ISVCDecoder; |
+ |
+namespace webrtc { |
+ |
+class H264DecoderImpl : public H264Decoder { |
+ public: |
+ H264DecoderImpl(); |
+ ~H264DecoderImpl() override; |
+ |
+ // |number_of_cores| is ignored. |codec_settings| is also ignored except if |
+ // it's not null then |codec_settings->codecType| must be kVideoCodecH264. |
+ int32_t InitDecode(const VideoCodec* codec_settings, |
+ int32_t /*number_of_cores*/) override; |
+ int32_t Release() override; |
+ int32_t Reset() override; |
+ |
+ int32_t RegisterDecodeCompleteCallback( |
+ DecodedImageCallback* callback) override; |
+ |
+ // |missing_frames|, |fragmentation| and |render_time_ms| are ignored. |
+ int32_t Decode(const EncodedImage& input_image, |
+ bool /*missing_frames*/, |
+ const RTPFragmentationHeader* /*fragmentation*/, |
+ const CodecSpecificInfo* codec_specific_info = nullptr, |
+ int64_t render_time_ms = -1) override; |
+ |
+ bool IsInitialized(); |
stefan-webrtc
2015/10/01 13:13:52
Private?
hbos
2015/11/27 14:43:43
Ok sure.
|
+ |
+ private: |
+ ISVCDecoder* openh264_decoder_; |
+ |
+ VideoFrame decoded_image_; |
+ DecodedImageCallback* decoded_image_callback_; |
+}; |
+ |
+} // namespace webrtc |
+ |
+#endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_H264_DECODER_IMPL_H_ |