| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "media/mojo/services/mojo_demuxer_stream_adapter.h" | 5 #include "media/mojo/services/mojo_demuxer_stream_adapter.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 VideoDecoderConfig MojoDemuxerStreamAdapter::video_decoder_config() { | 51 VideoDecoderConfig MojoDemuxerStreamAdapter::video_decoder_config() { |
| 52 DCHECK_EQ(type_, DemuxerStream::VIDEO); | 52 DCHECK_EQ(type_, DemuxerStream::VIDEO); |
| 53 return video_config_; | 53 return video_config_; |
| 54 } | 54 } |
| 55 | 55 |
| 56 DemuxerStream::Type MojoDemuxerStreamAdapter::type() const { | 56 DemuxerStream::Type MojoDemuxerStreamAdapter::type() const { |
| 57 return type_; | 57 return type_; |
| 58 } | 58 } |
| 59 | 59 |
| 60 void MojoDemuxerStreamAdapter::EnableBitstreamConverter() { | 60 void MojoDemuxerStreamAdapter::EnableBitstreamConverter() { |
| 61 NOTIMPLEMENTED(); | 61 demuxer_stream_->EnableBitstreamConverter(); |
| 62 } | 62 } |
| 63 | 63 |
| 64 bool MojoDemuxerStreamAdapter::SupportsConfigChanges() { | 64 bool MojoDemuxerStreamAdapter::SupportsConfigChanges() { |
| 65 return true; | 65 return true; |
| 66 } | 66 } |
| 67 | 67 |
| 68 VideoRotation MojoDemuxerStreamAdapter::video_rotation() { | 68 VideoRotation MojoDemuxerStreamAdapter::video_rotation() { |
| 69 NOTIMPLEMENTED(); | 69 NOTIMPLEMENTED(); |
| 70 return VIDEO_ROTATION_0; | 70 return VIDEO_ROTATION_0; |
| 71 } | 71 } |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 case DemuxerStream::VIDEO: | 148 case DemuxerStream::VIDEO: |
| 149 DCHECK(video_config && !audio_config); | 149 DCHECK(video_config && !audio_config); |
| 150 video_config_ = video_config.To<VideoDecoderConfig>(); | 150 video_config_ = video_config.To<VideoDecoderConfig>(); |
| 151 break; | 151 break; |
| 152 default: | 152 default: |
| 153 NOTREACHED(); | 153 NOTREACHED(); |
| 154 } | 154 } |
| 155 } | 155 } |
| 156 | 156 |
| 157 } // namespace media | 157 } // namespace media |
| OLD | NEW |