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

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

Issue 1899363002: Finish plumbing MojoVideoDecoder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Windows needs some more headers, apaprently. Created 4 years, 6 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/interfaces/audio_decoder.mojom ('k') | media/mojo/interfaces/service_factory.mojom » ('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 "ui/mojo/geometry/geometry.mojom"; 7 import "ui/mojo/geometry/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 static_asserts. 10 // Kept in sync with media::BufferingState via static_asserts.
11 enum BufferingState { 11 enum BufferingState {
12 HAVE_NOTHING, 12 HAVE_NOTHING,
13 HAVE_ENOUGH, 13 HAVE_ENOUGH,
14 }; 14 };
15 15
16 // See media/base/decode_status.h for descriptions.
17 // Kept in sync with media::DecodeStatus via static_asserts.
18 enum DecodeStatus {
19 OK,
20 ABORTED,
21 DECODE_ERROR,
22 };
23
16 // See media/base/audio_decoder_config.h for descriptions. 24 // See media/base/audio_decoder_config.h for descriptions.
17 // Kept in sync with media::AudioCodec via static_asserts. 25 // Kept in sync with media::AudioCodec via static_asserts.
18 enum AudioCodec { 26 enum AudioCodec {
19 UNKNOWN = 0, 27 UNKNOWN = 0,
20 AAC = 1, 28 AAC = 1,
21 MP3 = 2, 29 MP3 = 2,
22 PCM = 3, 30 PCM = 3,
23 Vorbis = 4, 31 Vorbis = 4,
24 FLAC = 5, 32 FLAC = 5,
25 AMR_NB = 6, 33 AMR_NB = 6,
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 // The number of bytes present in this buffer. The data is not serialized 257 // The number of bytes present in this buffer. The data is not serialized
250 // along with this structure and must be read from a separate DataPipe. 258 // along with this structure and must be read from a separate DataPipe.
251 uint32 data_size; 259 uint32 data_size;
252 260
253 // Indicates whether or not this buffer is a random access point. 261 // Indicates whether or not this buffer is a random access point.
254 bool is_key_frame; 262 bool is_key_frame;
255 263
256 // This is backed by an std::vector and results in a few copies. 264 // This is backed by an std::vector and results in a few copies.
257 // Into the vector, onto and off the MessagePipe, back into a vector. 265 // Into the vector, onto and off the MessagePipe, back into a vector.
258 array<uint8>? side_data; 266 array<uint8>? side_data;
259 uint32 side_data_size;
260 267
261 // DecryptConfig for a encrypted buffer. NULL if the buffer is not encrypted. 268 // DecryptConfig for a encrypted buffer. NULL if the buffer is not encrypted.
262 DecryptConfig? decrypt_config; 269 DecryptConfig? decrypt_config;
263 270
264 // These fields indicate the amount of data to discard after decoding. 271 // These fields indicate the amount of data to discard after decoding.
265 int64 front_discard_usec; 272 int64 front_discard_usec;
266 int64 back_discard_usec; 273 int64 back_discard_usec;
267 274
268 // Indicates this buffer is part of a splice around |splice_timestamp_usec|. 275 // Indicates this buffer is part of a splice around |splice_timestamp_usec|.
269 int64 splice_timestamp_usec; 276 int64 splice_timestamp_usec;
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 329
323 // Stride and offsets for each plane. Offsets are relative to the start 330 // Stride and offsets for each plane. Offsets are relative to the start
324 // of |frame_data|. 331 // of |frame_data|.
325 int32 y_stride; 332 int32 y_stride;
326 int32 u_stride; 333 int32 u_stride;
327 int32 v_stride; 334 int32 v_stride;
328 uint64 y_offset; 335 uint64 y_offset;
329 uint64 u_offset; 336 uint64 u_offset;
330 uint64 v_offset; 337 uint64 v_offset;
331 }; 338 };
OLDNEW
« no previous file with comments | « media/mojo/interfaces/audio_decoder.mojom ('k') | media/mojo/interfaces/service_factory.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698