Chromium Code Reviews| 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_ |