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

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

Issue 2640003002: Implement MojoAudioRendererSink and use it in UtilityMojoMediaClient (Closed)
Patch Set: Rebase Created 3 years, 10 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/time.mojom"; 8 import "mojo/common/time.mojom";
9 9
10 // See media/base/buffering_state.h for descriptions. 10 // See media/base/buffering_state.h for descriptions.
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 // True if end of stream. 150 // True if end of stream.
151 bool end_of_stream; 151 bool end_of_stream;
152 152
153 // Timestamp in microseconds of the first frame. 153 // Timestamp in microseconds of the first frame.
154 mojo.common.mojom.TimeDelta timestamp; 154 mojo.common.mojom.TimeDelta timestamp;
155 155
156 // Channel data. Will be empty for EOS buffers. 156 // Channel data. Will be empty for EOS buffers.
157 array<uint8> data; 157 array<uint8> data;
158 }; 158 };
159 159
160 // This defines a mojo transport format for media::AudioBus.
161 struct AudioBus {
162 // Number of channels.
163 int32 nb_channels;
164
165 // Number of frames.
166 int32 nb_frames;
167
168 array<float> data;
169 };
170
160 // This defines a mojo transport format for media::VideoFrame. 171 // This defines a mojo transport format for media::VideoFrame.
161 struct VideoFrame { 172 struct VideoFrame {
162 // Format of the frame. 173 // Format of the frame.
163 VideoPixelFormat format; 174 VideoPixelFormat format;
164 175
165 // Width and height of the video frame, in pixels. 176 // Width and height of the video frame, in pixels.
166 gfx.mojom.Size coded_size; 177 gfx.mojom.Size coded_size;
167 178
168 // Visible size of the frame. 179 // Visible size of the frame.
169 gfx.mojom.Rect visible_rect; 180 gfx.mojom.Rect visible_rect;
(...skipping 22 matching lines...) Expand all
192 }; 203 };
193 204
194 struct PipelineStatistics { 205 struct PipelineStatistics {
195 uint64 audio_bytes_decoded; 206 uint64 audio_bytes_decoded;
196 uint64 video_bytes_decoded; 207 uint64 video_bytes_decoded;
197 uint32 video_frames_decoded; 208 uint32 video_frames_decoded;
198 uint32 video_frames_dropped; 209 uint32 video_frames_dropped;
199 int64 audio_memory_usage; 210 int64 audio_memory_usage;
200 int64 video_memory_usage; 211 int64 video_memory_usage;
201 }; 212 };
OLDNEW
« no previous file with comments | « media/mojo/interfaces/audio_renderer_sink.mojom ('k') | media/mojo/interfaces/output_device_info.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698