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 "gpu/ipc/common/mailbox_holder.mojom"; | 7 import "gpu/ipc/common/mailbox_holder.mojom"; |
8 import "mojo/common/time.mojom"; | 8 import "mojo/common/time.mojom"; |
9 import "ui/gfx/geometry/mojo/geometry.mojom"; | 9 import "ui/gfx/geometry/mojo/geometry.mojom"; |
10 | 10 |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
79 | 79 |
80 [Native] | 80 [Native] |
81 enum RangeID; | 81 enum RangeID; |
82 | 82 |
83 PrimaryID primaries; | 83 PrimaryID primaries; |
84 TransferID transfer; | 84 TransferID transfer; |
85 MatrixID matrix; | 85 MatrixID matrix; |
86 RangeID range; | 86 RangeID range; |
87 }; | 87 }; |
88 | 88 |
89 // This defines a mojo transport format for media::HDRMetadata. | |
90 // See media/base/hdr_metadata.h for description. | |
91 struct MasteringMetadata { | |
92 float primary_r_chromaticity_x; | |
93 float primary_r_chromaticity_y; | |
94 float primary_g_chromaticity_x; | |
95 float primary_g_chromaticity_y; | |
96 float primary_b_chromaticity_x; | |
97 float primary_b_chromaticity_y; | |
98 float white_point_chromaticity_x; | |
99 float white_point_chromaticity_y; | |
100 float luminance_max; | |
101 float luminance_min; | |
102 }; | |
103 | |
104 struct HDRMetadata { | |
105 MasteringMetadata mastering_metadata; | |
106 uint32 max_cll; | |
xhwang
2017/04/07 16:24:47
+hubbe:
I have no idea what "cll" is and what "fa
servolk
2017/04/07 16:30:37
Yeah, sorry about that, it's HDR jargon. I've adde
hubbe
2017/04/07 17:24:22
Renaming the variables would be better.
| |
107 uint32 max_fall; | |
108 }; | |
109 | |
89 // This defines a mojo transport format for media::AudioDecoderConfig. | 110 // This defines a mojo transport format for media::AudioDecoderConfig. |
90 // See media/base/audio_decoder_config.h for descriptions. | 111 // See media/base/audio_decoder_config.h for descriptions. |
91 struct AudioDecoderConfig { | 112 struct AudioDecoderConfig { |
92 AudioCodec codec; | 113 AudioCodec codec; |
93 SampleFormat sample_format; | 114 SampleFormat sample_format; |
94 ChannelLayout channel_layout; | 115 ChannelLayout channel_layout; |
95 int32 samples_per_second; | 116 int32 samples_per_second; |
96 array<uint8> extra_data; | 117 array<uint8> extra_data; |
97 mojo.common.mojom.TimeDelta seek_preroll; | 118 mojo.common.mojom.TimeDelta seek_preroll; |
98 int32 codec_delay; | 119 int32 codec_delay; |
99 EncryptionScheme encryption_scheme; | 120 EncryptionScheme encryption_scheme; |
100 }; | 121 }; |
101 | 122 |
102 // This defines a mojo transport format for media::VideoDecoderConfig. | 123 // This defines a mojo transport format for media::VideoDecoderConfig. |
103 // See media/base/video_decoder_config.h for descriptions. | 124 // See media/base/video_decoder_config.h for descriptions. |
104 struct VideoDecoderConfig { | 125 struct VideoDecoderConfig { |
105 VideoCodec codec; | 126 VideoCodec codec; |
106 VideoCodecProfile profile; | 127 VideoCodecProfile profile; |
107 VideoPixelFormat format; | 128 VideoPixelFormat format; |
108 ColorSpace color_space; | 129 ColorSpace color_space; |
109 gfx.mojom.Size coded_size; | 130 gfx.mojom.Size coded_size; |
110 gfx.mojom.Rect visible_rect; | 131 gfx.mojom.Rect visible_rect; |
111 gfx.mojom.Size natural_size; | 132 gfx.mojom.Size natural_size; |
112 array<uint8> extra_data; | 133 array<uint8> extra_data; |
113 EncryptionScheme encryption_scheme; | 134 EncryptionScheme encryption_scheme; |
114 VideoColorSpace color_space_info; | 135 VideoColorSpace color_space_info; |
136 HDRMetadata? hdr_metadata; | |
115 }; | 137 }; |
116 | 138 |
117 // Native struct media::SubsampleEntry; | 139 // Native struct media::SubsampleEntry; |
118 [Native] | 140 [Native] |
119 struct SubsampleEntry; | 141 struct SubsampleEntry; |
120 | 142 |
121 // This defines a mojo transport format for media::DecryptConfig. | 143 // This defines a mojo transport format for media::DecryptConfig. |
122 // See media/base/decrypt_config.h for descriptions. | 144 // See media/base/decrypt_config.h for descriptions. |
123 struct DecryptConfig { | 145 struct DecryptConfig { |
124 string key_id; | 146 string key_id; |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
233 }; | 255 }; |
234 | 256 |
235 struct PipelineStatistics { | 257 struct PipelineStatistics { |
236 uint64 audio_bytes_decoded; | 258 uint64 audio_bytes_decoded; |
237 uint64 video_bytes_decoded; | 259 uint64 video_bytes_decoded; |
238 uint32 video_frames_decoded; | 260 uint32 video_frames_decoded; |
239 uint32 video_frames_dropped; | 261 uint32 video_frames_dropped; |
240 int64 audio_memory_usage; | 262 int64 audio_memory_usage; |
241 int64 video_memory_usage; | 263 int64 video_memory_usage; |
242 }; | 264 }; |
OLD | NEW |