Tanoda
|
Animated GIF image recorder. More...
Public Member Functions | |
GIFRecorder (int width, int height, float frameDuration) | |
Create a GIF recorder. More... | |
void | CommitFrame< T > (T[] pixelBuffer, long timestamp=default) |
Commit a video pixel buffer for encoding. The pixel buffer MUST have an RGBA8888 pixel layout. More... | |
void | CommitFrame (IntPtr nativeBuffer, long timestamp=default) |
Commit a video pixel buffer for encoding. The pixel buffer MUST have an RGBA8888 pixel layout. More... | |
void | CommitSamples (float[] sampleBuffer=default, long timestamp=default) |
This recorder does not support committing sample buffers. 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 |
Image size. More... | |
![]() | |
int | width |
Recording frame size. More... | |
Properties | |
int int height | frameSize [get] |
![]() | |
int int height | frameSize [get] |
Animated GIF image recorder.
Definition at line 15 of file GIFRecorder.cs.
NatSuite.Recorders.GIFRecorder.GIFRecorder | ( | int | width, |
int | height, | ||
float | frameDuration | ||
) |
Create a GIF recorder.
width | Image width. |
height | Image height. |
frameDuration | Frame duration in seconds. |
Definition at line 30 of file GIFRecorder.cs.
void NatSuite.Recorders.GIFRecorder.CommitFrame | ( | IntPtr | nativeBuffer, |
long | timestamp = default |
||
) |
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 | Not used. |
Implements NatSuite.Recorders.IMediaRecorder.
Definition at line 54 of file GIFRecorder.cs.
void NatSuite.Recorders.GIFRecorder.CommitFrame< T > | ( | T[] | pixelBuffer, |
long | timestamp = default |
||
) |
Commit a video pixel buffer for encoding. The pixel buffer MUST have an RGBA8888 pixel layout.
pixelBuffer | Pixel buffer containing video frame to commit. |
timestamp | Not used. |
Implements NatSuite.Recorders.IMediaRecorder.
T | : | struct |
Definition at line 43 of file GIFRecorder.cs.
void NatSuite.Recorders.GIFRecorder.CommitSamples | ( | float[] | sampleBuffer = default , |
long | timestamp = default |
||
) |
This recorder does not support committing sample buffers.
Implements NatSuite.Recorders.IMediaRecorder.
Definition at line 62 of file GIFRecorder.cs.
Task< string > NatSuite.Recorders.GIFRecorder.FinishWriting | ( | ) |
Finish writing and return the path to the recorded media file.
Implements NatSuite.Recorders.IMediaRecorder.
Definition at line 69 of file GIFRecorder.cs.
int NatSuite.Recorders.GIFRecorder.width |
Image size.
Definition at line 22 of file GIFRecorder.cs.
|
get |
Implements NatSuite.Recorders.IMediaRecorder.
Definition at line 22 of file GIFRecorder.cs.