Chromium Code Reviews| 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.mojom; | 5 module media.mojom; |
| 6 | 6 |
| 7 import "ui/gfx/geometry/mojo/geometry.mojom"; | 7 import "ui/gfx/geometry/mojo/geometry.mojom"; |
| 8 import "mojo/common/common_custom_types.mojom"; | 8 import "mojo/common/common_custom_types.mojom"; |
| 9 | 9 |
| 10 // See media/base/buffering_state.h for descriptions. | 10 // See media/base/buffering_state.h for descriptions. |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 97 string key_id; | 97 string key_id; |
| 98 string iv; | 98 string iv; |
| 99 array<SubsampleEntry> subsamples; | 99 array<SubsampleEntry> subsamples; |
| 100 }; | 100 }; |
| 101 | 101 |
| 102 // This defines a mojo transport format for media::DecoderBuffer. | 102 // This defines a mojo transport format for media::DecoderBuffer. |
| 103 struct DecoderBuffer { | 103 struct DecoderBuffer { |
| 104 mojo.common.mojom.TimeDelta timestamp; | 104 mojo.common.mojom.TimeDelta timestamp; |
| 105 mojo.common.mojom.TimeDelta duration; | 105 mojo.common.mojom.TimeDelta duration; |
| 106 | 106 |
| 107 // The number of bytes present in this buffer. The data is not serialized | 107 // Whether the buffer is an end-of-stream (EOS) buffer. |
| 108 bool is_end_of_stream; | |
|
alokp
2016/11/08 21:34:08
If "data_size == 0 && side_data_size == 0", would
xhwang
2016/11/08 22:13:51
We could, but I feel it's really hacky and confusi
alokp
2016/11/08 22:17:30
I agree. Should we add this flag to media::Decoder
xhwang
2016/11/08 22:28:35
Agreed. I tried refactor DecoderBuffer last week b
| |
| 109 | |
| 110 // The number of bytes present in this buffer. The data is not serialized | |
| 108 // along with this structure and must be read from a separate DataPipe. | 111 // along with this structure and must be read from a separate DataPipe. |
| 112 // Note that |data_size| could be zero even for a non-EOS buffer (e.g. | |
| 113 // with non-empty |size_data|). See http://crbug.com/663438 | |
| 109 uint32 data_size; | 114 uint32 data_size; |
| 110 | 115 |
| 111 // Indicates whether or not this buffer is a random access point. | 116 // Indicates whether or not this buffer is a random access point. |
| 112 bool is_key_frame; | 117 bool is_key_frame; |
| 113 | 118 |
| 114 // Empty when |side_data| doesn't exist. | 119 // Empty when |side_data| doesn't exist. |
| 115 array<uint8> side_data; | 120 array<uint8> side_data; |
| 116 | 121 |
| 117 // DecryptConfig for a encrypted buffer. NULL if the buffer is not encrypted. | 122 // DecryptConfig for a encrypted buffer. NULL if the buffer is not encrypted. |
| 118 DecryptConfig? decrypt_config; | 123 DecryptConfig? decrypt_config; |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 187 }; | 192 }; |
| 188 | 193 |
| 189 struct PipelineStatistics { | 194 struct PipelineStatistics { |
| 190 uint64 audio_bytes_decoded; | 195 uint64 audio_bytes_decoded; |
| 191 uint64 video_bytes_decoded; | 196 uint64 video_bytes_decoded; |
| 192 uint32 video_frames_decoded; | 197 uint32 video_frames_decoded; |
| 193 uint32 video_frames_dropped; | 198 uint32 video_frames_dropped; |
| 194 int64 audio_memory_usage; | 199 int64 audio_memory_usage; |
| 195 int64 video_memory_usage; | 200 int64 video_memory_usage; |
| 196 }; | 201 }; |
| OLD | NEW |