Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1897)

Side by Side Diff: media/mojo/interfaces/media_types.mojom

Issue 2799843002: Implement Mojo IPC for media::VideoColorSpace (Closed)
Patch Set: Fixed the year in comment Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « media/mojo/common/media_type_converters_unittest.cc ('k') | media/mojo/interfaces/typemaps.gni » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 // This defines a mojo transport format for media::EncryptionScheme. 58 // This defines a mojo transport format for media::EncryptionScheme.
59 // See media/base/encryption_scheme.h for description. 59 // See media/base/encryption_scheme.h for description.
60 struct EncryptionScheme { 60 struct EncryptionScheme {
61 [Native] 61 [Native]
62 enum CipherMode; 62 enum CipherMode;
63 63
64 CipherMode mode; 64 CipherMode mode;
65 Pattern pattern; 65 Pattern pattern;
66 }; 66 };
67 67
68 // This defines a mojo transport format for media::VideoColorSpace.
69 // See media/base/video_color_space.h for description.
70 struct VideoColorSpace {
71 [Native]
72 enum PrimaryID;
73
74 [Native]
75 enum TransferID;
76
77 [Native]
78 enum MatrixID;
79
80 [Native]
81 enum RangeID;
82
83 PrimaryID primaries;
84 TransferID transfer;
85 MatrixID matrix;
86 RangeID range;
87 };
88
68 // This defines a mojo transport format for media::AudioDecoderConfig. 89 // This defines a mojo transport format for media::AudioDecoderConfig.
69 // See media/base/audio_decoder_config.h for descriptions. 90 // See media/base/audio_decoder_config.h for descriptions.
70 struct AudioDecoderConfig { 91 struct AudioDecoderConfig {
71 AudioCodec codec; 92 AudioCodec codec;
72 SampleFormat sample_format; 93 SampleFormat sample_format;
73 ChannelLayout channel_layout; 94 ChannelLayout channel_layout;
74 int32 samples_per_second; 95 int32 samples_per_second;
75 array<uint8> extra_data; 96 array<uint8> extra_data;
76 mojo.common.mojom.TimeDelta seek_preroll; 97 mojo.common.mojom.TimeDelta seek_preroll;
77 int32 codec_delay; 98 int32 codec_delay;
78 EncryptionScheme encryption_scheme; 99 EncryptionScheme encryption_scheme;
79 }; 100 };
80 101
81 // This defines a mojo transport format for media::VideoDecoderConfig. 102 // This defines a mojo transport format for media::VideoDecoderConfig.
82 // See media/base/video_decoder_config.h for descriptions. 103 // See media/base/video_decoder_config.h for descriptions.
83 struct VideoDecoderConfig { 104 struct VideoDecoderConfig {
84 VideoCodec codec; 105 VideoCodec codec;
85 VideoCodecProfile profile; 106 VideoCodecProfile profile;
86 VideoPixelFormat format; 107 VideoPixelFormat format;
87 ColorSpace color_space; 108 ColorSpace color_space;
88 gfx.mojom.Size coded_size; 109 gfx.mojom.Size coded_size;
89 gfx.mojom.Rect visible_rect; 110 gfx.mojom.Rect visible_rect;
90 gfx.mojom.Size natural_size; 111 gfx.mojom.Size natural_size;
91 array<uint8> extra_data; 112 array<uint8> extra_data;
92 EncryptionScheme encryption_scheme; 113 EncryptionScheme encryption_scheme;
114 VideoColorSpace color_space_info;
93 }; 115 };
94 116
95 // Native struct media::SubsampleEntry; 117 // Native struct media::SubsampleEntry;
96 [Native] 118 [Native]
97 struct SubsampleEntry; 119 struct SubsampleEntry;
98 120
99 // This defines a mojo transport format for media::DecryptConfig. 121 // This defines a mojo transport format for media::DecryptConfig.
100 // See media/base/decrypt_config.h for descriptions. 122 // See media/base/decrypt_config.h for descriptions.
101 struct DecryptConfig { 123 struct DecryptConfig {
102 string key_id; 124 string key_id;
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 }; 233 };
212 234
213 struct PipelineStatistics { 235 struct PipelineStatistics {
214 uint64 audio_bytes_decoded; 236 uint64 audio_bytes_decoded;
215 uint64 video_bytes_decoded; 237 uint64 video_bytes_decoded;
216 uint32 video_frames_decoded; 238 uint32 video_frames_decoded;
217 uint32 video_frames_dropped; 239 uint32 video_frames_dropped;
218 int64 audio_memory_usage; 240 int64 audio_memory_usage;
219 int64 video_memory_usage; 241 int64 video_memory_usage;
220 }; 242 };
OLDNEW
« no previous file with comments | « media/mojo/common/media_type_converters_unittest.cc ('k') | media/mojo/interfaces/typemaps.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698