Tanoda
NatSuite.Recorders.Internal.NativeRecorder Class Reference
Inheritance diagram for NatSuite.Recorders.Internal.NativeRecorder:
NatSuite.Recorders.IMediaRecorder

Public Member Functions

 NativeRecorder (Func< Bridge.RecordingHandler, IntPtr, IntPtr > recorderCreator)
 
void CommitFrame< T > (T[] pixelBuffer, long timestamp)
 Commit a video pixel buffer for encoding. The pixel buffer MUST have an RGBA8888 pixel layout. More...
 
void CommitFrame (IntPtr nativeBuffer, long timestamp)
 Commit a video pixel buffer for encoding. The pixel buffer MUST have an RGBA8888 pixel layout. More...
 
void CommitSamples (float[] sampleBuffer, long timestamp)
 Commit an audio sample buffer for encoding. More...
 
Task< string > FinishWriting ()
 Finish writing and return the path to the recorded media file. More...
 
void CommitFrame< T > (T[] pixelBuffer, long timestamp)
 Commit a video pixel buffer for encoding. The pixel buffer MUST have an RGBA8888 pixel layout. More...
 
void CommitFrame (IntPtr nativeBuffer, long timestamp)
 Commit a video pixel buffer for encoding. The pixel buffer MUST have an RGBA8888 pixel layout. More...
 
void CommitSamples (float[] sampleBuffer, long timestamp)
 Commit an audio sample buffer for encoding. More...
 
Task< string > FinishWriting ()
 Finish writing and return the path to the recorded media file. More...
 

Public Attributes

int width
 
- Public Attributes inherited from NatSuite.Recorders.IMediaRecorder
int width
 Recording frame size. More...
 

Properties

int int height frameSize [get]
 
- Properties inherited from NatSuite.Recorders.IMediaRecorder
int int height frameSize [get]
 

Detailed Description

Definition at line 13 of file NativeRecorder.cs.

Constructor & Destructor Documentation

◆ NativeRecorder()

NatSuite.Recorders.Internal.NativeRecorder.NativeRecorder ( Func< Bridge.RecordingHandler, IntPtr, IntPtr >  recorderCreator)

Definition at line 26 of file NativeRecorder.cs.

Member Function Documentation

◆ CommitFrame()

void NatSuite.Recorders.Internal.NativeRecorder.CommitFrame ( IntPtr  nativeBuffer,
long  timestamp 
)

Commit a video pixel buffer for encoding. The pixel buffer MUST have an RGBA8888 pixel layout.

Parameters
nativeBufferPixel buffer in native memory to commit.
timestampSample buffer timestamp in nanoseconds.

Implements NatSuite.Recorders.IMediaRecorder.

Definition at line 40 of file NativeRecorder.cs.

◆ CommitFrame< T >()

void NatSuite.Recorders.Internal.NativeRecorder.CommitFrame< T > ( T[]  pixelBuffer,
long  timestamp 
)

Commit a video pixel buffer for encoding. The pixel buffer MUST have an RGBA8888 pixel layout.

Parameters
pixelBufferPixel buffer to commit.
timestampSample buffer timestamp in nanoseconds.

Implements NatSuite.Recorders.IMediaRecorder.

Type Constraints
T :struct 

Definition at line 33 of file NativeRecorder.cs.

◆ CommitSamples()

void NatSuite.Recorders.Internal.NativeRecorder.CommitSamples ( float[]  sampleBuffer,
long  timestamp 
)

Commit an audio sample buffer for encoding.

Parameters
sampleBufferLinear PCM audio sample buffer, interleaved by channel.
timestampSample buffer timestamp in nanoseconds.

Implements NatSuite.Recorders.IMediaRecorder.

Definition at line 45 of file NativeRecorder.cs.

◆ FinishWriting()

Task< string > NatSuite.Recorders.Internal.NativeRecorder.FinishWriting ( )

Finish writing and return the path to the recorded media file.

Implements NatSuite.Recorders.IMediaRecorder.

Definition at line 50 of file NativeRecorder.cs.

Member Data Documentation

◆ width

int NatSuite.Recorders.Internal.NativeRecorder.width

Definition at line 17 of file NativeRecorder.cs.

Property Documentation

◆ frameSize

int int height NatSuite.Recorders.Internal.NativeRecorder.frameSize
get

Implements NatSuite.Recorders.IMediaRecorder.

Definition at line 17 of file NativeRecorder.cs.


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