Class ArgbConverter

    • Constructor Detail

      • ArgbConverter

        public ArgbConverter​(IPixelFormat.Type pictureType,
                             int pictureWidth,
                             int pictureHeight,
                             int imageWidth,
                             int imageHeight)
        Construct as converter to translate IVideoPictures to and from BufferedImages of type BufferedImage.TYPE_INT_ARGB.
        Parameters:
        pictureType - the picture type recognized by this converter
        pictureWidth - the width of pictures
        pictureHeight - the height of pictures
        imageWidth - the width of images
        imageHeight - the height of images
    • Method Detail

      • toPicture

        public IVideoPicture toPicture​(java.awt.image.BufferedImage image,
                                       long timestamp)
        Converts a BufferedImage to an IVideoPicture.
        Parameters:
        image - the source buffered image.
        timestamp - the time stamp which should be attached to the the video picture (in microseconds).
      • toImage

        public java.awt.image.BufferedImage toImage​(IVideoPicture picture)
        Converts an IVideoPicture to a BufferedImage.
        Parameters:
        picture - the source video picture.
      • delete

        public void delete()
        Description copied from interface: IConverter
        Release any resources used by this converter. Calls to the converter after this call are illegal and may fail in unspecified ways.