Class ConvertYuv420_888

java.lang.Object
boofcv.core.encoding.ConvertYuv420_888

public class ConvertYuv420_888
extends Object
Functions for converting YUV 420 888 into BoofCV imgae types.
  • Constructor Details

    • ConvertYuv420_888

      public ConvertYuv420_888()
  • Method Details

    • declareWork

      public static byte[] declareWork​(int strideY, int strideUV, byte[] work)
    • yuvToBoof

      public static void yuvToBoof​(ByteBuffer bufferY, ByteBuffer bufferU, ByteBuffer bufferV, int width, int height, int strideY, int strideUV, int stridePixelUV, ColorFormat colorOutput, ImageBase output, @Nullable @Nullable GrowArray<DogArray_I8> workArrays)
    • yuvToGray

      public static <T extends ImageGray<T>> T yuvToGray​(ByteBuffer bufferY, int width, int height, int strideRow, T output, @Nullable @Nullable GrowArray<DogArray_I8> workArrays, 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 GrayF32 yuvToGray​(ByteBuffer bufferY, int width, int height, int strideRow, @Nullable @Nullable GrayF32 output, @Nullable @Nullable GrowArray<DogArray_I8> workArrays)
      Converts a YUV buffer into a gray scale image.
      Parameters:
      output - Output: Optional storage for output image. Can be null.
      Returns:
      Gray scale image
    • yuvToGray

      public static GrayU8 yuvToGray​(ByteBuffer bufferY, int width, int height, int strideRow, @Nullable @Nullable GrayU8 output)
      Converts a YUV buffer into a gray scale image.
    • yuvToPlanarRgbU8

      public static Planar<GrayU8> yuvToPlanarRgbU8​(ByteBuffer bufferY, ByteBuffer bufferU, ByteBuffer bufferV, int width, int height, int strideY, int strideUV, int stridePixelUV, @Nullable @Nullable Planar<GrayU8> output, @Nullable @Nullable GrowArray<DogArray_I8> workArrays)
    • yuvToPlanarRgbF32

      public static Planar<GrayF32> yuvToPlanarRgbF32​(ByteBuffer bufferY, ByteBuffer bufferU, ByteBuffer bufferV, int width, int height, int strideY, int strideUV, int stridePixelUV, @Nullable @Nullable Planar<GrayF32> output, @Nullable @Nullable GrowArray<DogArray_I8> workArrays)
    • yuvToInterleavedRgbU8

      public static InterleavedU8 yuvToInterleavedRgbU8​(ByteBuffer bufferY, ByteBuffer bufferU, ByteBuffer bufferV, int width, int height, int strideY, int strideUV, int stridePixelUV, @Nullable @Nullable InterleavedU8 output, @Nullable @Nullable GrowArray<DogArray_I8> workArrays)
    • yuvToInterleavedRgbF32

      public static InterleavedF32 yuvToInterleavedRgbF32​(ByteBuffer bufferY, ByteBuffer bufferU, ByteBuffer bufferV, int width, int height, int strideY, int strideUV, int stridePixelUV, @Nullable @Nullable InterleavedF32 output, @Nullable @Nullable GrowArray<DogArray_I8> workArrays)
    • yuvToPlanarYuvU8

      public static Planar<GrayU8> yuvToPlanarYuvU8​(ByteBuffer bufferY, ByteBuffer bufferU, ByteBuffer bufferV, int width, int height, int strideY, int strideUV, int stridePixelUV, @Nullable @Nullable Planar<GrayU8> output, @Nullable @Nullable GrowArray<DogArray_I8> workArrays)
    • yuvToInterleavedYuvU8

      public static InterleavedU8 yuvToInterleavedYuvU8​(ByteBuffer bufferY, ByteBuffer bufferU, ByteBuffer bufferV, int width, int height, int strideY, int strideUV, int stridePixelUV, @Nullable @Nullable InterleavedU8 output, @Nullable @Nullable GrowArray<DogArray_I8> workArrays)