summaryrefslogtreecommitdiff
path: root/chromium/media/mojo/mojom/media_types.mojom
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/media/mojo/mojom/media_types.mojom')
-rw-r--r--chromium/media/mojo/mojom/media_types.mojom47
1 files changed, 42 insertions, 5 deletions
diff --git a/chromium/media/mojo/mojom/media_types.mojom b/chromium/media/mojo/mojom/media_types.mojom
index e54857cddec..1ae7c91c0a8 100644
--- a/chromium/media/mojo/mojom/media_types.mojom
+++ b/chromium/media/mojo/mojom/media_types.mojom
@@ -38,6 +38,10 @@ enum DecodeStatus;
[Native]
enum StatusCode;
+// See media/base/media_content_type.h for descriptions.
+[Native]
+enum MediaContentType;
+
// See media/base/media_log_record.h for description.
[Native]
struct MediaLogRecord;
@@ -66,6 +70,14 @@ enum VideoCodecProfile;
[Native]
enum VideoPixelFormat;
+// See media/base/decoder.h for descriptions.
+[Native]
+enum VideoDecoderType;
+
+// See media/base/decoder.h for descriptions.
+[Native]
+enum AudioDecoderType;
+
// See media/base/video_transformation.h for descriptions.
enum VideoRotation {
kVideoRotation0,
@@ -80,6 +92,11 @@ enum CopyMode {
kCopyMailboxesOnly,
};
+// see third_party/blink/public/platform/web_fullscreen_video_status.h for
+// descriptions.
+[Native]
+enum FullscreenVideoStatus;
+
// See media/base/video_transformation.h for descriptions.
struct VideoTransformation {
VideoRotation rotation;
@@ -280,8 +297,7 @@ struct VideoFrameMetadata {
bool read_lock_fences_enabled;
- bool has_rotation;
- VideoRotation rotation;
+ VideoTransformation? transformation;
bool texture_owner;
@@ -321,6 +337,8 @@ struct VideoFrameMetadata {
mojo_base.mojom.TimeTicks? receive_time;
mojo_base.mojom.TimeDelta? wallclock_frame_duration;
+
+ uint32 hw_protected_validation_id;
};
// This defines a mojo transport format for media::VideoFrame.
@@ -426,9 +444,16 @@ struct PredictionTargets {
uint32 frames_power_efficient = 0;
};
-// See media/base/pipeline/status.h for descriptions.
-struct PipelineDecoderInfo {
- string decoder_name;
+// See media/base/pipeline_status.h for descriptions.
+struct AudioDecoderInfo {
+ AudioDecoderType decoder_type;
+ bool is_platform_decoder = false;
+ bool has_decrypting_demuxer_stream = false;
+};
+
+// See media/base/pipeline_status.h for descriptions.
+struct VideoDecoderInfo {
+ VideoDecoderType decoder_type;
bool is_platform_decoder = false;
bool has_decrypting_demuxer_stream = false;
};
@@ -441,3 +466,15 @@ struct Status {
array<media.mojom.Status> causes;
mojo_base.mojom.Value? data;
};
+
+// Types of media stream, categorised by the media stream's source.
+// The enum values are emitted to metrics. Do not reorder.
+enum MediaStreamType {
+ kLocalElementCapture = 0, // The source is a local capture from element.
+ kLocalDeviceCapture = 1, // The source is a local device capture, e.g. webcam.
+ kLocalTabCapture = 2, // The source is a local tab capture.
+ kLocalDesktopCapture = 3, // The source is a local desktop capture.
+ kLocalDisplayCapture = 4, // The source is a local display capture.
+ kRemote = 5, // The source is a remote peer connection.
+ kNone = 6, // Not a media stream.
+};