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

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

Issue 2643743002: Mojify demuxers and allow running {Chunk/FFmpeg}Demuxer in a Utility Process (Closed)
Patch Set: Rebase and make sure to unbind mojom::DemuxerPtr on the bound thread during termination Created 3 years, 10 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 module media.mojom; 5 module media.mojom;
6 6
7 import "ui/gfx/geometry/mojo/geometry.mojom"; 7 import "ui/gfx/geometry/mojo/geometry.mojom";
8 import "mojo/common/time.mojom"; 8 import "mojo/common/time.mojom";
9 9
10 // See media/base/buffering_state.h for descriptions. 10 // See media/base/buffering_state.h for descriptions.
11 [Native] 11 [Native]
12 enum BufferingState; 12 enum BufferingState;
13 13
14 // See media/base/decode_status.h for descriptions. 14 // See media/base/decode_status.h for descriptions.
15 [Native] 15 [Native]
16 enum DecodeStatus; 16 enum DecodeStatus;
17 17
18 // See media/base/audio_codecs.h for descriptions. 18 // See media/base/audio_codecs.h for descriptions.
19 [Native] 19 [Native]
20 enum AudioCodec; 20 enum AudioCodec;
21 21
22 // See media/base/channel_layout.h for descriptions. 22 // See media/base/channel_layout.h for descriptions.
23 [Native] 23 [Native]
24 enum ChannelLayout; 24 enum ChannelLayout;
25 25
26 // See base/memory/memory_pressure_listener.h for descriptions.
27 [Native]
28 enum MemoryPressureLevel;
29
26 // See media/base/sample_format.h for descriptions. 30 // See media/base/sample_format.h for descriptions.
27 [Native] 31 [Native]
28 enum SampleFormat; 32 enum SampleFormat;
29 33
30 // See media/base/video_types.h for descriptions. 34 // See media/base/video_types.h for descriptions.
31 [Native] 35 [Native]
32 enum VideoPixelFormat; 36 enum VideoPixelFormat;
33 37
34 // See media/base/video_types.h for descriptions. 38 // See media/base/video_types.h for descriptions.
35 [Native] 39 [Native]
36 enum ColorSpace; 40 enum ColorSpace;
37 41
38 // See media/base/video_codecs.h for descriptions. 42 // See media/base/video_codecs.h for descriptions.
39 [Native] 43 [Native]
40 enum VideoCodec; 44 enum VideoCodec;
41 45
42 // See media/base/video_codecs.h for descriptions. 46 // See media/base/video_codecs.h for descriptions.
43 [Native] 47 [Native]
44 enum VideoCodecProfile; 48 enum VideoCodecProfile;
45 49
50 // See media/base/pipeline_status.h for descriptions.
51 [Native]
52 enum PipelineStatus;
53
46 // This defines a mojo transport format for media::EncryptionScheme::Pattern 54 // This defines a mojo transport format for media::EncryptionScheme::Pattern
47 // See media/base/encryption_scheme.h for description. 55 // See media/base/encryption_scheme.h for description.
48 struct Pattern { 56 struct Pattern {
49 uint32 encrypt_blocks; 57 uint32 encrypt_blocks;
50 uint32 skip_blocks; 58 uint32 skip_blocks;
51 }; 59 };
52 60
53 // This defines a mojo transport format for media::EncryptionScheme. 61 // This defines a mojo transport format for media::EncryptionScheme.
54 // See media/base/encryption_scheme.h for description. 62 // See media/base/encryption_scheme.h for description.
55 struct EncryptionScheme { 63 struct EncryptionScheme {
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 struct SubsampleEntry; 100 struct SubsampleEntry;
93 101
94 // This defines a mojo transport format for media::DecryptConfig. 102 // This defines a mojo transport format for media::DecryptConfig.
95 // See media/base/decrypt_config.h for descriptions. 103 // See media/base/decrypt_config.h for descriptions.
96 struct DecryptConfig { 104 struct DecryptConfig {
97 string key_id; 105 string key_id;
98 string iv; 106 string iv;
99 array<SubsampleEntry> subsamples; 107 array<SubsampleEntry> subsamples;
100 }; 108 };
101 109
110 // This defines a mojo transport format for media::MediaTrack.
111 struct MediaTrack {
112 uint32 type;
113 string id;
114 int32 bytestream_track_id;
115 string kind;
116 string label;
117 string language;
118 };
119
120 // This defines a mojo transport format for media::MediaTracks.
121 struct MediaTracks {
122 array<MediaTrack> tracks;
123 };
124
125 // This defines a mojo transport format for std::pair<base::TimeDelta, base::Tim eDelta>.
126 struct TimeDeltaPair {
127 mojo.common.mojom.TimeDelta start;
128 mojo.common.mojom.TimeDelta end;
129 };
130
131 // This defines a mojo transport format for media::Ranges<base::TimeDelta>.
132 struct RangesTimeDelta {
133 array<TimeDeltaPair> ranges;
134 };
135
136 // This defines a mojo transport format for media::DataBuffer.
137 struct DataBuffer {
138 mojo.common.mojom.TimeDelta timestamp;
139 mojo.common.mojom.TimeDelta duration;
140
141 // Whether the buffer is an end-of-stream (EOS) buffer.
142 bool is_end_of_stream;
143
144 // The number of bytes present in this buffer. The data is not serialized
145 // along with this structure and must be read from a separate DataPipe.
146 // Note that |data_size| could be zero even for a non-EOS buffer (e.g.
147 // with non-empty |size_data|). See http://crbug.com/663438
148 uint32 data_size;
149 };
150
102 // This defines a mojo transport format for media::DecoderBuffer. 151 // This defines a mojo transport format for media::DecoderBuffer.
103 struct DecoderBuffer { 152 struct DecoderBuffer {
104 mojo.common.mojom.TimeDelta timestamp; 153 mojo.common.mojom.TimeDelta timestamp;
105 mojo.common.mojom.TimeDelta duration; 154 mojo.common.mojom.TimeDelta duration;
106 155
107 // Whether the buffer is an end-of-stream (EOS) buffer. 156 // Whether the buffer is an end-of-stream (EOS) buffer.
108 bool is_end_of_stream; 157 bool is_end_of_stream;
109 158
110 // The number of bytes present in this buffer. The data is not serialized 159 // The number of bytes present in this buffer. The data is not serialized
111 // along with this structure and must be read from a separate DataPipe. 160 // along with this structure and must be read from a separate DataPipe.
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 }; 252 };
204 253
205 struct PipelineStatistics { 254 struct PipelineStatistics {
206 uint64 audio_bytes_decoded; 255 uint64 audio_bytes_decoded;
207 uint64 video_bytes_decoded; 256 uint64 video_bytes_decoded;
208 uint32 video_frames_decoded; 257 uint32 video_frames_decoded;
209 uint32 video_frames_dropped; 258 uint32 video_frames_dropped;
210 int64 audio_memory_usage; 259 int64 audio_memory_usage;
211 int64 video_memory_usage; 260 int64 video_memory_usage;
212 }; 261 };
OLDNEW
« no previous file with comments | « media/mojo/interfaces/interface_factory.mojom ('k') | media/mojo/interfaces/media_types.typemap » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698