Index: media/mojo/interfaces/video_decoder.mojom |
diff --git a/media/mojo/interfaces/video_decoder.mojom b/media/mojo/interfaces/video_decoder.mojom |
new file mode 100644 |
index 0000000000000000000000000000000000000000..57afd6228f3f63e0db5c12e6167f18c04e2c8d12 |
--- /dev/null |
+++ b/media/mojo/interfaces/video_decoder.mojom |
@@ -0,0 +1,19 @@ |
+// Copyright 2016 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+module media.interfaces; |
+ |
+import "media/mojo/interfaces/media_types.mojom"; |
+ |
+interface VideoDecoder { |
xhwang
2016/05/05 17:26:37
Please add comments for these new interfaces.
sandersd (OOO until July 31)
2016/05/06 01:23:55
Done.
|
+ Initialize(VideoDecoderClient client, |
+ handle<data_pipe_consumer> decoder_buffer_pipe); |
+ Configure(VideoDecoderConfig config, bool low_delay) => (bool success); |
xhwang
2016/05/05 17:26:37
What's the plan around this? For now (to commit it
sandersd (OOO until July 31)
2016/05/06 01:23:55
I don't think it makes sense to merge them, and I
xhwang
2016/05/06 17:44:44
I don't remember why we had them separate (there w
sandersd (OOO until July 31)
2016/05/06 18:01:54
I would rather start a discussion about renaming m
|
+ Decode(DecoderBuffer buffer) => (DecodeStatus status); |
+ Reset() => (); |
+}; |
+ |
+interface VideoDecoderClient { |
+ OnVideoFrameDecoded(VideoFrame frame); |
+}; |