webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Static Public Member Functions | List of all members
org.webrtc.VideoFileRenderer Class Reference

Inherits org.webrtc.VideoRenderer.Callbacks.

Public Member Functions

 VideoFileRenderer (String outputFile, int outputFileWidth, int outputFileHeight, final EglBase.Context sharedContext) throws IOException
 
void renderFrame (final VideoRenderer.I420Frame frame)
 
void release ()
 

Static Public Member Functions

static native void nativeI420Scale (ByteBuffer srcY, int strideY, ByteBuffer srcU, int strideU, ByteBuffer srcV, int strideV, int width, int height, ByteBuffer dst, int dstWidth, int dstHeight)
 
static native ByteBuffer nativeCreateNativeByteBuffer (int size)
 
static native void nativeFreeNativeByteBuffer (ByteBuffer buffer)
 

Detailed Description

Can be used to save the video frames to file.

Constructor & Destructor Documentation

◆ VideoFileRenderer()

org.webrtc.VideoFileRenderer.VideoFileRenderer ( String  outputFile,
int  outputFileWidth,
int  outputFileHeight,
final EglBase.Context  sharedContext 
) throws IOException
inline

Member Function Documentation

◆ nativeCreateNativeByteBuffer()

static native ByteBuffer org.webrtc.VideoFileRenderer.nativeCreateNativeByteBuffer ( int  size)
static

◆ nativeFreeNativeByteBuffer()

static native void org.webrtc.VideoFileRenderer.nativeFreeNativeByteBuffer ( ByteBuffer  buffer)
static

◆ nativeI420Scale()

static native void org.webrtc.VideoFileRenderer.nativeI420Scale ( ByteBuffer  srcY,
int  strideY,
ByteBuffer  srcU,
int  strideU,
ByteBuffer  srcV,
int  strideV,
int  width,
int  height,
ByteBuffer  dst,
int  dstWidth,
int  dstHeight 
)
static

◆ release()

void org.webrtc.VideoFileRenderer.release ( )
inline

Release all resources. All already posted frames will be rendered first.

◆ renderFrame()

void org.webrtc.VideoFileRenderer.renderFrame ( final VideoRenderer.I420Frame  frame)
inline

The documentation for this class was generated from the following file: