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

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

Issue 2408063009: media: Use native DecodeStatus in media mojo interfaces (Closed)
Patch Set: comments addressed 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
« no previous file with comments | « media/mojo/common/media_type_converters.cc ('k') | media/mojo/interfaces/media_types.typemap » ('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/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.
11 [Native] 11 [Native]
12 enum BufferingState; 12 enum BufferingState;
13 13
14 // See media/base/decode_status.h for descriptions. 14 // See media/base/decode_status.h for descriptions.
15 // Kept in sync with media::DecodeStatus via static_asserts. 15 [Native]
16 enum DecodeStatus { 16 enum DecodeStatus;
17 OK,
18 ABORTED,
19 DECODE_ERROR,
20 };
21 17
22 // See media/base/audio_decoder_config.h for descriptions. 18 // See media/base/audio_decoder_config.h for descriptions.
23 // Kept in sync with media::AudioCodec via static_asserts. 19 // Kept in sync with media::AudioCodec via static_asserts.
24 enum AudioCodec { 20 enum AudioCodec {
25 UNKNOWN = 0, 21 UNKNOWN = 0,
26 AAC = 1, 22 AAC = 1,
27 MP3 = 2, 23 MP3 = 2,
28 PCM = 3, 24 PCM = 3,
29 Vorbis = 4, 25 Vorbis = 4,
30 FLAC = 5, 26 FLAC = 5,
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 }; 333 };
338 334
339 struct PipelineStatistics { 335 struct PipelineStatistics {
340 uint64 audio_bytes_decoded; 336 uint64 audio_bytes_decoded;
341 uint64 video_bytes_decoded; 337 uint64 video_bytes_decoded;
342 uint32 video_frames_decoded; 338 uint32 video_frames_decoded;
343 uint32 video_frames_dropped; 339 uint32 video_frames_dropped;
344 int64 audio_memory_usage; 340 int64 audio_memory_usage;
345 int64 video_memory_usage; 341 int64 video_memory_usage;
346 }; 342 };
OLDNEW
« no previous file with comments | « media/mojo/common/media_type_converters.cc ('k') | media/mojo/interfaces/media_types.typemap » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698