Interface for frames that support accessing the memort directly via pointers.
More...
|
| int | GetSize () |
| | Returns the byte size of a buffer needed to store the image.
|
| |
| void | ToBufferI420p (IntPtr y, int yStride, IntPtr u, int uStride, IntPtr v, int vStride) |
| | Copies the frame data into another buffer. WARNING: This call is unsafe and can cause crashes!
|
| |
| IntPtr | GetIntPtrY () |
| | Gets the start pointer of the y-plane buffer. This buffer is tied to the lifetime of this object and will be released after it is disposed.
|
| |
| IntPtr | GetIntPtrU () |
| | Gets the start pointer of the u-plane buffer. This buffer is tied to the lifetime of this object and will be released after it is disposed.
|
| |
| IntPtr | GetIntPtrV () |
| | Gets the start pointer of the v-plane buffer. This buffer is tied to the lifetime of this object and will be released after it is disposed.
|
| |
| int | GetYStride () |
| | Returns the stride of the internal buffer.
|
| |
| int | GetUStride () |
| | Returns the stride of the internal buffer.
|
| |
| int | GetVStride () |
| | Returns the stride of the internal buffer.
|
| |
|
| byte[] | Buffer [get] |
| | Returns the image as byte[]. Depending on the platform this can either be a copy or a direct access to the buffer. Do not store this reference. It might be reused for further images.
|
| |
| bool | Buffered [get] |
| | True if the image is already buffered and available as byte[]. This is the default value.
|
| |
| int | Height [get] |
| | Height of the image in pixels. (before rotation is applied)
|
| |
| int | Width [get] |
| | With of the image in pixels. (before rotation is applied)
|
| |
| int | Rotation [get] |
| | Rotation of the image. Apply this rotation to the image before showing it to the user.
|
| |
| bool | IsTopRowFirst [get] |
| | If true the top row of the image will be at the start of the buffer.
|
| |
| FramePixelFormat | Format [get] |
| | Image format.
|
| |
Interface for frames that support accessing the memort directly via pointers.
◆ GetIntPtrU()
| IntPtr Byn.Awrtc.IDirectMemoryFrame.GetIntPtrU |
( |
| ) |
|
Gets the start pointer of the u-plane buffer. This buffer is tied to the lifetime of this object and will be released after it is disposed.
- Returns
- Returns a pointer to the internal buffer
◆ GetIntPtrV()
| IntPtr Byn.Awrtc.IDirectMemoryFrame.GetIntPtrV |
( |
| ) |
|
Gets the start pointer of the v-plane buffer. This buffer is tied to the lifetime of this object and will be released after it is disposed.
- Returns
- Returns a pointer to the internal buffer
◆ GetIntPtrY()
| IntPtr Byn.Awrtc.IDirectMemoryFrame.GetIntPtrY |
( |
| ) |
|
Gets the start pointer of the y-plane buffer. This buffer is tied to the lifetime of this object and will be released after it is disposed.
- Returns
- Returns a pointer to the internal buffer
◆ GetSize()
| int Byn.Awrtc.IDirectMemoryFrame.GetSize |
( |
| ) |
|
Returns the byte size of a buffer needed to store the image.
- Returns
- Length or -1 if something went wrong
◆ GetUStride()
| int Byn.Awrtc.IDirectMemoryFrame.GetUStride |
( |
| ) |
|
Returns the stride of the internal buffer.
- Returns
- Stride of the u-plane.
◆ GetVStride()
| int Byn.Awrtc.IDirectMemoryFrame.GetVStride |
( |
| ) |
|
Returns the stride of the internal buffer.
- Returns
- Stride of the v-plane.
◆ GetYStride()
| int Byn.Awrtc.IDirectMemoryFrame.GetYStride |
( |
| ) |
|
Returns the stride of the internal buffer.
- Returns
- Stride of the y-plane.
◆ ToBufferI420p()
| void Byn.Awrtc.IDirectMemoryFrame.ToBufferI420p |
( |
IntPtr | y, |
|
|
int | yStride, |
|
|
IntPtr | u, |
|
|
int | uStride, |
|
|
IntPtr | v, |
|
|
int | vStride ) |
Copies the frame data into another buffer. WARNING: This call is unsafe and can cause crashes!
- Parameters
-
| y | Start pointer of the y-plane |
| yStride | Stride of the y-plane |
| u | Start pointer of the u-plane. |
| uStride | Stride of the u-plane |
| v | Start pointer of the v-plane |
| vStride | Stride of the v-plane |
The documentation for this interface was generated from the following file:
- /Volumes/macdev/wrtc/main_new/awrtc/awrtc_cs_common/Byn.Awrtc/RawFrame.cs