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

Unified Diff: media/mojo/interfaces/video_decoder.mojom

Issue 1899363002: Finish plumbing MojoVideoDecoder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
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..b0c49f01f649cb123e53566134998cd562dea65f
--- /dev/null
+++ b/media/mojo/interfaces/video_decoder.mojom
@@ -0,0 +1,22 @@
+// 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 {
+ // TODO(sandersd): |cdm_context|.
+ // TODO(sandersd): Return values for NeedsBitstreamConversion(), et. al.
+ Initialize(VideoDecoderClient client, handle<data_pipe_consumer> decoder_buffer_consumer);
+
+ // TODO(sandersd): Do we need to return a failure status?
xhwang 2016/04/20 21:09:27 Yes, we should at least have the equivalent of the
sandersd (OOO until July 31) 2016/04/20 21:16:07 We do with this setup, there is a callback with no
+ Configure(VideoDecoderConfig config, bool low_delay) => ();
xhwang 2016/04/20 21:09:27 I am a bit confused here. The parameters in Initia
sandersd (OOO until July 31) 2016/04/20 21:16:07 Working on that right now, they will be passed to
+ Decode(DecoderBuffer buffer) => (DecodeStatus status);
+ Reset() => ();
+};
+
+interface VideoDecoderClient {
+ OnOutput(VideoFrame frame);
+};

Powered by Google App Engine
This is Rietveld 408576698