Package 

Class YuvFrame

  • All Implemented Interfaces:

    
    public class YuvFrame
    
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
      YuvFrame(VideoFrame videoFrame) Creates a YuvFrame from the provided VideoFrame.
      YuvFrame(VideoFrame videoFrame, int processingFlags) Creates a YuvFrame from the provided VideoFrame.
      YuvFrame(VideoFrame videoFrame, int processingFlags, long timestamp) Creates a YuvFrame from the provided VideoFrame.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      void fromVideoFrame(VideoFrame videoFrame, int processingFlags, long timestamp) Replaces the data in this YuvFrame with the data from the provided frame.
      void dispose()
      boolean hasData()
      Bitmap getBitmap() Converts this YUV frame to an ARGB_8888 Bitmap.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • YuvFrame

        YuvFrame(VideoFrame videoFrame)
        Creates a YuvFrame from the provided VideoFrame.
        Parameters:
        videoFrame - Source VideoFrame.
      • YuvFrame

        YuvFrame(VideoFrame videoFrame, int processingFlags)
        Creates a YuvFrame from the provided VideoFrame.
        Parameters:
        videoFrame - Source VideoFrame.
        processingFlags - Processing flags, YuvFrame.PROCESSING_NONE for no processing.
      • YuvFrame

        YuvFrame(VideoFrame videoFrame, int processingFlags, long timestamp)
        Creates a YuvFrame from the provided VideoFrame.
        Parameters:
        videoFrame - Source VideoFrame.
        processingFlags - Processing flags, YuvFrame.PROCESSING_NONE for no processing.
        timestamp - The timestamp to give the frame.
    • Method Detail

      • fromVideoFrame

         void fromVideoFrame(VideoFrame videoFrame, int processingFlags, long timestamp)

        Replaces the data in this YuvFrame with the data from the provided frame. Will create new byte arrays to hold pixel data if necessary, or will reuse existing arrays if they're already the correct size.

        Parameters:
        videoFrame - Source VideoFrame.
        processingFlags - Processing flags, YuvFrame.PROCESSING_NONE for no processing.
        timestamp - The timestamp to give the frame.
      • getBitmap

         Bitmap getBitmap()

        Converts this YUV frame to an ARGB_8888 Bitmap. Applies stored rotation.