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

Unified Diff: media/capture/video/chromeos/pixel_format_utils.h

Issue 2837273004: media: add video capture device for ARC++ camera HAL v3 (Closed)
Patch Set: RELAND: media: add video capture device for ARC++ camera HAL v3 Created 3 years, 6 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/capture/video/chromeos/pixel_format_utils.h
diff --git a/media/capture/video/chromeos/pixel_format_utils.h b/media/capture/video/chromeos/pixel_format_utils.h
new file mode 100644
index 0000000000000000000000000000000000000000..221257792ae86421e10761676657bf9674328aeb
--- /dev/null
+++ b/media/capture/video/chromeos/pixel_format_utils.h
@@ -0,0 +1,23 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef MEDIA_CAPTURE_VIDEO_CHROMEOS_PIXEL_FORMAT_UTILS_H_
+#define MEDIA_CAPTURE_VIDEO_CHROMEOS_PIXEL_FORMAT_UTILS_H_
+
+#include "media/capture/video/chromeos/mojo/arc_camera3.mojom.h"
+#include "media/capture/video_capture_types.h"
+
+namespace media {
+
+// Converts the HAL pixel format |from| to Chromium pixel format. Returns
+// PIXEL_FORMAT_UNKNOWN if |from| is not supported.
+VideoPixelFormat PixFormatHalToChromium(arc::mojom::HalPixelFormat from);
+
+// Converts the Chromium pixel format |from| to DRM pixel format. Returns 0
+// if |from| is not supported.
+uint32_t PixFormatChromiumToDrm(VideoPixelFormat from);
+
+} // namespace media
+
+#endif // MEDIA_CAPTURE_VIDEO_CHROMEOS_PIXEL_FORMAT_UTILS_H_
« no previous file with comments | « media/capture/video/chromeos/mojo/camera_metadata_tags.mojom ('k') | media/capture/video/chromeos/pixel_format_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698