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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/mojo/interfaces/interface_factory.mojom ('k') | media/mojo/interfaces/media_types.typemap » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mojo/interfaces/media_types.mojom
diff --git a/media/mojo/interfaces/media_types.mojom b/media/mojo/interfaces/media_types.mojom
index e2c9b26203731b21b349cdea30692971b221cc51..8859a41cf46b13f45332acae7818694f035b79a6 100644
--- a/media/mojo/interfaces/media_types.mojom
+++ b/media/mojo/interfaces/media_types.mojom
@@ -23,6 +23,10 @@ enum AudioCodec;
[Native]
enum ChannelLayout;
+// See base/memory/memory_pressure_listener.h for descriptions.
+[Native]
+enum MemoryPressureLevel;
+
// See media/base/sample_format.h for descriptions.
[Native]
enum SampleFormat;
@@ -43,6 +47,10 @@ enum VideoCodec;
[Native]
enum VideoCodecProfile;
+// See media/base/pipeline_status.h for descriptions.
+[Native]
+enum PipelineStatus;
+
// This defines a mojo transport format for media::EncryptionScheme::Pattern
// See media/base/encryption_scheme.h for description.
struct Pattern {
@@ -99,6 +107,47 @@ struct DecryptConfig {
array<SubsampleEntry> subsamples;
};
+// This defines a mojo transport format for media::MediaTrack.
+struct MediaTrack {
+ uint32 type;
+ string id;
+ int32 bytestream_track_id;
+ string kind;
+ string label;
+ string language;
+};
+
+// This defines a mojo transport format for media::MediaTracks.
+struct MediaTracks {
+ array<MediaTrack> tracks;
+};
+
+// This defines a mojo transport format for std::pair<base::TimeDelta, base::TimeDelta>.
+struct TimeDeltaPair {
+ mojo.common.mojom.TimeDelta start;
+ mojo.common.mojom.TimeDelta end;
+};
+
+// This defines a mojo transport format for media::Ranges<base::TimeDelta>.
+struct RangesTimeDelta {
+ array<TimeDeltaPair> ranges;
+};
+
+// This defines a mojo transport format for media::DataBuffer.
+struct DataBuffer {
+ mojo.common.mojom.TimeDelta timestamp;
+ mojo.common.mojom.TimeDelta duration;
+
+ // Whether the buffer is an end-of-stream (EOS) buffer.
+ bool is_end_of_stream;
+
+ // The number of bytes present in this buffer. The data is not serialized
+ // along with this structure and must be read from a separate DataPipe.
+ // Note that |data_size| could be zero even for a non-EOS buffer (e.g.
+ // with non-empty |size_data|). See http://crbug.com/663438
+ uint32 data_size;
+};
+
// This defines a mojo transport format for media::DecoderBuffer.
struct DecoderBuffer {
mojo.common.mojom.TimeDelta timestamp;
« 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