summaryrefslogtreecommitdiffstats
path: root/media/base/yuv_convert.cc
diff options
context:
space:
mode:
authorscherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-26 23:30:51 +0000
committerscherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-26 23:30:51 +0000
commit88fa6bf2a6300335381178004eb434df99595f04 (patch)
treedcfc9976760f0f0132081f01df2179b224ee8617 /media/base/yuv_convert.cc
parent769c0eabac88d21875c5c1812687889d79e6dbef (diff)
downloadchromium_src-88fa6bf2a6300335381178004eb434df99595f04.zip
chromium_src-88fa6bf2a6300335381178004eb434df99595f04.tar.gz
chromium_src-88fa6bf2a6300335381178004eb434df99595f04.tar.bz2
VideoCaptureHost
This is the patch containing code necessary for communicating with the VideoCaptureMessageFilter from the browser process and transferring Transport Dibs filled with video frames in I420 color format. It also contain code for color converting video frames to I420. Color conversion has been tested on Linux and Windows by using video_capture_host_unittest and dumping I420 frames to file. See #define DUMP_VIDEO #define TEST_REAL_CAPTURE_DEVICE. Patch by perk@google.com: http://codereview.chromium.org/7002027/ BUG=none TEST=try bots git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86927 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/base/yuv_convert.cc')
-rw-r--r--media/base/yuv_convert.cc21
1 files changed, 21 insertions, 0 deletions
diff --git a/media/base/yuv_convert.cc b/media/base/yuv_convert.cc
index 2e4af1d..b4972083 100644
--- a/media/base/yuv_convert.cc
+++ b/media/base/yuv_convert.cc
@@ -374,4 +374,25 @@ void ConvertRGB32ToYUV(const uint8* rgbframe,
rgbstride, ystride, uvstride);
}
+void ConvertRGB24ToYUV(const uint8* rgbframe,
+ uint8* yplane,
+ uint8* uplane,
+ uint8* vplane,
+ int width,
+ int height,
+ int rgbstride,
+ int ystride,
+ int uvstride) {
+ ConvertRGB24ToYUV_C(rgbframe, yplane, uplane, vplane, width, height,
+ rgbstride, ystride, uvstride);
+}
+
+void ConvertYUY2ToYUV(const uint8* src,
+ uint8* yplane,
+ uint8* uplane,
+ uint8* vplane,
+ int width,
+ int height) {
+ ConvertYUY2ToYUV_C(src, yplane, uplane, vplane, width, height);
+}
} // namespace media