| OLD | NEW |
| 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 | 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. |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 EncryptionScheme encryption_scheme; | 220 EncryptionScheme encryption_scheme; |
| 221 }; | 221 }; |
| 222 | 222 |
| 223 // This defines a mojo transport format for media::VideoDecoderConfig. | 223 // This defines a mojo transport format for media::VideoDecoderConfig. |
| 224 // See media/base/video_decoder_config.h for descriptions. | 224 // See media/base/video_decoder_config.h for descriptions. |
| 225 struct VideoDecoderConfig { | 225 struct VideoDecoderConfig { |
| 226 VideoCodec codec; | 226 VideoCodec codec; |
| 227 VideoCodecProfile profile; | 227 VideoCodecProfile profile; |
| 228 VideoFormat format; | 228 VideoFormat format; |
| 229 ColorSpace color_space; | 229 ColorSpace color_space; |
| 230 mojo.Size coded_size; | 230 gfx.mojom.Size coded_size; |
| 231 mojo.Rect visible_rect; | 231 gfx.mojom.Rect visible_rect; |
| 232 mojo.Size natural_size; | 232 gfx.mojom.Size natural_size; |
| 233 array<uint8>? extra_data; | 233 array<uint8>? extra_data; |
| 234 EncryptionScheme encryption_scheme; | 234 EncryptionScheme encryption_scheme; |
| 235 }; | 235 }; |
| 236 | 236 |
| 237 // This defines a mojo transport format for media::SubsampleEntry. | 237 // This defines a mojo transport format for media::SubsampleEntry. |
| 238 // See media/base/decrypt_config.h for descriptions. | 238 // See media/base/decrypt_config.h for descriptions. |
| 239 struct SubsampleEntry { | 239 struct SubsampleEntry { |
| 240 uint32 clear_bytes; | 240 uint32 clear_bytes; |
| 241 uint32 cypher_bytes; | 241 uint32 cypher_bytes; |
| 242 }; | 242 }; |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 // Channel data. Will be null for EOS buffers. | 302 // Channel data. Will be null for EOS buffers. |
| 303 array<uint8>? data; | 303 array<uint8>? data; |
| 304 }; | 304 }; |
| 305 | 305 |
| 306 // This defines a mojo transport format for media::VideoFrame. | 306 // This defines a mojo transport format for media::VideoFrame. |
| 307 struct VideoFrame { | 307 struct VideoFrame { |
| 308 // Format of the frame. | 308 // Format of the frame. |
| 309 VideoFormat format; | 309 VideoFormat format; |
| 310 | 310 |
| 311 // Width and height of the video frame, in pixels. | 311 // Width and height of the video frame, in pixels. |
| 312 mojo.Size coded_size; | 312 gfx.mojom.Size coded_size; |
| 313 | 313 |
| 314 // Visible size of the frame. | 314 // Visible size of the frame. |
| 315 mojo.Rect visible_rect; | 315 gfx.mojom.Rect visible_rect; |
| 316 | 316 |
| 317 // Natural size of the frame. | 317 // Natural size of the frame. |
| 318 mojo.Size natural_size; | 318 gfx.mojom.Size natural_size; |
| 319 | 319 |
| 320 // True if end of stream. | 320 // True if end of stream. |
| 321 bool end_of_stream; | 321 bool end_of_stream; |
| 322 | 322 |
| 323 // Timestamp in microseconds of the associated frame. | 323 // Timestamp in microseconds of the associated frame. |
| 324 int64 timestamp_usec; | 324 int64 timestamp_usec; |
| 325 | 325 |
| 326 // Reference to the shared memory containing the frame's data. | 326 // Reference to the shared memory containing the frame's data. |
| 327 handle<shared_buffer> frame_data; | 327 handle<shared_buffer> frame_data; |
| 328 uint64 frame_data_size; | 328 uint64 frame_data_size; |
| 329 | 329 |
| 330 // 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 |
| 331 // of |frame_data|. | 331 // of |frame_data|. |
| 332 int32 y_stride; | 332 int32 y_stride; |
| 333 int32 u_stride; | 333 int32 u_stride; |
| 334 int32 v_stride; | 334 int32 v_stride; |
| 335 uint64 y_offset; | 335 uint64 y_offset; |
| 336 uint64 u_offset; | 336 uint64 u_offset; |
| 337 uint64 v_offset; | 337 uint64 v_offset; |
| 338 }; | 338 }; |
| OLD | NEW |