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 --- gyp/gmslides.gypi | 1 + gyp/gpu.gypi | 2 ++ 2 files changed, 3 insertions(+) (limited to 'gyp') diff --git a/gyp/gmslides.gypi b/gyp/gmslides.gypi index 6bf46a393c..1ee27fda8c 100644 --- a/gyp/gmslides.gypi +++ b/gyp/gmslides.gypi @@ -182,6 +182,7 @@ '../gm/xfermodes.cpp', '../gm/xfermodes2.cpp', '../gm/xfermodes3.cpp', + '../gm/yuvtorgbeffect.cpp', # Files needed by particular GMs '../src/utils/debugger/SkDrawCommand.h', diff --git a/gyp/gpu.gypi b/gyp/gpu.gypi index 9b01a46118..551f48db66 100644 --- a/gyp/gpu.gypi +++ b/gyp/gpu.gypi @@ -173,6 +173,8 @@ '<(skia_src_path)/gpu/effects/GrTextureDomain.h', '<(skia_src_path)/gpu/effects/GrTextureStripAtlas.cpp', '<(skia_src_path)/gpu/effects/GrTextureStripAtlas.h', + '<(skia_src_path)/gpu/effects/GrYUVtoRGBEffect.cpp', + '<(skia_src_path)/gpu/effects/GrYUVtoRGBEffect.h', '<(skia_src_path)/gpu/gl/GrGLAssembleInterface.cpp', '<(skia_src_path)/gpu/gl/GrGLAssembleInterface.h', -- cgit v1.2.3