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

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

Issue 820103002: Add |is_encrypted| in mojo AudioDecoderConfig. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 12 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 | « no previous file | media/mojo/services/media_type_converters.cc » ('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 mojo; 5 module mojo;
6 6
7 import "mojo/services/geometry/public/interfaces/geometry.mojom"; 7 import "mojo/services/geometry/public/interfaces/geometry.mojom";
8 8
9 // See media/base/buffering_state.h for descriptions. 9 // See media/base/buffering_state.h for descriptions.
10 // Kept in sync with media::BufferingState via COMPILE_ASSERTs. 10 // Kept in sync with media::BufferingState via COMPILE_ASSERTs.
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 // This defines a mojo transport format for media::AudioDecoderConfig. 147 // This defines a mojo transport format for media::AudioDecoderConfig.
148 // See media/base/audio_decoder_config.h for descriptions. 148 // See media/base/audio_decoder_config.h for descriptions.
149 struct AudioDecoderConfig { 149 struct AudioDecoderConfig {
150 AudioCodec codec; 150 AudioCodec codec;
151 SampleFormat sample_format; 151 SampleFormat sample_format;
152 ChannelLayout channel_layout; 152 ChannelLayout channel_layout;
153 int32 samples_per_second; 153 int32 samples_per_second;
154 array<uint8>? extra_data; 154 array<uint8>? extra_data;
155 int64 seek_preroll_usec; 155 int64 seek_preroll_usec;
156 int32 codec_delay; 156 int32 codec_delay;
157 bool is_encrypted;
157 }; 158 };
158 159
159 // This defines a mojo transport format for media::VideoDecoderConfig. 160 // This defines a mojo transport format for media::VideoDecoderConfig.
160 // See media/base/video_decoder_config.h for descriptions. 161 // See media/base/video_decoder_config.h for descriptions.
161 struct VideoDecoderConfig { 162 struct VideoDecoderConfig {
162 VideoCodec codec; 163 VideoCodec codec;
163 VideoCodecProfile profile; 164 VideoCodecProfile profile;
164 VideoFormat format; 165 VideoFormat format;
165 Size coded_size; 166 Size coded_size;
166 Rect visible_rect; 167 Rect visible_rect;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 // DecryptConfig for a encrypted buffer. NULL if the buffer is not encrypted. 206 // DecryptConfig for a encrypted buffer. NULL if the buffer is not encrypted.
206 DecryptConfig? decrypt_config; 207 DecryptConfig? decrypt_config;
207 208
208 // These fields indicate the amount of data to discard after decoding. 209 // These fields indicate the amount of data to discard after decoding.
209 int64 front_discard_usec; 210 int64 front_discard_usec;
210 int64 back_discard_usec; 211 int64 back_discard_usec;
211 212
212 // Indicates this buffer is part of a splice around |splice_timestamp_usec|. 213 // Indicates this buffer is part of a splice around |splice_timestamp_usec|.
213 int64 splice_timestamp_usec; 214 int64 splice_timestamp_usec;
214 }; 215 };
OLDNEW
« no previous file with comments | « no previous file | media/mojo/services/media_type_converters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698