WebRTC Video Chat 1.1.4
Loading...
Searching...
No Matches
Byn.Awrtc.BufferedFrame Class Reference

A raw video frame of a webcam. References to these objects will be reused after the next call to ICall.Update! Do not keep references for longer! More...

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

Public Member Functions

 BufferedFrame (byte[] buffer, int width, int height, FramePixelFormat format, int rotation, bool isTopRowFirst)
 Constructs a new raw BufferedFrame.
 
void Dispose ()
 Not needed.
 

Properties

byte[] Buffer [get]
 Byte array containing the raw pixel data of the current webcam frame.
 
bool Buffered [get]
 Always returns true.
 
int Width [get]
 Width of the image.
 
int Height [get]
 Height of the image.
 
int Rotation [get, set]
 Can be 0, 90, 180 or 270. Before showing the image to the user rotate the image by this value.
 
bool IsTopRowFirst [get]
 True if first line in the buffer is the top of the image. False if it starts with the bottom of the image.
 
FramePixelFormat Format [get]
 Image format. Default is ARGB.
 

Detailed Description

A raw video frame of a webcam. References to these objects will be reused after the next call to ICall.Update! Do not keep references for longer!

Constructor & Destructor Documentation

◆ BufferedFrame()

Byn.Awrtc.BufferedFrame.BufferedFrame ( byte[] buffer,
int width,
int height,
FramePixelFormat format,
int rotation,
bool isTopRowFirst )

Constructs a new raw BufferedFrame.

Parameters
bufferByte buffer. Reference will be stored to avoid copies! Do not reuse the array later!
widthWidth
heightHeight
format
rotationRotation of the raw image.
isTopRowFirstTrue if the top pixels of the image are expected to be at the start of the buffer. False if it starts with the bottom.

Property Documentation

◆ Buffer

byte [] Byn.Awrtc.BufferedFrame.Buffer
get

Byte array containing the raw pixel data of the current webcam frame.

Implements Byn.Awrtc.RawFrame.

◆ Buffered

bool Byn.Awrtc.BufferedFrame.Buffered
get

Always returns true.

Implements Byn.Awrtc.RawFrame.

◆ Format

FramePixelFormat Byn.Awrtc.BufferedFrame.Format
get

Image format. Default is ARGB.

Implements Byn.Awrtc.RawFrame.

◆ Height

int Byn.Awrtc.BufferedFrame.Height
get

Height of the image.

Implements Byn.Awrtc.RawFrame.

◆ IsTopRowFirst

bool Byn.Awrtc.BufferedFrame.IsTopRowFirst
get

True if first line in the buffer is the top of the image. False if it starts with the bottom of the image.

Implements Byn.Awrtc.RawFrame.

◆ Rotation

int Byn.Awrtc.BufferedFrame.Rotation
getset

Can be 0, 90, 180 or 270. Before showing the image to the user rotate the image by this value.

Implements Byn.Awrtc.RawFrame.

◆ Width

int Byn.Awrtc.BufferedFrame.Width
get

Width of the image.

Implements Byn.Awrtc.RawFrame.


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