Package boofcv.core.encoding
Class ConvertYuv420_888
- java.lang.Object
-
- boofcv.core.encoding.ConvertYuv420_888
-
public class ConvertYuv420_888 extends java.lang.ObjectFunctions for converting YUV 420 888 into BoofCV imgae types.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceConvertYuv420_888.ProcessorYuv
-
Constructor Summary
Constructors Constructor Description ConvertYuv420_888()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]declareWork(int strideY, int strideUV, byte[] work)static voidyuvToBoof(java.nio.ByteBuffer bufferY, java.nio.ByteBuffer bufferU, java.nio.ByteBuffer bufferV, int width, int height, int strideY, int strideUV, int stridePixelUV, ColorFormat colorOutput, boofcv.struct.image.ImageBase output, boofcv.concurrency.BWorkArrays workArrays)static boofcv.struct.image.GrayF32yuvToGray(java.nio.ByteBuffer bufferY, int width, int height, int strideRow, boofcv.struct.image.GrayF32 output, boofcv.concurrency.BWorkArrays workArrays)static boofcv.struct.image.GrayU8yuvToGray(java.nio.ByteBuffer bufferY, int width, int height, int strideRow, boofcv.struct.image.GrayU8 output)static <T extends boofcv.struct.image.ImageGray<T>>
TyuvToGray(java.nio.ByteBuffer bufferY, int width, int height, int strideRow, T output, boofcv.concurrency.BWorkArrays workArrays, java.lang.Class<T> outputType)Converts an YUV 420 888 into graystatic boofcv.struct.image.InterleavedF32yuvToInterleavedRgbF32(java.nio.ByteBuffer bufferY, java.nio.ByteBuffer bufferU, java.nio.ByteBuffer bufferV, int width, int height, int strideY, int strideUV, int stridePixelUV, boofcv.struct.image.InterleavedF32 output, boofcv.concurrency.BWorkArrays workArrays)static boofcv.struct.image.InterleavedU8yuvToInterleavedRgbU8(java.nio.ByteBuffer bufferY, java.nio.ByteBuffer bufferU, java.nio.ByteBuffer bufferV, int width, int height, int strideY, int strideUV, int stridePixelUV, boofcv.struct.image.InterleavedU8 output, boofcv.concurrency.BWorkArrays workArrays)static boofcv.struct.image.InterleavedU8yuvToInterleavedYuvU8(java.nio.ByteBuffer bufferY, java.nio.ByteBuffer bufferU, java.nio.ByteBuffer bufferV, int width, int height, int strideY, int strideUV, int stridePixelUV, boofcv.struct.image.InterleavedU8 output, boofcv.concurrency.BWorkArrays workArrays)static boofcv.struct.image.Planar<boofcv.struct.image.GrayF32>yuvToPlanarRgbF32(java.nio.ByteBuffer bufferY, java.nio.ByteBuffer bufferU, java.nio.ByteBuffer bufferV, int width, int height, int strideY, int strideUV, int stridePixelUV, boofcv.struct.image.Planar<boofcv.struct.image.GrayF32> output, boofcv.concurrency.BWorkArrays workArrays)static boofcv.struct.image.Planar<boofcv.struct.image.GrayU8>yuvToPlanarRgbU8(java.nio.ByteBuffer bufferY, java.nio.ByteBuffer bufferU, java.nio.ByteBuffer bufferV, int width, int height, int strideY, int strideUV, int stridePixelUV, boofcv.struct.image.Planar<boofcv.struct.image.GrayU8> output, boofcv.concurrency.BWorkArrays workArrays)static boofcv.struct.image.Planar<boofcv.struct.image.GrayU8>yuvToPlanarYuvU8(java.nio.ByteBuffer bufferY, java.nio.ByteBuffer bufferU, java.nio.ByteBuffer bufferV, int width, int height, int strideY, int strideUV, int stridePixelUV, boofcv.struct.image.Planar<boofcv.struct.image.GrayU8> output, boofcv.concurrency.BWorkArrays workArrays)
-
-
-
Method Detail
-
declareWork
public static byte[] declareWork(int strideY, int strideUV, byte[] work)
-
yuvToBoof
public static void yuvToBoof(java.nio.ByteBuffer bufferY, java.nio.ByteBuffer bufferU, java.nio.ByteBuffer bufferV, int width, int height, int strideY, int strideUV, int stridePixelUV, ColorFormat colorOutput, boofcv.struct.image.ImageBase output, boofcv.concurrency.BWorkArrays workArrays)
-
yuvToGray
public static <T extends boofcv.struct.image.ImageGray<T>> T yuvToGray(java.nio.ByteBuffer bufferY, int width, int height, int strideRow, T output, boofcv.concurrency.BWorkArrays workArrays, java.lang.Class<T> outputType)Converts an YUV 420 888 into gray- Type Parameters:
T- Output image type- Parameters:
output- Output: Optional storage for output image. Can be null.outputType- Output: Type of output image- Returns:
- Gray scale image
-
yuvToGray
public static boofcv.struct.image.GrayF32 yuvToGray(java.nio.ByteBuffer bufferY, int width, int height, int strideRow, boofcv.struct.image.GrayF32 output, boofcv.concurrency.BWorkArrays workArrays)- Parameters:
output- Output: Optional storage for output image. Can be null.- Returns:
- Gray scale image
-
yuvToGray
public static boofcv.struct.image.GrayU8 yuvToGray(java.nio.ByteBuffer bufferY, int width, int height, int strideRow, boofcv.struct.image.GrayU8 output)
-
yuvToPlanarRgbU8
public static boofcv.struct.image.Planar<boofcv.struct.image.GrayU8> yuvToPlanarRgbU8(java.nio.ByteBuffer bufferY, java.nio.ByteBuffer bufferU, java.nio.ByteBuffer bufferV, int width, int height, int strideY, int strideUV, int stridePixelUV, @Nullable boofcv.struct.image.Planar<boofcv.struct.image.GrayU8> output, @Nullable boofcv.concurrency.BWorkArrays workArrays)
-
yuvToPlanarRgbF32
public static boofcv.struct.image.Planar<boofcv.struct.image.GrayF32> yuvToPlanarRgbF32(java.nio.ByteBuffer bufferY, java.nio.ByteBuffer bufferU, java.nio.ByteBuffer bufferV, int width, int height, int strideY, int strideUV, int stridePixelUV, @Nullable boofcv.struct.image.Planar<boofcv.struct.image.GrayF32> output, @Nullable boofcv.concurrency.BWorkArrays workArrays)
-
yuvToInterleavedRgbU8
public static boofcv.struct.image.InterleavedU8 yuvToInterleavedRgbU8(java.nio.ByteBuffer bufferY, java.nio.ByteBuffer bufferU, java.nio.ByteBuffer bufferV, int width, int height, int strideY, int strideUV, int stridePixelUV, @Nullable boofcv.struct.image.InterleavedU8 output, @Nullable boofcv.concurrency.BWorkArrays workArrays)
-
yuvToInterleavedRgbF32
public static boofcv.struct.image.InterleavedF32 yuvToInterleavedRgbF32(java.nio.ByteBuffer bufferY, java.nio.ByteBuffer bufferU, java.nio.ByteBuffer bufferV, int width, int height, int strideY, int strideUV, int stridePixelUV, @Nullable boofcv.struct.image.InterleavedF32 output, @Nullable boofcv.concurrency.BWorkArrays workArrays)
-
yuvToPlanarYuvU8
public static boofcv.struct.image.Planar<boofcv.struct.image.GrayU8> yuvToPlanarYuvU8(java.nio.ByteBuffer bufferY, java.nio.ByteBuffer bufferU, java.nio.ByteBuffer bufferV, int width, int height, int strideY, int strideUV, int stridePixelUV, @Nullable boofcv.struct.image.Planar<boofcv.struct.image.GrayU8> output, @Nullable boofcv.concurrency.BWorkArrays workArrays)
-
yuvToInterleavedYuvU8
public static boofcv.struct.image.InterleavedU8 yuvToInterleavedYuvU8(java.nio.ByteBuffer bufferY, java.nio.ByteBuffer bufferU, java.nio.ByteBuffer bufferV, int width, int height, int strideY, int strideUV, int stridePixelUV, @Nullable boofcv.struct.image.InterleavedU8 output, @Nullable boofcv.concurrency.BWorkArrays workArrays)
-
-