Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 module media.interfaces; | |
| 6 | |
| 7 import "media/mojo/interfaces/media_types.mojom"; | |
| 8 | |
| 9 interface VideoDecoder { | |
| 10 // TODO(sandersd): |cdm_context|. | |
| 11 // TODO(sandersd): Return values for NeedsBitstreamConversion(), et. al. | |
| 12 Initialize(VideoDecoderClient client, handle<data_pipe_consumer> decoder_buffe r_consumer); | |
| 13 | |
| 14 // 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
| |
| 15 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
| |
| 16 Decode(DecoderBuffer buffer) => (DecodeStatus status); | |
| 17 Reset() => (); | |
| 18 }; | |
| 19 | |
| 20 interface VideoDecoderClient { | |
| 21 OnOutput(VideoFrame frame); | |
| 22 }; | |
| OLD | NEW |