Photon Voice v2.58

Public Member Functions | Public Attributes | Protected Member Functions | Static Protected Attributes | Properties | List of all members
AndroidNDKVideoEncoder Class Reference

Inherits IEncoder.

Public Member Functions

 AndroidNDKVideoEncoder (ILogger logger, int width, int height, VoiceInfo info)
 
ArraySegment< byte > DequeueOutput (out FrameFlags flags)
 Returns next encoded data frame (if such output supported). More...
 
void EndOfStream ()
 Forces an encoder to flush and produce frame with EndOfStream flag (in output queue). More...
 
GetPlatformAPI< I > ()
 Returns an platform-specific interface. More...
 
virtual void Dispose ()
 

Public Attributes

IntPtr SurfaceNative => get_encoder_surface(handle)
 

Protected Member Functions

static IntPtr get_encoder_surface (IntPtr Encoder)
 

Static Protected Attributes

static Dictionary< IntPtr, AndroidNDKVideoEncoderinstancePerHandle = new Dictionary<IntPtr, AndroidNDKVideoEncoder>()
 

Properties

AndroidJavaObject Surface [get]
 
Action< ArraySegment< byte >, FrameFlags > Output [set]
 
string Error [get, protected set]
 
- Properties inherited from IEncoder
string Error [get]
 If not null, the object is in invalid state. More...
 
Action< ArraySegment< byte >, FrameFlags > Output [set]
 Set callback encoder calls on each encoded data frame (if such output supported). More...
 

Member Function Documentation

◆ DequeueOutput()

ArraySegment<byte> DequeueOutput ( out FrameFlags  flags)

Returns next encoded data frame (if such output supported).

Implements IEncoder.

◆ EndOfStream()

void EndOfStream ( )

Forces an encoder to flush and produce frame with EndOfStream flag (in output queue).

Implements IEncoder.

◆ GetPlatformAPI< I >()

I GetPlatformAPI< I > ( )

Returns an platform-specific interface.

Implements IEncoder.

Type Constraints
I :class