Defines a video frame for the IVideoRenderer.RenderFrame(VideoFrame) and IVideoFrameConsumer.Consume(VideoFrame) methods.
More...
Inherits IDisposable.
|
static VideoFrame | CreateYuv420pFrameFromBuffer (PixelFormat sourceFormat, int width, int height, IntPtr[] planes, int[] strides) |
| Creates a I420 video frame from an array of planes. More...
|
|
static VideoFrame | CreateFrameFromBuffer (PixelFormat format, int width, int height, IntPtr[] planes, int[] strides) |
| Creates a video frame from a set of planes. More...
|
|
static VideoFrame | CreateFrameFromBuffer (PixelFormat format, int width, int height, IntPtr buffer) |
| Creates a video frame from a buffer. More...
|
|
static VideoFrame | CreateYuv420pFrameFromBitmap (Bitmap bitmap) |
| Creates a YUV420p video frame from a bitmap. More...
|
|
|
virtual void | Dispose (bool disposing) |
|
|
int | Width [get] |
| The width of the video frame, in pixels. More...
|
|
int | Height [get] |
| The height of the video frame, in pixels. More...
|
|
PixelFormat | PixelFormat [get] |
| The pixel format of the video frame. More...
|
|
bool | IsMirrored [get] |
| Whether the video image is mirrored in the local client. More...
|
|
int | NumberOfPlanes [get] |
| The number of planes in this video frame. More...
|
|
byte [] | Metadata [get, set] |
| The metadata associated with this frame, if any. The maximum size allowed for the metadata is 32 bytes. An ArgumentOutOfRangeException exception is thrown if you set this to a byte array larger than 32 bytes. More...
|
|
◆ ConvertInPlace()
void OpenTok.VideoFrame.ConvertInPlace |
( |
PixelFormat |
destinationFormat, |
|
|
IntPtr [] |
planes, |
|
|
int [] |
strides |
|
) |
| |
Copies the video frame to a buffer, passed in as the planes parameter.
- Parameters
-
destinationFormat | The video format. Please note that currently this only works with PixelFormat.FormatYuv420p. |
planes | A pointer to the video data destination buffer planes. |
strides | The number of bytes in a single row of pixel data. |
◆ CreateFrameFromBuffer() [1/2]
static VideoFrame OpenTok.VideoFrame.CreateFrameFromBuffer |
( |
PixelFormat |
format, |
|
|
int |
width, |
|
|
int |
height, |
|
|
IntPtr [] |
planes, |
|
|
int [] |
strides |
|
) |
| |
|
static |
Creates a video frame from a set of planes.
- Parameters
-
format | The format of the source frames. |
width | The width, in pixels. |
height | The height, in pixels. |
planes | An array containing the source planes. |
strides | An array containing the source strides. |
◆ CreateFrameFromBuffer() [2/2]
static VideoFrame OpenTok.VideoFrame.CreateFrameFromBuffer |
( |
PixelFormat |
format, |
|
|
int |
width, |
|
|
int |
height, |
|
|
IntPtr |
buffer |
|
) |
| |
|
static |
Creates a video frame from a buffer.
- Parameters
-
format | The format of the source frames. |
width | The width, in pixels. |
height | The height, in pixels. |
buffer | A pointer to the source buffer. |
◆ CreateYuv420pFrameFromBitmap()
static VideoFrame OpenTok.VideoFrame.CreateYuv420pFrameFromBitmap |
( |
Bitmap |
bitmap | ) |
|
|
static |
Creates a YUV420p video frame from a bitmap.
- Parameters
-
bitmap | The source bitmap for the frame. |
◆ CreateYuv420pFrameFromBuffer()
static VideoFrame OpenTok.VideoFrame.CreateYuv420pFrameFromBuffer |
( |
PixelFormat |
sourceFormat, |
|
|
int |
width, |
|
|
int |
height, |
|
|
IntPtr [] |
planes, |
|
|
int [] |
strides |
|
) |
| |
|
static |
Creates a I420 video frame from an array of planes.
- Parameters
-
sourceFormat | The format of the source frames. |
width | The width, in pixels. |
height | The height, in pixels. |
planes | An array containing the source planes. |
strides | An array containing the source strides. |
◆ Dispose()
void OpenTok.VideoFrame.Dispose |
( |
| ) |
|
◆ GetPlane()
IntPtr OpenTok.VideoFrame.GetPlane |
( |
int |
index | ) |
|
Gets a pointer to a specified video plane for the frame.
- Parameters
-
index | The index of the frame. The NumberOfPlanes property of the VideoFrame object is the number of planes available. |
◆ GetPlaneHeight()
int OpenTok.VideoFrame.GetPlaneHeight |
( |
int |
index | ) |
|
Gets the height (in pixels) for a specified video plane for the frame.
- Parameters
-
index | The index of the frame. The NumberOfPlanes property of the VideoFrame object is the number of planes available. |
◆ GetPlaneSize()
int OpenTok.VideoFrame.GetPlaneSize |
( |
int |
index | ) |
|
Gets the size of a specified video plane for the frame.
- Parameters
-
index | The index of the frame. The NumberOfPlanes property of the VideoFrame object is the number of planes available. |
◆ GetPlaneStride()
int OpenTok.VideoFrame.GetPlaneStride |
( |
int |
index | ) |
|
Gets the stride for a specified video plane for the frame.
- Parameters
-
index | The index of the frame. The NumberOfPlanes property of the VideoFrame object is the number of planes available. |
◆ GetPlaneWidth()
int OpenTok.VideoFrame.GetPlaneWidth |
( |
int |
index | ) |
|
Gets the width (in pixels) for a specified video plane for the frame.
- Parameters
-
index | The index of the frame. The NumberOfPlanes property of the VideoFrame object is the number of planes available. |
◆ Height
int OpenTok.VideoFrame.Height |
|
get |
The height of the video frame, in pixels.
◆ IsMirrored
bool OpenTok.VideoFrame.IsMirrored |
|
get |
Whether the video image is mirrored in the local client.
◆ Metadata
byte [] OpenTok.VideoFrame.Metadata |
|
getset |
The metadata associated with this frame, if any. The maximum size allowed for the metadata is 32 bytes. An ArgumentOutOfRangeException exception is thrown if you set this to a byte array larger than 32 bytes.
◆ NumberOfPlanes
int OpenTok.VideoFrame.NumberOfPlanes |
|
get |
The number of planes in this video frame.
◆ PixelFormat
The pixel format of the video frame.
◆ Width
int OpenTok.VideoFrame.Width |
|
get |
The width of the video frame, in pixels.
The documentation for this class was generated from the following file:
- /Users/jswartz_1/src/native-sdk-src/project/windows/OpenTok/src/VideoFrame.cs