From 24dcac2140a7cca111c7f1bd44b44541644887a3 Mon Sep 17 00:00:00 2001 From: sugoi Date: Mon, 7 Jul 2014 15:09:48 -0700 Subject: 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 --- src/gpu/effects/GrYUVtoRGBEffect.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/gpu/effects/GrYUVtoRGBEffect.h (limited to 'src/gpu/effects/GrYUVtoRGBEffect.h') 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 -- cgit v1.2.3