webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Classes | Public Member Functions | Static Public Member Functions | List of all members
org.webrtc.FileVideoCapturer Class Reference
Inheritance diagram for org.webrtc.FileVideoCapturer:
org.webrtc.VideoCapturer

Public Member Functions

 FileVideoCapturer (String inputFile) throws IOException
 
void tick ()
 
void initialize (SurfaceTextureHelper surfaceTextureHelper, Context applicationContext, CapturerObserver capturerObserver)
 
void startCapture (int width, int height, int framerate)
 
void stopCapture () throws InterruptedException
 
void changeCaptureFormat (int width, int height, int framerate)
 
void dispose ()
 
boolean isScreencast ()
 

Static Public Member Functions

static native void nativeI420ToNV21 (byte[] src, int width, int height, byte[] dst)
 

Constructor & Destructor Documentation

◆ FileVideoCapturer()

org.webrtc.FileVideoCapturer.FileVideoCapturer ( String  inputFile) throws IOException
inline

Member Function Documentation

◆ changeCaptureFormat()

void org.webrtc.FileVideoCapturer.changeCaptureFormat ( int  width,
int  height,
int  framerate 
)
inline

◆ dispose()

void org.webrtc.FileVideoCapturer.dispose ( )
inline

Perform any final cleanup here. No more capturing will be done after this call.

Implements org.webrtc.VideoCapturer.

◆ initialize()

void org.webrtc.FileVideoCapturer.initialize ( SurfaceTextureHelper  surfaceTextureHelper,
Context  applicationContext,
CapturerObserver  capturerObserver 
)
inline

This function is used to initialize the camera thread, the android application context, and the capture observer. It will be called only once and before any startCapture() request. The camera thread is guaranteed to be valid until dispose() is called. If the VideoCapturer wants to deliver texture frames, it should do this by rendering on the SurfaceTexture in |surfaceTextureHelper|, register itself as a listener, and forward the texture frames to CapturerObserver.onTextureFrameCaptured().

Implements org.webrtc.VideoCapturer.

◆ isScreencast()

boolean org.webrtc.FileVideoCapturer.isScreencast ( )
inline
Returns
true if-and-only-if this is a screen capturer.

Implements org.webrtc.VideoCapturer.

◆ nativeI420ToNV21()

static native void org.webrtc.FileVideoCapturer.nativeI420ToNV21 ( byte []  src,
int  width,
int  height,
byte []  dst 
)
static

◆ startCapture()

void org.webrtc.FileVideoCapturer.startCapture ( int  width,
int  height,
int  framerate 
)
inline

Start capturing frames in a format that is as close as possible to |width| x |height| and |framerate|.

Implements org.webrtc.VideoCapturer.

◆ stopCapture()

void org.webrtc.FileVideoCapturer.stopCapture ( ) throws InterruptedException
inline

Stop capturing. This function should block until capture is actually stopped.

Implements org.webrtc.VideoCapturer.

◆ tick()

void org.webrtc.FileVideoCapturer.tick ( )
inline

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