org.jcodec.codecs.mjpeg
Class ImageConvert

java.lang.Object
  extended by org.jcodec.codecs.mjpeg.ImageConvert

public class ImageConvert
extends Object

This class is part of JCodec ( www.jcodec.org ) This software is distributed under FreeBSD License

Author:
Jay Codec

Constructor Summary
ImageConvert()
           
 
Method Summary
static byte crop(int i)
           
static int icrop(int i)
           
static byte RGB888toU4(int r, int g, int b)
           
static byte RGB888toV4(int r, int g, int b)
           
static byte RGB888toY4(int r, int g, int b)
           
static void RGB888toYUV444(ByteBuffer rgb, ByteBuffer Y, ByteBuffer U, ByteBuffer V)
           
static byte y_ccir_to_jpeg(byte y)
           
static byte y_jpeg_to_ccir(byte y)
           
static int ycbcr_to_rgb24(int y, int cb, int cr)
           
static void YUV444toRGB888(int y, int u, int v, ByteBuffer rgb)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageConvert

public ImageConvert()
Method Detail

ycbcr_to_rgb24

public static final int ycbcr_to_rgb24(int y,
                                       int cb,
                                       int cr)

icrop

public static final int icrop(int i)

crop

public static final byte crop(int i)

y_ccir_to_jpeg

public static final byte y_ccir_to_jpeg(byte y)

y_jpeg_to_ccir

public static final byte y_jpeg_to_ccir(byte y)

YUV444toRGB888

public static void YUV444toRGB888(int y,
                                  int u,
                                  int v,
                                  ByteBuffer rgb)

RGB888toYUV444

public static void RGB888toYUV444(ByteBuffer rgb,
                                  ByteBuffer Y,
                                  ByteBuffer U,
                                  ByteBuffer V)

RGB888toY4

public static byte RGB888toY4(int r,
                              int g,
                              int b)

RGB888toU4

public static byte RGB888toU4(int r,
                              int g,
                              int b)

RGB888toV4

public static byte RGB888toV4(int r,
                              int g,
                              int b)


Copyright © 2013. All Rights Reserved.