OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <condition_variable> | 5 #include <condition_variable> |
6 #include <map> | 6 #include <map> |
7 #include <mutex> | 7 #include <mutex> |
8 #include <thread> | 8 #include <thread> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "services/media/framework/util/incident.h" | |
12 #include "services/media/framework/util/safe_clone.h" | 11 #include "services/media/framework/util/safe_clone.h" |
13 #include "services/media/framework_ffmpeg/av_codec_context.h" | 12 #include "services/media/framework_ffmpeg/av_codec_context.h" |
14 #include "services/media/framework_ffmpeg/av_format_context.h" | 13 #include "services/media/framework_ffmpeg/av_format_context.h" |
15 #include "services/media/framework_ffmpeg/av_io_context.h" | 14 #include "services/media/framework_ffmpeg/av_io_context.h" |
16 #include "services/media/framework_ffmpeg/av_packet.h" | 15 #include "services/media/framework_ffmpeg/av_packet.h" |
17 #include "services/media/framework_ffmpeg/ffmpeg_demux.h" | 16 #include "services/media/framework_ffmpeg/ffmpeg_demux.h" |
| 17 #include "services/util/cpp/incident.h" |
18 | 18 |
19 namespace mojo { | 19 namespace mojo { |
20 namespace media { | 20 namespace media { |
21 | 21 |
22 class FfmpegDemuxImpl : public FfmpegDemux { | 22 class FfmpegDemuxImpl : public FfmpegDemux { |
23 public: | 23 public: |
24 FfmpegDemuxImpl(std::shared_ptr<Reader> reader); | 24 FfmpegDemuxImpl(std::shared_ptr<Reader> reader); |
25 | 25 |
26 ~FfmpegDemuxImpl() override; | 26 ~FfmpegDemuxImpl() override; |
27 | 27 |
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
340 return index_; | 340 return index_; |
341 } | 341 } |
342 | 342 |
343 std::unique_ptr<StreamType> FfmpegDemuxImpl::FfmpegDemuxStream::stream_type() | 343 std::unique_ptr<StreamType> FfmpegDemuxImpl::FfmpegDemuxStream::stream_type() |
344 const { | 344 const { |
345 return SafeClone(stream_type_); | 345 return SafeClone(stream_type_); |
346 } | 346 } |
347 | 347 |
348 } // namespace media | 348 } // namespace media |
349 } // namespace mojo | 349 } // namespace mojo |
OLD | NEW |