Tanoda
|
A recorder capable of recording video frames, and optionally audio frames, to a media output. All recorder methods are thread safe, and as such can be called from any thread. More...
Public Member Functions | |
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 |
Recording frame size. More... | |
Properties | |
int int height | frameSize [get] |
A recorder capable of recording video frames, and optionally audio frames, to a media output. All recorder methods are thread safe, and as such can be called from any thread.
Definition at line 15 of file IMediaRecorder.cs.
void NatSuite.Recorders.IMediaRecorder.CommitFrame | ( | IntPtr | nativeBuffer, |
long | timestamp | ||
) |
Commit a video pixel buffer for encoding. The pixel buffer MUST have an RGBA8888 pixel layout.
nativeBuffer | Pixel buffer in native memory to commit. |
timestamp | Sample buffer timestamp in nanoseconds. |
Implemented in NatSuite.Recorders.HEVCRecorder, NatSuite.Recorders.Internal.NativeRecorder, NatSuite.Recorders.MP4Recorder, NatSuite.Recorders.GIFRecorder, NatSuite.Recorders.JPGRecorder, and NatSuite.Recorders.WAVRecorder.
void NatSuite.Recorders.IMediaRecorder.CommitFrame< T > | ( | T[] | pixelBuffer, |
long | timestamp | ||
) |
Commit a video pixel buffer for encoding. The pixel buffer MUST have an RGBA8888 pixel layout.
pixelBuffer | Pixel buffer to commit. |
timestamp | Sample buffer timestamp in nanoseconds. |
Implemented in NatSuite.Recorders.HEVCRecorder, NatSuite.Recorders.Internal.NativeRecorder, NatSuite.Recorders.MP4Recorder, NatSuite.Recorders.GIFRecorder, NatSuite.Recorders.JPGRecorder, and NatSuite.Recorders.WAVRecorder.
T | : | struct |
void NatSuite.Recorders.IMediaRecorder.CommitSamples | ( | float[] | sampleBuffer, |
long | timestamp | ||
) |
Commit an audio sample buffer for encoding.
sampleBuffer | Linear PCM audio sample buffer, interleaved by channel. |
timestamp | Sample buffer timestamp in nanoseconds. |
Implemented in NatSuite.Recorders.HEVCRecorder, NatSuite.Recorders.Internal.NativeRecorder, NatSuite.Recorders.MP4Recorder, NatSuite.Recorders.WAVRecorder, NatSuite.Recorders.GIFRecorder, and NatSuite.Recorders.JPGRecorder.
Task< string > NatSuite.Recorders.IMediaRecorder.FinishWriting | ( | ) |
Finish writing and return the path to the recorded media file.
Implemented in NatSuite.Recorders.GIFRecorder, NatSuite.Recorders.HEVCRecorder, NatSuite.Recorders.Internal.NativeRecorder, NatSuite.Recorders.JPGRecorder, NatSuite.Recorders.MP4Recorder, and NatSuite.Recorders.WAVRecorder.
int NatSuite.Recorders.IMediaRecorder.width |
Recording frame size.
Definition at line 20 of file IMediaRecorder.cs.
|
get |
Implemented in NatSuite.Recorders.GIFRecorder, NatSuite.Recorders.HEVCRecorder, NatSuite.Recorders.Internal.NativeRecorder, NatSuite.Recorders.JPGRecorder, NatSuite.Recorders.MP4Recorder, and NatSuite.Recorders.WAVRecorder.
Definition at line 20 of file IMediaRecorder.cs.