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

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

Issue 2423703002: media: Use native CipherMode enum type in media mojo interfaces (Closed)
Patch Set: remove hash function definition Created 4 years, 2 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
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 "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 25 matching lines...) Expand all
36 enum ColorSpace; 36 enum ColorSpace;
37 37
38 // See media/base/video_codecs.h for descriptions. 38 // See media/base/video_codecs.h for descriptions.
39 [Native] 39 [Native]
40 enum VideoCodec; 40 enum VideoCodec;
41 41
42 // See media/base/video_codecs.h for descriptions. 42 // See media/base/video_codecs.h for descriptions.
43 [Native] 43 [Native]
44 enum VideoCodecProfile; 44 enum VideoCodecProfile;
45 45
46 // See media/base/encryption_scheme.h.
47 // Kept in sync with media::CipherMode via static_asserts.
48 enum CipherMode {
49 UNENCRYPTED = 0,
50 AES_CTR,
51 AES_CBC,
52 MAX = AES_CBC
53 };
54
55 // This defines a mojo transport format for media::EncryptionScheme::Pattern 46 // This defines a mojo transport format for media::EncryptionScheme::Pattern
56 // See media/base/encryption_scheme.h for description. 47 // See media/base/encryption_scheme.h for description.
57 struct Pattern { 48 struct Pattern {
58 uint32 encrypt_blocks; 49 uint32 encrypt_blocks;
59 uint32 skip_blocks; 50 uint32 skip_blocks;
60 }; 51 };
61 52
62 // This defines a mojo transport format for media::EncryptionScheme. 53 // This defines a mojo transport format for media::EncryptionScheme.
63 // See media/base/encryption_scheme.h for description. 54 // See media/base/encryption_scheme.h for description.
64 struct EncryptionScheme { 55 struct EncryptionScheme {
56 [Native]
57 enum CipherMode;
58
65 CipherMode mode; 59 CipherMode mode;
66 Pattern pattern; 60 Pattern pattern;
67 }; 61 };
68 62
69 // This defines a mojo transport format for media::AudioDecoderConfig. 63 // This defines a mojo transport format for media::AudioDecoderConfig.
70 // See media/base/audio_decoder_config.h for descriptions. 64 // See media/base/audio_decoder_config.h for descriptions.
71 struct AudioDecoderConfig { 65 struct AudioDecoderConfig {
72 AudioCodec codec; 66 AudioCodec codec;
73 SampleFormat sample_format; 67 SampleFormat sample_format;
74 ChannelLayout channel_layout; 68 ChannelLayout channel_layout;
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 }; 187 };
194 188
195 struct PipelineStatistics { 189 struct PipelineStatistics {
196 uint64 audio_bytes_decoded; 190 uint64 audio_bytes_decoded;
197 uint64 video_bytes_decoded; 191 uint64 video_bytes_decoded;
198 uint32 video_frames_decoded; 192 uint32 video_frames_decoded;
199 uint32 video_frames_dropped; 193 uint32 video_frames_dropped;
200 int64 audio_memory_usage; 194 int64 audio_memory_usage;
201 int64 video_memory_usage; 195 int64 video_memory_usage;
202 }; 196 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698