summaryrefslogtreecommitdiffstats
path: root/media/base/yuv_convert.h
diff options
context:
space:
mode:
authorsergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-09 20:23:05 +0000
committersergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-09 20:23:05 +0000
commit980abb1a0ee220077635a9eb47c370b2b41f4fb1 (patch)
tree142171b517745b7aaeb77313d7cfa439133171fc /media/base/yuv_convert.h
parent74188f235dd5b4f8e80ca30d6e3a4d4c3061d84d (diff)
downloadchromium_src-980abb1a0ee220077635a9eb47c370b2b41f4fb1.zip
chromium_src-980abb1a0ee220077635a9eb47c370b2b41f4fb1.tar.gz
chromium_src-980abb1a0ee220077635a9eb47c370b2b41f4fb1.tar.bz2
Optimized version of bilinear video scaler. It is about 2 times faster than Skia that is currently used for video scaling.
BUG=19113 TEST=none Review URL: http://codereview.chromium.org/1556021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44119 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/base/yuv_convert.h')
-rw-r--r--media/base/yuv_convert.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/media/base/yuv_convert.h b/media/base/yuv_convert.h
index a757070..cca7d49 100644
--- a/media/base/yuv_convert.h
+++ b/media/base/yuv_convert.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2010 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.
@@ -29,6 +29,12 @@ enum Rotate {
MIRROR_ROTATE_270, // Transpose.
};
+// Filter affects how scaling looks.
+enum ScaleFilter {
+ FILTER_NONE, // No filter (point sampled).
+ FILTER_BILINEAR, // Bilinear filter.
+};
+
// Convert a frame of YUV to 32 bit ARGB.
// Pass in YV16/YV12 depending on source format
void ConvertYUVToRGB32(const uint8* yplane,
@@ -56,7 +62,8 @@ void ScaleYUVToRGB32(const uint8* yplane,
int uvstride,
int rgbstride,
YUVType yuv_type,
- Rotate view_rotate);
+ Rotate view_rotate,
+ ScaleFilter filter);
} // namespace media