WebRTC Video Chat 1.1.4
Loading...
Searching...
No Matches
Byn.Awrtc.IDirectMemoryFrame Interface Reference

Interface for frames that support accessing the memort directly via pointers. More...

Inheritance diagram for Byn.Awrtc.IDirectMemoryFrame:
Byn.Awrtc.IFrame Byn.Awrtc.RawFrame

Public Member Functions

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.
 

Additional Inherited Members

- Properties inherited from Byn.Awrtc.RawFrame
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.
 

Detailed Description

Interface for frames that support accessing the memort directly via pointers.

Member Function Documentation

◆ 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
yStart pointer of the y-plane
yStrideStride of the y-plane
uStart pointer of the u-plane.
uStrideStride of the u-plane
vStart pointer of the v-plane
vStrideStride of the v-plane

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