Class BitmapOverlay

    • Constructor Detail

      • BitmapOverlay

        public BitmapOverlay()
        Deprecated.
    • Method Detail

      • getBitmap

        public abstract Bitmap getBitmap​(long presentationTimeUs)
                                  throws VideoFrameProcessingException
        Deprecated.
        Returns the overlay bitmap displayed at the specified timestamp.
        Parameters:
        presentationTimeUs - The presentation timestamp of the current frame, in microseconds.
        Throws:
        VideoFrameProcessingException - If an error occurs while processing or drawing the frame.
      • getTextureSize

        public Size getTextureSize​(long presentationTimeUs)
        Deprecated.
        Returns the pixel width and height of the overlay texture displayed at the specified timestamp.

        This method must be called after TextureOverlay.getTextureId(long).

        Gets the width and height of the cached bitmap.

        Specified by:
        getTextureSize in class TextureOverlay
        Parameters:
        presentationTimeUs - The presentation timestamp of the current frame, in microseconds.
      • getTextureId

        public int getTextureId​(long presentationTimeUs)
                         throws VideoFrameProcessingException
        Deprecated.
        Description copied from class: TextureOverlay
        Returns the overlay texture identifier displayed at the specified timestamp.
        Specified by:
        getTextureId in class TextureOverlay
        Parameters:
        presentationTimeUs - The presentation timestamp of the current frame, in microseconds.
        Throws:
        VideoFrameProcessingException - If an error occurs while processing or drawing the frame.
      • createStaticBitmapOverlay

        public static BitmapOverlay createStaticBitmapOverlay​(Bitmap overlayBitmap)
        Deprecated.
        Creates a BitmapOverlay that shows the overlayBitmap in the same position and size throughout the whole video.
        Parameters:
        overlayBitmap - The bitmap to overlay on the video.
      • createStaticBitmapOverlay

        public static BitmapOverlay createStaticBitmapOverlay​(Bitmap overlayBitmap,
                                                              OverlaySettings overlaySettings)
        Deprecated.
        Creates a BitmapOverlay that shows the overlayBitmap in the same OverlaySettings throughout the whole video.
        Parameters:
        overlayBitmap - The bitmap to overlay on the video.
        overlaySettings - The OverlaySettings configuring how the overlay is displayed on the frames.
      • createStaticBitmapOverlay

        public static BitmapOverlay createStaticBitmapOverlay​(Context context,
                                                              Uri overlayBitmapUri,
                                                              OverlaySettings overlaySettings)
        Deprecated.
        Creates a BitmapOverlay that shows the input at overlayBitmapUri with the same OverlaySettings throughout the whole video.
        Parameters:
        context - The Context.
        overlayBitmapUri - The Uri pointing to the resource to be converted into a bitmap.
        overlaySettings - The OverlaySettings configuring how the overlay is displayed on the frames.