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

Unified Diff: media/base/ipc/media_param_traits_macros.h

Issue 2606983002: Media Capture Depth Stream Extensions API: focal length and depth range. (Closed)
Patch Set: Added to MediaTrackSupportedConstraints and MediaTrackConstraintSet. Thanks mcasas@. Created 3 years, 11 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/base/ipc/media_param_traits_macros.h
diff --git a/media/base/ipc/media_param_traits_macros.h b/media/base/ipc/media_param_traits_macros.h
index fff70465757d50906f51d6f211c393203306b657..41fa9a3f28868032c83b1380145d51a5318dc08a 100644
--- a/media/base/ipc/media_param_traits_macros.h
+++ b/media/base/ipc/media_param_traits_macros.h
@@ -22,6 +22,7 @@
#include "media/base/subsample_entry.h"
#include "media/base/video_codecs.h"
#include "media/base/video_types.h"
+#include "media/capture/video/video_capture_device_descriptor.h"
// Enum traits.
@@ -95,4 +96,11 @@ IPC_STRUCT_TRAITS_BEGIN(media::SubsampleEntry)
IPC_STRUCT_TRAITS_MEMBER(cypher_bytes)
IPC_STRUCT_TRAITS_END()
+IPC_STRUCT_TRAITS_BEGIN(media::VideoCaptureDeviceDescriptor::CameraCalibration)
+ IPC_STRUCT_TRAITS_MEMBER(focal_length_x)
+ IPC_STRUCT_TRAITS_MEMBER(focal_length_y)
+ IPC_STRUCT_TRAITS_MEMBER(depth_near)
+ IPC_STRUCT_TRAITS_MEMBER(depth_far)
+IPC_STRUCT_TRAITS_END()
+
#endif // MEDIA_BASE_IPC_MEDIA_PARAM_TRAITS_MACROS_H_

Powered by Google App Engine
This is Rietveld 408576698