| 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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. | 89 // This defines a mojo transport format for media::HDRMetadata. |
| 90 // See media/base/hdr_metadata.h for description. | 90 // See media/base/hdr_metadata.h for description. |
| 91 struct MasteringMetadata { | 91 struct MasteringMetadata { |
| 92 float primary_r_chromaticity_x; | 92 gfx.mojom.PointF primary_r_chromaticity; |
| 93 float primary_r_chromaticity_y; | 93 gfx.mojom.PointF primary_g_chromaticity; |
| 94 float primary_g_chromaticity_x; | 94 gfx.mojom.PointF primary_b_chromaticity; |
| 95 float primary_g_chromaticity_y; | 95 gfx.mojom.PointF white_point_chromaticity; |
| 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; | 96 float luminance_max; |
| 101 float luminance_min; | 97 float luminance_min; |
| 102 }; | 98 }; |
| 103 | 99 |
| 104 struct HDRMetadata { | 100 struct HDRMetadata { |
| 105 MasteringMetadata mastering_metadata; | 101 MasteringMetadata mastering_metadata; |
| 106 uint32 max_cll; | 102 uint32 max_content_light_level; |
| 107 uint32 max_fall; | 103 uint32 max_frame_average_light_level; |
| 108 }; | 104 }; |
| 109 | 105 |
| 110 // This defines a mojo transport format for media::AudioDecoderConfig. | 106 // This defines a mojo transport format for media::AudioDecoderConfig. |
| 111 // See media/base/audio_decoder_config.h for descriptions. | 107 // See media/base/audio_decoder_config.h for descriptions. |
| 112 struct AudioDecoderConfig { | 108 struct AudioDecoderConfig { |
| 113 AudioCodec codec; | 109 AudioCodec codec; |
| 114 SampleFormat sample_format; | 110 SampleFormat sample_format; |
| 115 ChannelLayout channel_layout; | 111 ChannelLayout channel_layout; |
| 116 int32 samples_per_second; | 112 int32 samples_per_second; |
| 117 array<uint8> extra_data; | 113 array<uint8> extra_data; |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 }; | 251 }; |
| 256 | 252 |
| 257 struct PipelineStatistics { | 253 struct PipelineStatistics { |
| 258 uint64 audio_bytes_decoded; | 254 uint64 audio_bytes_decoded; |
| 259 uint64 video_bytes_decoded; | 255 uint64 video_bytes_decoded; |
| 260 uint32 video_frames_decoded; | 256 uint32 video_frames_decoded; |
| 261 uint32 video_frames_dropped; | 257 uint32 video_frames_dropped; |
| 262 int64 audio_memory_usage; | 258 int64 audio_memory_usage; |
| 263 int64 video_memory_usage; | 259 int64 video_memory_usage; |
| 264 }; | 260 }; |
| OLD | NEW |