aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/effects/GrYUVtoRGBEffect.h
diff options
context:
space:
mode:
authorGravatar sugoi <sugoi@chromium.org>2014-07-07 15:09:48 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-07-07 15:09:49 -0700
commit24dcac2140a7cca111c7f1bd44b44541644887a3 (patch)
tree2b7c88691e02289791cf242c9195cdf6c6d25796 /src/gpu/effects/GrYUVtoRGBEffect.h
parent3230517a77431b3680f4b44a0cc891786dd80998 (diff)
YUV to RGB converter
This is a first piece of the GPU YUV decoder, which is the actual effect that performs the conversion. For now, it simply applies the conversion matrix, since it is all I need. I may add modes if different matrices need to be applied or if I add color profile support here. I'll try to keep these cls short and easy to review, but there should be a few of them coming once this one is in. BUG=skia: R=senorblanco@chromium.org, senorblanco@google.com, reed@google.com, bsalomon@google.com Author: sugoi@chromium.org Review URL: https://codereview.chromium.org/378503006
Diffstat (limited to 'src/gpu/effects/GrYUVtoRGBEffect.h')
-rw-r--r--src/gpu/effects/GrYUVtoRGBEffect.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/gpu/effects/GrYUVtoRGBEffect.h b/src/gpu/effects/GrYUVtoRGBEffect.h
new file mode 100644
index 0000000000..cc86af7662
--- /dev/null
+++ b/src/gpu/effects/GrYUVtoRGBEffect.h
@@ -0,0 +1,21 @@
+/*
+ * Copyright 2014 Google Inc.
+ *
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#ifndef GrYUVtoRGBEffect_DEFINED
+#define GrYUVtoRGBEffect_DEFINED
+
+class GrEffectRef;
+class GrTexture;
+
+namespace GrYUVtoRGBEffect {
+ /**
+ * Creates an effect that performs color conversion from YUV to RGB
+ */
+ GrEffectRef* Create(GrTexture* yTexture, GrTexture* uTexture, GrTexture* vTexture);
+};
+
+#endif