Chromium Code Reviews| 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 import "media/mojo/interfaces/media_types.mojom" | 5 import "media/mojo/interfaces/media_types.mojom" |
| 6 | 6 |
| 7 module mojo { | 7 module mojo { |
| 8 | 8 |
| 9 // DemuxerStream is modeled after media::DemuxerStream using mojo in order to | 9 // DemuxerStream is modeled after media::DemuxerStream using mojo in order to |
| 10 // enable proxying between a media::Pipeline and media::Renderer living in two | 10 // enable proxying between a media::Pipeline and media::Renderer living in two |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 42 // [ |DemuxerStream::Status| |MediaDecoderBuffer| ] | 42 // [ |DemuxerStream::Status| |MediaDecoderBuffer| ] |
| 43 // | 43 // |
| 44 // payloads from the DataPipe directly. If |pipe| is NULL, it means the | 44 // payloads from the DataPipe directly. If |pipe| is NULL, it means the |
| 45 // client needs to use DemuxerStream::Read() directly to obtain buffers. | 45 // client needs to use DemuxerStream::Read() directly to obtain buffers. |
| 46 OnStreamReady(handle<data_pipe_consumer>? pipe); | 46 OnStreamReady(handle<data_pipe_consumer>? pipe); |
| 47 | 47 |
| 48 // A new AudioDecoderConfig is available. Will be sent by the DemuxerStream | 48 // A new AudioDecoderConfig is available. Will be sent by the DemuxerStream |
| 49 // whenever a DemuxerStream::STATUS_CONFIG_CHANGED is observed (either | 49 // whenever a DemuxerStream::STATUS_CONFIG_CHANGED is observed (either |
| 50 // in a Read() callback or over the DataPipe). | 50 // in a Read() callback or over the DataPipe). |
| 51 OnAudioDecoderConfigChanged(AudioDecoderConfig config); | 51 OnAudioDecoderConfigChanged(AudioDecoderConfig config); |
| 52 | |
| 53 // A new AudioDecoderConfig is available. Will be sent by the DemuxerStream | |
|
xhwang
2014/10/29 00:22:13
s/Audio/Video
DaleCurtis
2014/10/30 23:16:56
Done.
| |
| 54 // whenever a DemuxerStream::STATUS_CONFIG_CHANGED is observed (either | |
| 55 // in a Read() callback or over the DataPipe). | |
| 56 OnVideoDecoderConfigChanged(VideoDecoderConfig config); | |
| 52 }; | 57 }; |
| 53 | 58 |
| 54 } // module mojo | 59 } // module mojo |
| OLD | NEW |