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

Side by Side Diff: media/mojo/interfaces/demuxer_stream.mojom

Issue 684963003: Add support for external video renderers in mojo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo_config
Patch Set: More MSVC... Created 6 years, 1 month 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
« no previous file with comments | « media/mojo/interfaces/BUILD.gn ('k') | media/mojo/interfaces/media_renderer.mojom » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 module mojo; 5 module mojo;
6 6
7 import "media/mojo/interfaces/media_types.mojom"; 7 import "media/mojo/interfaces/media_types.mojom";
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
11 // different applications. 11 // different applications.
12 [Client=DemuxerStreamClient] 12 [Client=DemuxerStreamClient]
13 interface DemuxerStream { 13 interface DemuxerStream {
14 // See media::DemuxerStream for descriptions. 14 // See media::DemuxerStream for descriptions.
15 enum Type { 15 enum Type {
16 UNKNOWN, 16 UNKNOWN,
17 AUDIO, 17 AUDIO,
18 LAST_TYPE = AUDIO 18 VIDEO,
19 LAST_TYPE = VIDEO,
19 }; 20 };
20 21
21 // See media::DemuxerStream for descriptions. 22 // See media::DemuxerStream for descriptions.
22 enum Status { 23 enum Status {
23 OK = 0, 24 OK = 0,
24 ABORTED, 25 ABORTED,
25 CONFIG_CHANGED, 26 CONFIG_CHANGED,
26 }; 27 };
27 28
28 // Request a MediaDecoderBuffer from this stream for decoding and rendering. 29 // Request a MediaDecoderBuffer from this stream for decoding and rendering.
(...skipping 13 matching lines...) Expand all
42 // [ |DemuxerStream::Status| |MediaDecoderBuffer| ] 43 // [ |DemuxerStream::Status| |MediaDecoderBuffer| ]
43 // 44 //
44 // payloads from the DataPipe directly. If |pipe| is NULL, it means the 45 // payloads from the DataPipe directly. If |pipe| is NULL, it means the
45 // client needs to use DemuxerStream::Read() directly to obtain buffers. 46 // client needs to use DemuxerStream::Read() directly to obtain buffers.
46 OnStreamReady(handle<data_pipe_consumer>? pipe); 47 OnStreamReady(handle<data_pipe_consumer>? pipe);
47 48
48 // A new AudioDecoderConfig is available. Will be sent by the DemuxerStream 49 // A new AudioDecoderConfig is available. Will be sent by the DemuxerStream
49 // whenever a DemuxerStream::STATUS_CONFIG_CHANGED is observed (either 50 // whenever a DemuxerStream::STATUS_CONFIG_CHANGED is observed (either
50 // in a Read() callback or over the DataPipe). 51 // in a Read() callback or over the DataPipe).
51 OnAudioDecoderConfigChanged(AudioDecoderConfig config); 52 OnAudioDecoderConfigChanged(AudioDecoderConfig config);
53
54 // A new VideoDecoderConfig is available. Will be sent by the DemuxerStream
55 // whenever a DemuxerStream::STATUS_CONFIG_CHANGED is observed (either
56 // in a Read() callback or over the DataPipe).
57 OnVideoDecoderConfigChanged(VideoDecoderConfig config);
52 }; 58 };
OLDNEW
« no previous file with comments | « media/mojo/interfaces/BUILD.gn ('k') | media/mojo/interfaces/media_renderer.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698