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

Unified Diff: media/mojo/interfaces/media_types.mojom

Issue 2405423002: [Video Capture Service] Move Mojo structs and enums to media/capture/mojo (Closed)
Patch Set: Rebase 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 side-by-side diff with in-line comments
Download patch
Index: media/mojo/interfaces/media_types.mojom
diff --git a/media/mojo/interfaces/media_types.mojom b/media/mojo/interfaces/media_types.mojom
index 88feb20527d3c2ddcc89ba6c6666ea30236b4778..7261b63e4c9c516912a7b259888f295b19046a3e 100644
--- a/media/mojo/interfaces/media_types.mojom
+++ b/media/mojo/interfaces/media_types.mojom
@@ -131,6 +131,42 @@ enum VideoFormat {
FORMAT_MAX = Y16,
};
+enum ResolutionChangePolicy {
+ FIXED_RESOLUTION,
+ FIXED_ASPECT_RATIO,
+ ANY_WITHIN_LIMIT,
+};
+
+enum PowerLineFrequency {
+ DEFAULT,
+ HZ_50,
+ HZ_60
+};
+
+enum VideoPixelStorage {
+ CPU,
+ GPUMEMORYBUFFER
+};
+
+enum VideoCaptureApi {
+ LINUX_V4L2_SINGLE_PLANE,
+ WIN_MEDIA_FOUNDATION,
+ WIN_DIRECT_SHOW,
+ MACOSX_AVFOUNDATION,
+ MACOSX_DECKLINK,
+ ANDROID_API1,
+ ANDROID_API2_LEGACY,
+ ANDROID_API2_FULL,
+ ANDROID_API2_LIMITED,
+ ANDROID_TANGO,
+ UNKNOWN
+};
+
+enum VideoCaptureTransportType {
+ // For MACOSX_AVFOUNDATION Api, identifies devices that are built-in or USB.
+ MACOSX_USB_OR_BUILT_IN,
+ OTHER_TRANSPORT
+};
// Kept in sync with media::ColorSpace via static_asserts.
enum ColorSpace {
UNSPECIFIED = 0,
@@ -348,3 +384,16 @@ struct PipelineStatistics {
int64 audio_memory_usage;
int64 video_memory_usage;
};
+
+struct VideoCaptureFormat {
+ gfx.mojom.Size frame_size;
+ float frame_rate;
+ VideoFormat pixel_format;
+ VideoPixelStorage pixel_storage;
+};
+
+struct VideoCaptureParams {
+ VideoCaptureFormat requested_format;
+ ResolutionChangePolicy resolution_change_policy;
+ PowerLineFrequency power_line_frequency;
+};

Powered by Google App Engine
This is Rietveld 408576698