OLD | NEW |
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.interfaces; | 5 module media.mojom; |
6 | 6 |
7 import "media/mojo/interfaces/demuxer_stream.mojom"; | 7 import "media/mojo/interfaces/demuxer_stream.mojom"; |
8 import "media/mojo/interfaces/media_types.mojom"; | 8 import "media/mojo/interfaces/media_types.mojom"; |
9 | 9 |
10 // Interface for decrypting (and decoding) encrypted streams. | 10 // Interface for decrypting (and decoding) encrypted streams. |
11 // See media/base/decryptor.h for details. | 11 // See media/base/decryptor.h for details. |
12 interface Decryptor { | 12 interface Decryptor { |
13 // Status of a decrypt or decrypt-and-decode operation. The returned | 13 // Status of a decrypt or decrypt-and-decode operation. The returned |
14 // buffer/frame of such an operation is NOT null iff the status is SUCCESS. | 14 // buffer/frame of such an operation is NOT null iff the status is SUCCESS. |
15 enum Status { | 15 enum Status { |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 // |stream_type| immediately. | 69 // |stream_type| immediately. |
70 // This method can be called any time after Initialize{Audio|Video}Decoder() | 70 // This method can be called any time after Initialize{Audio|Video}Decoder() |
71 // has been called (with the correct stream type). | 71 // has been called (with the correct stream type). |
72 // After this operation, the decoder is set to an uninitialized state. | 72 // After this operation, the decoder is set to an uninitialized state. |
73 // The decoder can be reinitialized after it is deinitialized. | 73 // The decoder can be reinitialized after it is deinitialized. |
74 DeinitializeDecoder(DemuxerStream.Type stream_type); | 74 DeinitializeDecoder(DemuxerStream.Type stream_type); |
75 | 75 |
76 // Releases the shared memory. | 76 // Releases the shared memory. |
77 ReleaseSharedBuffer(handle<shared_buffer> buffer, uint64 buffer_size); | 77 ReleaseSharedBuffer(handle<shared_buffer> buffer, uint64 buffer_size); |
78 }; | 78 }; |
OLD | NEW |