Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(484)

Side by Side Diff: media/mojo/services/mojo_demuxer_stream_adapter.cc

Issue 1774763002: Plumb DemuxerStream::EnableBitstreamConverter through mojo pipeline. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: added comment Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « media/mojo/interfaces/demuxer_stream.mojom ('k') | media/mojo/services/mojo_demuxer_stream_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698