org.jcodec.scale
Class RgbToYuv420

java.lang.Object
  extended by org.jcodec.scale.RgbToYuv420
All Implemented Interfaces:
Transform

public class RgbToYuv420
extends Object
implements Transform

This class is part of JCodec ( www.jcodec.org ) This software is distributed under FreeBSD License Transforms Picture in RGB colorspace ( one plane, 3 integers per pixel ) to Yuv420 colorspace output picture ( 3 planes, luma - 0th plane, cb - 1th plane, cr - 2nd plane; cb and cr planes are half width and half haight )

Author:
The JCodec project

Constructor Summary
RgbToYuv420(int upShift, int downShift)
           
 
Method Summary
static void rgb2yuv(int r, int g, int b, int[] Y, int offY, int[] U, int offU, int[] V, int offV)
           
 void transform(Picture img, Picture dst)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RgbToYuv420

public RgbToYuv420(int upShift,
                   int downShift)
Method Detail

transform

public void transform(Picture img,
                      Picture dst)
Specified by:
transform in interface Transform

rgb2yuv

public static final void rgb2yuv(int r,
                                 int g,
                                 int b,
                                 int[] Y,
                                 int offY,
                                 int[] U,
                                 int offU,
                                 int[] V,
                                 int offV)


Copyright © 2013. All Rights Reserved.