1. Create an SkColorMatrix, call setYUV2RGB()
2. Create an SkColorMatrixFilter, call setMatrix()
3. When you're ready to draw, call setColorFilter() on the SkPaint
you're using.

I think this will work.

--J

On Jan 12, 3:33 pm, Andrew Scherkus <scher...@chromium.org> wrote:
> Anyone a Skia expert and know if it supports YUV?
> From poking around it looks like SkBitmap assumes planar RGB and
> SkColorMatrix has a YUV -> RGB matrix but I can't find any examples of how
> to use it.
>
> Thanks,
> Andrew
--~--~---------~--~----~------------~-------~--~----~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
    http://groups.google.com/group/chromium-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to