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

Unified Diff: media/video/capture/video_capture_color_conversion.h

Issue 7002027: VideoCaptureHost (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 9 years, 7 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/video/capture/video_capture_color_conversion.h
===================================================================
--- media/video/capture/video_capture_color_conversion.h (revision 0)
+++ media/video/capture/video_capture_color_conversion.h (revision 0)
@@ -0,0 +1,39 @@
+// Copyright (c) 2011 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.
+
+// VideoCaptureColorConversion contains functions for converting color formats
+// defined in VideoCaptureDevice to I420.
+
+#ifndef MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_COLOR_CONVERSION_H_
+#define MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_COLOR_CONVERSION_H_
+
+#include "media/video/capture/video_capture_device.h"
+
+namespace media {
+class VideoCaptureColorConversion {
wjia(left Chromium) 2011/05/11 23:23:31 is this color conversion only for video capture, o
Per K 2011/05/16 11:49:39 It has been made private to VideoCapture by purpos
+ public:
+ static void ConvertToI420(VideoCaptureDevice::Format src_format,
+ const uint8* src,
+ int width,
+ int height,
+ uint8* dst);
+
+ private:
+ static void ConvertYUY2ToI420(const uint8* src,
+ int width,
+ int height,
+ uint8* dst);
+ static void ConvertRGB24ToI420(const uint8* src,
+ int width,
+ int height,
+ uint8* dst);
+ static void ConvertARGBToI420(const uint8* src,
+ int width,
+ int height,
+ uint8* dst);
+};
+
+} // namespace media
+
+#endif // MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_COLOR_CONVERSION_H_

Powered by Google App Engine
This is Rietveld 408576698